SQL> select name from v$database;
NAME
---------
UHTG1P
SQL> drop tablespace TEST including contents and datafiles;
drop tablespace TEST including contents and datafiles
*
ERROR at line 1:
ORA-02449: unique/primary keys in table referenced by foreign keys
SOLUTION 1:
SQL> drop tablespace TEST including contents and datafiles cascade constraints;
Tablespace dropped.
NOTE: The CASCADE CONSTRAINTS clause drops all referential integrity constraints that refer to the primary and unique keys defined on the dropped columns.
SOLUTION 2:
Other way we can drop the user first and then the tablespace. No need to specify cascade option here.
Thank You!
Comments
Post a Comment