Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Help:Snapshot too old

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@dialup-63.214.204.229.philadelphia1.level3.net>

Our PL/SQL is very simple

Declare
Cursor A is
select * from table B;

Begin

For C in A loop
v_counter=v_counter+1;
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/new
Received on Thu Apr 12 2001 - 20:50:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US