Table of Contents

Oracle Database - Temporary Datafiles (tempfiles)

About

Tempfiles are a special class of datafiles that are associated only with temporary tablespaces.

Locally managed temporary tablespaces have temporary datafiles (tempfiles), which are similar to ordinary datafiles, with the following exceptions:

How to

Move a tempfile ?

SHUTDOWN IMMEDIATE
STARTUP MOUNT
select name from v$tempfile;
ALTER DATABASE RENAME FILE 'E:\APP\ADMINISTRATOR\ORADATA\DB11GR2\TEMP01.DBF' TO 'F:\APP\ADMINISTRATOR\ORADATA\DB11GR2\TEMP01.DBF';
select name from v$tempfile;
ALTER DATABASE OPEN;

Drop a tempfile ?

ALTER DATABASE TEMPFILE 'F:\ORADATA\DB11GR2\TEMP02.DBF' DROP INCLUDING DATAFILES;

Documentation / Reference