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

table is mutating - trigger may not see it

From: Markus Jäger <1055-436_at_online.de>
Date: Thu, 20 Jan 2000 00:17:42 +0100
Message-ID: <865g73$7mh$1@news.online.de>


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 Received on Wed Jan 19 2000 - 17:17:42 CST

Original text of this message

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