Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

After Insert Trigger vs. Integrity Constraint check

451062Sep 10 2007 — edited Sep 10 2007
Hi all,

I have following Problem:

I´ve created a after insert trigger for each row to log the inserted data details on a mapping table. When I try to insert "wrong data" to the mapping table, I get a integrity constraint violated - parent key not found error message. The record will not be inserted into mapping table, but the trigger will be fired with "wrong data".

I thought, a after trigger will be fired after constraint check and after sucessful inserting to the table.

Have anybody a idea? Am I wrong?

Many Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 8 2007
Added on Sep 10 2007
3 comments
507 views