Take Temporary Tablespace Online

Oracle Database Administration
Post Reply
User avatar
jimb
Site Admin
Posts: 6146
Joined: Thu Jan 19, 2012 1:10 pm
Location: New Delhi, India
Contact:

Take Temporary Tablespace Online

Post by jimb »

To Take Temporary Tablespace Online.
Note:
You cannot take a temporary tablespace online. Instead, you take its tempfile online.

The following statement take tempfile online.

SQL> ALTER DATABASE TEMPFILE '<path_and_file_name>' ONLINE;

Example:

SQL> ALTER DATABASE TEMPFILE '/u01/oradata/ORCL10G/temp01.dbf' ONLINE;

Database altered.

SQL>

To display the status for a tempfile.
col name for a35
select NAME, STATUS from V$TEMPFILE;

SQL> col name for a35
select NAME, STATUS from V$TEMPFILE;SQL>

NAME STATUS
----------------------------------- -------
/u01/oradata/ORCL10G/temp01.dbf ONLINE

SQL>
Oracle Database Administration Forums
http://www.oracle-forums.com/
Post Reply