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: table is mutating - trigger may not see it

Re: table is mutating - trigger may not see it

From: Thomas Kyte <tkyte_at_us.oracle.com>
Date: Thu, 20 Jan 2000 11:15:16 -0500
Message-ID: <74de8sosj2mluj3fm489211m5p14ombji8@4ax.com>


A copy of this was sent to "Markus Jäger" <1055-436_at_online.de> (if that email address didn't require changing) On Thu, 20 Jan 2000 00:17:42 +0100, you wrote:

>Oracle 8.0.5
>I want a after-insert-trigger for tabel A to insert new data in a second
>table B that has a foreign key constraint to the table A.
>Even though I defined the constraint with the option DEFERRABLE INITIALLY
>DEFERRED is seems like the insert command for table B within the
>after-insert-trigger for table A wants the foreign key constraint checked
>immediately and therefore ends up in an oracle error, because the process of
>checking envolves reading table A.
>Is there any solution to that? (besides inactivating the constraint?)
>Thanx for any hints and comments!
>Markus
>

see http://osi.oracle.com/~tkyte/Mutate/index.html

--
See http://osi.oracle.com/~tkyte/ for my columns 'Digging-in to Oracle8i'... Current article is "Part I of V, Autonomous Transactions" updated June 21'st  

Thomas Kyte                   tkyte_at_us.oracle.com
Oracle Service Industries     Reston, VA   USA

Opinions are mine and do not necessarily reflect those of Oracle Corporation Received on Thu Jan 20 2000 - 10:15:16 CST

Original text of this message

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