I need to copy data from our production system to our UAT system. I need to run a consolidation query on this data before inserting into the UAT tables. I'll then check the MIS from each system to ensure I haven't lost anything.
These tables are reasonably large..the largest has over 2M rows and consumes about 220MB.
One way is to spool it out to .csv using SQL*Plus. The other is to have the DBA link the databases together and pull across using the queries.
I'm worried about blowing redo-buffers during the insert. How would I go about doing a commit every say 10K rows - similar to sqlldr? I don't think there is any type of "SET" command which can do this. Best I can figure is a cursor with a counter and commit every time counter MOD 10000 = 0.
I don't care about the contents of the UAT system..it is a UAT system after all easly rebuilt from backup.
These tables are reasonably large..the largest has over 2M rows and consumes about 220MB.
One way is to spool it out to .csv using SQL*Plus. The other is to have the DBA link the databases together and pull across using the queries.
I'm worried about blowing redo-buffers during the insert. How would I go about doing a commit every say 10K rows - similar to sqlldr? I don't think there is any type of "SET" command which can do this. Best I can figure is a cursor with a counter and commit every time counter MOD 10000 = 0.
I don't care about the contents of the UAT system..it is a UAT system after all easly rebuilt from backup.
Comment