ORA-02292: integrity constraint - violated - child record [message #298725] |
Thu, 07 February 2008 06:07  |
amardilo
Messages: 37 Registered: February 2007
|
Member |
|
|
Hi there.
I am trying to delete a record out of a table but I keep getting the following message:
"ORA-02292: integrity constraint (TABLE_NAME_OF_TABLE_DELETING.xxxxxx) violated - child record found"
Does anyone know how I can find out what this constraint is using a SQL statement (i.e. in SQL*Plus)?
|
|
|
|
Re: ORA-02292: integrity constraint - violated - child record [message #298734 is a reply to message #298726] |
Thu, 07 February 2008 06:34   |
amardilo
Messages: 37 Registered: February 2007
|
Member |
|
|
dhananjay wrote on Thu, 07 February 2008 06:12 |
search for primary key and foreign key constraints and also look for ON DELETE SET NULL / ON DELETE CASCADE clause.
regards,
|
Thanks dude. Do you know how I can do this kind of search?
Would it be something like:
SELECT TABLE_NAME_OF_TABLE_DELETING.sys_0000 FROM DUAL
|
|
|
|
|
|
|
Re: ORA-02292: integrity constraint - violated - child record [message #298821 is a reply to message #298740] |
Thu, 07 February 2008 16:10  |
 |
Littlefoot
Messages: 21825 Registered: June 2005 Location: Croatia, Europe
|
Senior Member Account Moderator |
|
|
amardilo wrote on Thu, 07 February 2008 14:00 | How do I know what the constraint name is?
|
Well, you chose to put all those 'x's, not me. Moreover, I was too lazy to count how many of them you've written, so I rather used a more meaningful 'your_constraint_name'. I just hope that you don't name constraint like 'xxxxxxxx'.
|
|
|