Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • DBMS_STATS Metalinks Notes Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • To find explain plan for a statement that occurred in past. Oracle
  • To see how much time or progress of long transaction Oracle
  • V$transaction notes for finding XID composition. Oracle
  • switchover for primary database Oracle
  • switchlogfile.sh Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Oracle Identifiers Oracle
  • Temporary tablespace explaination Oracle
  • Histogram information Oracle
  • Remove DOS CR/LFs (^M) Linux/Unix
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • check_copy_progress.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

  • plan10g.sql good Oracle
  • DBMS_Shared_pool pinning triggers Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • sess1.sql Oracle
  • All About oracle password and security from metalink 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
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Caching sequence in Memory Oracle
  • v$event_name Oracle
  • process id based files and processes Linux/Unix
  • Oracle Identifiers Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme