Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • cur_sql.sql Oracle
  • Privilege to describe the table. Oracle
  • Checking SQL Server Version SQL Server
  • DBMS_JOB all example Oracle
  • How to start CRS manually Oracle
  • Oracle Statspack survival Guide Oracle
  • To check whether standby is recovering properly or not?? Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • How to know Number of CPUs on Sun Box Linux/Unix
  • refre.sql Oracle
  • How to check current redo log progress redo_progress.sql Oracle
  • Generating XML from SQLPLUS Oracle
  • perf_today.sql Oracle
  • Generate SSH without password authentication. Linux/Unix
  • myfile 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

  • Good link for LIO in Oracle ( Logical IOs) Oracle
  • How to know current SID Oracle
  • SQL_PROFILE – I explaination Oracle
  • Good Oracle Architecture In Short and point to point Oracle
  • FRA Information. Oracle
  • SYSOPER Mystery Oracle

Leave a Reply Cancel reply

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

Categories

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

Recent Posts

  • 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
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • DBMS_PROFILER for tuning PLSQL programs. Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • switchlogfile.sh Linux/Unix
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Creating never expiring DB user accounts in Oracle Oracle
  • Drop all SPM baselines for SQL handle Oracle
  • Free conference number from http://www.freeconference.com Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme