Syntax to Find / Check / Change / Set Default Temporary Tablespace for Oracle 10g, 11g Database



The Eucharistic Miracles of the World
Default Temporary tablespace Syntax
SQL> create temporary tablespace temp_tbs tempfile '/u01/app/oracle/oradata/qa01/temp_tbs_01' size 100m;

Tablespace created.

SQL> alter database default temporary tablespace temp_tbs;

Database altered.

SQL> select * from database_properties where property_name ='DEFAULT_TEMP_TABLESPACE';
Name of default temporary tablespace

You cannot drop the default temporary tablespace of a database. If you do like that you will get the following error.
SQL>  drop tablespace temp_tbs;
 drop tablespace temp_tbs
ERROR at line 1:
ORA-12906: cannot drop default temporary tablespace


Website Stats


Post a Comment


Oracle (629) Script (86) General (77) Unix (47) Blog (23) Technology (19) gadget (6) games (6) Business (3) OCI (3) SQL* Loader (3) Datapump (2) Copyright 2011-23 All Rights Reserved | Site Map | Contact | Disclaimer