Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Remove duplicate rows from table Oracle
  • Drop specific SQL plan baseline – spm Oracle
  • prepfiles.sh for step by step generating pending statistics files Oracle
  • TRUNCATE Privs Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • find_string_in_database.sql Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • Follwoing korn shell is used to move files from source folder to destination folder and gzip it in destination folder. mv_iotto.ksh Linux/Unix
  • cache buffer chain latch Oracle
  • cold backup scripts to copy locally Linux/Unix
  • Find execution plan from dba_hist_sql_plan for a specific SQL_ID and PLAN_HASH_VALUE fplan.sql Oracle
  • newupload.html PHP/MYSQL/Wordpress
  • findobj.sql 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

  • Jai Shree Ram Oracle
  • myfile Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • get_ratio.sql get the ratio of users from v$session and this uses CASE-WHEN-THEN clause Oracle
  • eplan.sql 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • First Entry in RAC Oracle
  • create PLAN_TABLE command. Oracle
  • Monitor Long Running Job Oracle
  • Another export with Query Oracle
  • db_status.sql Oracle
  • RMAN : Consistent Backup, Restore and Recovery using RMAN Oracle
  • How to Use DBMS_STATS to Move Statistics to a Different Database Oracle
  • Oracle GoldenGate lag monitoring shell script Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme