Site icon IT Tutorial

ORA-12906: cannot drop default temporary tablespace

I got ” ORA-12906: cannot drop default temporary tablespace ” error in Oracle database.

 

ORA-12906: cannot drop default temporary tablespace

 

Details of error are as follows.

 

SQL> 
SQL> DROP TABLESPACE TEMP INCLUDING CONTENTS AND DATAFILES;
DROP TABLESPACE TEMP INCLUDING CONTENTS AND DATAFILES
*
ERROR at line 1:
ORA-12906: cannot drop default temporary tablespace

SQL>

 

 

cannot drop default temporary tablespace

The ORA-12906 error is related with the dropping of default temporary tablespace.

 

To solve this error, make default temporary tablespace to another existing temporary tablespace or if there is no another temporary tablespace, then create it as follows.

 


SQL> create temporary tablespace temp1 tempfile '+DATAC1' size 10024M;
 Tablespace created.

Modify default temporary tablespace to another one, then drop it as follows.

SQL> alter database default temporary tablespace temp1;
Database altered.

SQL> drop tablespace temp including contents and datafiles;
Tablespace dropped.

 

 

Read the following post to learn for Default permanent tablespace drop.

ORA-12919: Can not drop the default permanent tablespace

 

 

Do you want to learn Oracle Database for Beginners, then Click and read the following articles.

Oracle Database Tutorials for Beginners ( Junior Oracle DBA )

 

Exit mobile version