

|


Listen Software Solutions' "How To" Series:

Tablespaces

By David Nishimoto
Tablespaces
Adding a datafile
alter tablespace user_data
add datafile 'e:\{sid}\data\usr2.dbf' size 30M;
Autoextend
alter tablespace user_data autoextend off;
Next and Maxsize are set to zero.
alter tablespace user_data
add datafile 'e:\{sid}\data\usr2.dbf';
alter tablespace user_data autoextend on max_size=40M;
Sets the maximum disk space allowed for automatic extension
of the datafile.
Taking the Tablespace Online and Offline
Online
alter tablespace user_data online;
Offline
alter tablespace user_data offline;
Hot Backup of a Tablespace
alter tablespace user_data begin backup;
alter tablespace user_data end backup;
This option does not prevent user from performing transactions.
Tablespace Coalese
alter tablespace user_data coalesce;
Coalesing gathers free segments. SMON usual cleans up
free space.
Back to the LSS "How To" Series Main Page
|
|