Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Transferring data from one table to another
well if u wanna commit after 1000 records u could very well use a cursor
and within the loop keep a counter which will indicate the no. of records
inserted...upon reaching 1000 records just commit and reinitialize the
counter..
i have written the "Pseudo" code below:
declare
cursor c1 is SELECT * from schema2.abc;
for c1_abc in c1 loop insert into schema1.abc values contained in c1_abc; cntr := cntr +1; if (cntr = 1000) then cntr := 0; commit; end if; end loop;
rgds,
Ams.
www.medicomsoft.com
-----Original Message-----
Sent: Monday, August 12, 2002 8:23 AM
To: Multiple recipients of list ORACLE-L
Hi,
We are transferring data from one table in a schema to another table in another schema with identical fields using INSERT INTO schema1.abc (SELECT * from schema2.abc) The source table has 1.6 million records. The tablespace increases to consume full disk space and yet seems to be demanding more so the operation doesn't complete.
Is there a possibility to process commit after every 1,000 records? Is there any other way of doing it?
TIA! Aleem
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Abdul Aleem INET: dmit_at_beaconhouse.edu.pk Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-LReceived on Mon Aug 12 2002 - 00:43:19 CDT
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Amjad Saiyed INET: amjad_at_medicomsoft.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
![]() |
![]() |