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.