Christopher Wong
Posts: 128
Nickname: cwong15
Registered: Sep, 2009
|
Christopher Wong is a senior software engineer at lifeIMAGE.
|
|
|
|
Finding table for Oracle constraint violation
|
Posted: May 27, 2012 8:40 PM
|
|
When Oracle reports a constraint violation, you might get something unhelpfully cryptic like:
ORA-00001: unique constraint (FOO.SYS_C003567231) violated
The constraint is system-generated, based on UNIQUE being specified in the DDL, so the name is unhelpful. With no other information, finding the affected table can be difficult. You can query for the table with the following SQL:
select
Read: Finding table for Oracle constraint violation
|
|