Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

ORA-02266: unique/primary keys in table referenced by enabled foreign key

$
0
0


ORA-02266: unique/primary keys in table referenced by enabled foreign key

Cause: An attempt was made to truncate a table with unique or primary keysreferenced by foreign keys enabled in another table. Other operations not allowed aredropping/truncating a partition of a partitioned table or an ALTER TABLEEXCHANGE PARTITION.61-12 Error Messages



Action: Before performing the above operations the table, disable the foreign keyconstraints in other tables. You can see what constraints are referencing a table byissuing the following command: SELECT * FROM USER_CONSTRAINTS WHERETABLE_NAME = "tabnam";

Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>