Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Problem with exception handling
I'm trying to make a procedure resume after an exception has been raised.
The situation is more or less like this:
procedure My Proc;
begin
for c1rec in c1 loop
/* c1 is my cursor */
insert into sometable c1rec.somefield; commit;
when others do insert into errortable 'Some error message';end;
Lets say c1 yields 1000 records and that an exception occur in the 500th insert. How do I make it resume and do the last 500 inserts after handling the exception?
Any help appreciated.
- Ivan Bajon NOCP (Not Oracle Certified Professional)
Received on Fri Jul 17 1998 - 06:47:37 CDT
![]() |
![]() |