Table Space
Table Space
===================================================================================
==========================================================
Note:
You cannot use the ALTER TABLESPACE statement, with the TEMPORARY keyword, to
change a locally managed permanent tablespace into a locally managed temporary
tablespace. You must use the CREATE TEMPORARY TABLESPACE statement to create a
locally managed temporary tablespace.
Except for adding a tempfile, taking a tempfile offline, or bringing a tempfile
online, as illustrated in the following examples, you cannot use the ALTER
TABLESPACE statement for a locally managed temporary tablespace.
===================================================================================
==========================================================
===================================================================================
==========================================================
Note:
You cannot take a temporary tablespace offline. Instead, you take its tempfile
offline. The view V$TEMPFILE displays online status for a tempfile.
===================================================================================
==========================================================
The following statements take offline and bring online tempfiles. They behave
identically to the last two ALTER TABLESPACE statements in the previous example.
The following statement drops a temporary file and deletes the operating system
file:
-----------------------------------------------------------------------------------
--
ALTER DATABASE TEMPFILE '/u02/oracle/data/lmtemp02.dbf' DROP
INCLUDING DATAFILES;
The tablespace to which this tempfile belonged remains. A message is written to the
alert log for the datafile that was deleted. If an operating system error prevents
the deletion of the file, the statement still succeeds, but a message describing
the error is written to the alert log.
It is also possible to use the ALTER DATABASE statement to enable or disable the
automatic extension of an existing tempfile, and to rename (RENAME FILE) a
tempfile. See Oracle Database SQL Reference for the required syntax.