Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: 10.1 / 10.2: different trigger behaviour
Tarby777 wrote:
>> Posting the actual error message and possibly the trigger code would >> make it possible for someone to help you.
The error message says it all. This has nothing to do with a trigger. You are attempting to put records into a table that has a referential constraint protecting it from bad data owned by the CHS schema and named LIBRARY_CONNECTOR_FK. The value you are trying to insert, or update to, is not present in the parent table.
SELECT t.owner CHILD_OWNER,
t.table_name CHILD_TABLE, t.constraint_name FOREIGN_KEY_NAME, r.owner PARENT_OWNER, r.table_name PARENT_TABLE, r.constraint_name PARENT_CONSTRAINT
AND t.r_owner = r.owner AND t.constraint_type='R' AND t.table_name = <child_table_name>;
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Mon Jan 22 2007 - 11:22:14 CST
![]() |
![]() |