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)
Command to do active duplicate for Oracle Database
1. First login to target server 2. Validate tns connectivity between Source DB and Target DB 3. Prepare and validate space availability 4. S...
-
Srvctl is not able to start database [oracle@orcldb-n2 ~]$ srvctl start database -d orcl PRCR-1079 : Failed to start resource ora.orcl.d...
-
Getting below error in EBS R12.1.3 in Oracle Database SMTP Error. Getting below error while trying to send email in XXXXXXX instance ...
-
Oracle R12 application and getting following error when trying to launch General Ledger Account Hierarchy Manager Java Plug-in 1.6.0_07 Us...
No comments:
Post a Comment