SQL> alter database datafile '/u01/app/oracle/oradata/king/sysaux01.dbf' resize 2048M;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/system01.dbf' resize 2048M;
Database altered.
SQL> alter database tempfile '/u01/app/oracle/oradata/king/temp01.dbf' resize 2048M;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/undotbs01.dbf' resize 2048M;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/users01.dbf' resize 2048M;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/sysaux01.dbf' autoextend off;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/system01.dbf' autoextend off;
Database altered.
SQL> alter database tempfile '/u01/app/oracle/oradata/king/temp01.dbf' autoextend off;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/undotbs01.dbf' autoextend off;
Database altered.
SQL> alter database datafile '/u01/app/oracle/oradata/king/users01.dbf' autoextend off;
Database altered.
创建表空间
SQL> create tablespace tpcc
datafile '/u01/app/oracle/oradata/king/tpcc01.dbf'
size 1024M
extent management local
uniform size 1M;
Tablespace created.
增加表空间数据文件
SQL> alter tablespace tpcc
add datafile '/u01/app/oracle/oradata/king/tpcc02.dbf'
size 1024M;
Tablespace altered.
移动表空间数据文件
SQL> alter tablespace tpcc01 offline;
Tablespace altered.
SQL> host cp /u01/app/oracle/oradata/king/tpcc02.dbf /u02/app/oracle/oradata/king
SQL> alter tablespace tpcc01
rename datafile '/u01/app/oracle/oradata/king/tpcc02.dbf'
to '/u02/app/oracle/oradata/king/tpcc02.dbf';
Tablespace altered.
SQL> alter tablespace tpcc01 online;
Tablespace altered.
SQL> host rm -rf /u01/app/oracle/oradata/king/tpcc02.dbf
删除表空间
SQL> drop tablespace tpcc01 including contents and datafiles;
Tablespace dropped.
原文地址:http://blog.51cto.com/13598811/2131025