Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • rm_backup_arch_file.ksh Linux/Unix
  • Standby Database File Management in 10g with STANDBY_FILE_MANAGEMENT Oracle
  • Proc code Oracle
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • Composite Index creation tip from Vivek Oracle
  • Physical Standby switchover with session active Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • This is im telling Kishore Oracle
  • TNSNAMES entries details Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • DBMS_SQL for alter session. Oracle
  • Jai Shree Ram Oracle
  • Unix split command to split files Linux/Unix

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

  • Library cahe Latches and internal explaination Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • To see how much time or progress of long transaction Oracle
  • Kill a session dynanically using execute immediate Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Committing distributed transaction using commit force Oracle

Leave a Reply Cancel reply

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

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • eplan.sql Oracle
  • fuser to check who is using diretory Linux/Unix
  • Find average Row Length and other table size calculation. metalink notes Oracle
  • longtx.sql Oracle
  • Linux CPU info. Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme