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: Exception halting a FORALL

Re: Exception halting a FORALL

From: John Russell <netnews_at_johnrussell.mailshell.com>
Date: Mon, 26 Nov 2001 09:56:11 GMT
Message-ID: <0m140u88r7tjr8dgsmplhasvvk9mn84nni@4ax.com>


On Fri, 23 Nov 2001 01:31:44 GMT,
SPAMBLOCK.Maxwell_Smart_at_ThePentagon.com.SPAMBLOCK (Brian Tkatch) wrote:

>From the docs.
>
>"When any execution of the SQL statement raises an exception, the
>FORALL statement halts."
>
>Is there anyway around that, other than creating a normal loop.

In 9i there is the BULK%EXCEPTIONS attribute that lets you go through the whole loop, ignoring exceptions, and then process the rows that threw exceptions afterwards:

http://tahiti.oracle.com/pls/db901/db901.drilldown?remark=&word=bulk%25exceptions&book=&preference=

John

--
Got an Oracle database question?
Try the search engine for the database docs at:
http://tahiti.oracle.com/
Received on Mon Nov 26 2001 - 03:56:11 CST

Original text of this message

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