If the tablespace is a default temporary tablespace when you are greeted with the following exception:
SQL> DROP TABLESPACE temp;
drop tablespace temp
*
ERROR at line 1:
ORA-12906: cannot drop default temporary tablespace
Steps to clear the temporary tablespace:
1) SQL>CREATE TEMPORARY TABLESPACE temp2
TEMPFILE '/database/oracle/oradata/KOUSHIK/temp2_01.dbf' SIZE 5M REUSE
AUTOEXTEND ON NEXT 1M MAXSIZE unlimited
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
Tablespace created.
2) SQL>ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
Database altered.
3) SQL>DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;
Tablespace dropped.
4) SQL>CREATE TEMPORARY TABLESPACE temp
TEMPFILE '/database/oracle/oradata/KOUSHIK/temp01.dbf' SIZE 500M REUSE
AUTOEXTEND ON NEXT 100M MAXSIZE unlimited
EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
Tablespace created.
5) SQL>ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;
Database altered.
6) SQL>DROP TABLESPACE temp2 INCLUDING CONTENTS AND DATAFILES;
Tablespace dropped
Monday, December 21, 2009
Subscribe to:
Post Comments (Atom)
Troubleshooting ACFS-07981: Metadata Validation Errors
Troubleshooting ACFS-07981: Metadata Validation Errors Introduction The ACFS-07981 error indicates that an attempt to run an online file ...
-
Mastering ORA-00054: Resolving the "Resource Busy" Error The ORA-00054 error, often accompanied by the message "resource b...
-
Mastering ORA-03113: The "End-of-file on communication channel" Error The ORA-03113 error, "end-of-file on communication c...
-
Symptoms When running Create Accounting using SLA with the profile option FA: Use Workflow Account Generation set to Yes at the Site level,...
No comments:
Post a Comment