Re: Help:Snapshot too old
From: <u518615722_at_spawnkill.ip-mobilphone.net>
Date: Fri, 13 Apr 2001 01:50:58 GMT
Message-ID: <l.987126659.1116729736_at_dialup-63.214.204.229.philadelphia1.level3.net>
Date: Fri, 13 Apr 2001 01:50:58 GMT
Message-ID: <l.987126659.1116729736_at_dialup-63.214.204.229.philadelphia1.level3.net>
Our PL/SQL is very simple
Declare
Cursor A is
[Quoted] select * from table B;
Begin
For C in A loop
v_counter=v_counter+1;
[Quoted] insert into table D values ....
if mod(v_counter,2000)=0 then
commit;
end if;
end loop;
end;
But we always get error message says
snapshot too old. I even tried commit
every 5 rows, I still have the same problem.
If we try to commit every 20,000 rows, we
will have problem until 800,000 rows was
inserted.
Any suggestions?
Thanks
-- Sent by dbadba62 from hotmail in area com This is a spam protected message. Please answer with reference header. Posted via http://www.usenet-replayer.com/cgi/content/newReceived on Fri Apr 13 2001 - 03:50:58 CEST