Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • lck.sql Oracle
  • replace alphabets using sed Linux/Unix
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • Parallel DML Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • oracle fast start failover best practice Oracle
  • Oracle Material from OTN Oracle
  • database trigger failing Oracle
  • ORA-3136 Oracle
  • plan10g.sql good Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • 284785.1 How to check RAC Option is currently linked into the Oracle Binary Oracle
  • Flowers Resize datafiles Oracle
  • ORA-4031 issue and solution on 09-MAY-2008 Oracle

Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds)

Posted on 29-Sep-2005 By Admin No Comments on Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds)

=========================

Test case On 29-SEP-2005

=========================

Original Statement:

INSERT INTO pvm

SELECT *

FROM pvm1;

Source table : pvm1 has 2.3 million rows. If statement executes normally it will take long time to execute. So i modified following statement and 2.3 Million rows processed in Approx 30 seconds.

10:39:11 CIF@CIF:-> set feedback 1

10:39:11 CIF@CIF:-> INSERT /*+ append parallel (pvm, 4) */ INTO pvm

10:39:19 2 SELECT /*+ parallel (CIF_CUSTOMER_SYSTEM_ID_XREF, 4) */ *

FROM pvm1 ;10:39:19 3

2349912 rows created.

Elapsed: 00:00:25.51

10:39:51 CIF@CIF:->

10:39:51 CIF@CIF:-> 10:39:51 CIF@CIF:-> 10:39:51 CIF@CIF:-> select count(*) from pvm;

select count(*) from pvm

*

ERROR at line 1:

ORA-12838: cannot read/modify an object after modifying it in parallel

Elapsed: 00:00:00.00

10:40:48 CIF@CIF:-> commit;

Commit complete.

Elapsed: 00:00:00.02

10:40:59 CIF@CIF:-> select count(*) from pvm;

COUNT(*)

———

2349912

1 row selected.

Oracle, SQL scripts

Post navigation

Previous Post: Removing Blank lines from file using grep
Next Post: Oracle Standby Database Library Index from Metalink

Related Posts

  • AWR settings- MMON is not taking snapshot. Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Oracle Release Explaination Oracle
  • How to calculate PROCESSES parameter Oracle
  • create database link syntax Oracle
  • create user with unlimited quota Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • how to find VIP from ifconfig Linux/Unix
  • sess1.sql Oracle
  • v$backup.status information Oracle
  • New Latest Param.sql for finding all hidden parameters also Oracle
  • Load SPM baseline from AWR Oracle
  • cold backup scripts to copy locally Linux/Unix
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • FGA Part-I Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme