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-29829: implementation type does not exist

1 Answers  


QSM-01124: set operator materialized view, string, doesn't have a marker column

1 Answers  


PLS-00314: TABLE declarations are not allowed as PL/SQL local variables

1 Answers  


ORA-14100: partition extended table name cannot refer to a remote object

1 Answers  


TNS-04046: Invalid specification for source

1 Answers  






ORA-25235: fetched all messages in current transaction

1 Answers  


RMAN-10037: RPC anomaly detected on channel string, upinblt=number

1 Answers  


SQL*Loader-00810: error creating external table: string

1 Answers  


ORA-16112: log mining and apply stopping

1 Answers  


ORA-28170: unsupported certificate version

1 Answers  


NCR-01003: NCRS: Read error.

1 Answers  


ORA-02255: obsolete 7.1.5

1 Answers  


Categories