Oracle Constraints errors (18) — causes and fixes
18 Oracle Database Constraints errors, each reproduced and fixed on a real database. Pick an error to see the actual output, the fix SQL and the result.
- ORA-000016 causesunique constraint violated
- ORA-014007 causescannot insert NULL into (column)
- ORA-014073 causescannot update (column) to NULL
- ORA-014423 causescolumn to be modified to NOT NULL is already NOT NULL
- ORA-014513 causescolumn to be modified to NULL cannot be modified to NULL
- ORA-014523 causescannot CREATE UNIQUE INDEX; duplicate keys found
- ORA-022613 causesThe unique or primary key already exists in the table
- ORA-022643 causesname already used by an existing constraint
- ORA-022663 causesunique/primary keys in table referenced by enabled foreign keys
- ORA-022703 causesno matching unique or primary key for this column-list
- ORA-022733 causesthis unique/primary key is referenced by some foreign keys
- ORA-022917 causesintegrity constraint violated - parent key not found
- ORA-022927 causesintegrity constraint violated - child record found
- ORA-022932 causescannot validate - check constraint violated
- ORA-022962 causescannot enable - null values found
- ORA-022983 causescannot validate - parent keys not found
- ORA-024433 causesCannot drop constraint - nonexistent constraint
- ORA-024493 causesunique/primary keys in table referenced by foreign keys