Professional Documents
Culture Documents
SYSTEM tablespace
Created with the database
Contains the data dictionary
Contains the SYSTEM undo segment
Non-SYSTEM tablespace
Separate segments
Eases space administration
Controls amount of space allocated to a user
Causes a checkpoint
Data available only for read operations
Objects can be dropped from tablespace
ALTER TABLESPACE
Tablespace must be offline
Target datafiles must exist
ALTER TABLESPACE userdata RENAME
DATAFILE '/u01/oradata/userdata01.dbf'
TO '/u02/oradata/userdata01.dbf';
Steps to rename a datafile:
Take the tablespace offline.
Use an OS command to move or copy the files.
Execute the ALTER TABLESPACE RENAME DATAFILE
command.
Bring the tablespace online.
Use an OS command to delete the file if necessary.
ALTER DATABASE
Database must be mounted
Target datafile must exist