Search This Blog

Thursday, October 25, 2007

ORA-02449


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


SQL> drop tablespace users including contents and datafiles ;
drop tablespace users including contents and datafiles
*
ERROR at line 1:
ORA-02449: unique/primary keys in table referenced by foreign keys


Whenever get ORA-02449 error during drop tablespace then just use CASCADE CONSTRAINTS cluase with DROP TABLESPACE statement.



SQL> drop tablespace users including contents and datafiles cascade constraints;


Tablespace dropped.

No comments: