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 -> Cancel an Oracle insert statement within trigger

Cancel an Oracle insert statement within trigger

From: <mike_ellison_at_my-deja.com>
Date: Wed, 29 Dec 1999 01:56:27 GMT
Message-ID: <84bp79$sdq$1@nnrp1.deja.com>


We have a before insert trigger that executes for insertions into TableA... if an error occurs, we need to write a record to TableB and cancel the original insert. From reading the Oracle (8.0.4) documentation, it looks like we can cancel the original insert by using
RAISE_APPLICATION_ERROR. The problem is that this also seems to rollback our insertion into TableB.

Is there a way that we can commit our insert into TableB and cancel the original insert into TableA?

--Mike Ellison
ellison_at_ccmail.nevada.edu

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Tue Dec 28 1999 - 19:56:27 CST

Original text of this message

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