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



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

Answer / guest

Cause: An attempt was made to truncate a table with unique
or primary keys referenced by foreign keys enabled in
another table. Other operations not allowed are
dropping/truncating a partition of a partitioned table or an
ALTER TABLE EXCHANGE PARTITION.

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

Please add more information about this Error

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

ORA-30205: invalid Character set

1 Answers  


IMG-00602: unable to access image data

1 Answers  


ORA-39315: illegal swap() call: only applys after clone/sync_code

1 Answers  


PCC-02338: structure contains a nested struct or union

1 Answers  


ORA-12606: TNS: Application timeout occurred

1 Answers  






DRG-10599: column is not indexed

1 Answers  


SQL*Loader-00131: Invalid multithreading option

1 Answers  


ORA-16002: database already open for read-write access by another instance

1 Answers  


DRG-10831: can not insert into feedback table string

1 Answers  


ORA-28292: No Domain Policy registered for Kerberos based authentication

1 Answers  


ORA-06512: at stringline string

1 Answers  


ORA-16532: Data Guard broker configuration does not exist.

1 Answers  


Categories