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

Home -> Community -> Usenet -> c.d.o.misc -> Re: PL/SQL Newbie Help / Stored Procedure

Re: PL/SQL Newbie Help / Stored Procedure

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 13 May 2002 22:05:06 +0200
Message-ID: <ue07npdf0rpbfd@corp.supernews.com>

"Kim Goldenberg" <kshorty_at_phat.com> wrote in message news:db0be6d6.0205131124.2c39fffc_at_posting.google.com...
> What would happen if one row had an incorrect value and kicked back.
> Would the entire insert or update fail. I was hoping to use a pl/sql
> cursor to increase the logging and error checking capability.

The statement involved would fail, whether that updates 1 or 1 million records.
You might consider moving the error checking to a before insert or update for each row trigger, and log errors through autonomous transactions. The trigger would raise an exception, the exception handler would call your error logging, and if you don't explicitly rollback yourself, the transaction will proceed.

Hth

--
Sybrand Bakker
Senior Oracle DBA

to reply remove '-verwijderdit' from my e-mail address
Received on Mon May 13 2002 - 15:05:06 CDT

Original text of this message

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