Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to speed up the bulk insert

Vishal RautOct 27 2024

I am using query similar to below to bulk insert data from one table into another table. The source table has over 150 million records. I disable all constraints on the target table & drop all indexes on target table before starting the bulk insert. This is taking more than 45 minutes to complete. How to speed up the transfer?

ALTER TABLE OWNER.TargetTable NOLOGGING;
INSERT /*+ APPEND PARALLEL(8) NOLOGGING */ INTO OWNER.TargetTable (Id, name…..)
SELECT /*+ PARALLEL(8) */ Id, name….. FROM OWNER.SourceTable;

Comments
Post Details
Added on Oct 27 2024
7 comments
753 views