Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Explain Plan Output 2 Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • Reading parameter file and printing Linux/Unix
  • oracle 11g RAC on vmware Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • oracle_env_10g_CADEV Linux/Unix
  • SAT Mathematics 10 questions and answer at the end. Uncategorized
  • Rman Notes -1 Oracle
  • Nice notes on wait events Oracle
  • Goog notes on X$ tables Oracle
  • Giving Grant on v$DATABASE Oracle
  • How To Resolve Stranded DBA_2PC_PENDING Entries ID 401302.1 (Very Good prooven) Oracle
  • catall.sh 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

  • TRUNCATE Privs Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • Btee and Bitmap Plans in Oracle 9i and higher Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • V$ROLLSTAT status is Full Oracle
  • Oracle Release Explaination Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • Tutornet.US — Source of excellent learning14-Oct-2026
  • OCI Infrastructure Patching14-Oct-2026
  • Free API credits for AI models14-Oct-2026
  • AMC1020-Sep-2026
  • Key Management in Oracle: The Core Issue: Missing Master Key12-May-2026
  • SAT Mathematics 10 questions and answer at the end.30-Apr-2026
  • top 10 AI news today30-Apr-2026
  • runon_allpdbs_show_conname.sh23-Apr-2026
  • runon_allcdbs_find_pdbs.sh23-Apr-2026
  • Running PDB on single node in RAC09-Apr-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to check current redo log progress redo_progress.sql Oracle
  • export import with parameter file. Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • The most important Tuning Notes Oracle
  • Display the top 5 salaries for each department using single SQL Oracle
  • kill all processes from specific user in solaris. Linux/Unix
  • Locktree.sql Oracle
  • Important Solaris Commands Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme