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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Incremental (or any other way) large INSERT

rade.todorovichMar 8 2016 — edited Mar 10 2016

Oracle DB 12c

All:

I have two tables. Destination table with around 160M records. Source table with 7M records. I have to insert all records from source to destination table, something like:

INSERT INTO DEST_TABLE (attr1, attr2,....attrn)

SELECT attr1, attr2,....attrn from SRC_TABLE;

I attempted to do this from SQL Developer client, but the process never ended (have opened SR with Oracle).

So I am looking for pl/sql script that would insert SRC table into DEST table, perhaps inserting 100K or so records at the time and doing intermittent commits?

The entire issue with straight out INSERT, that used to work a year ago on the same hardware is kind of a long story and may not be relevant for this thread.

This post has been answered by John Stegeman on Mar 8 2016
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 7 2016
Added on Mar 8 2016
34 comments
5,652 views