drop tablespace tablespace_name [ including contents] //删除表空间内容,文件不会删除
2016-05-19
SQL> alter tablespace test1_tablespace add datafile '/home/oracle/app/oradata/test2file.dbf' size 10m; //添加表空间文件
SQL> select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';
SQL> alter tablespace test1_tablespace drop datafile '/home/oracle/app/oradata/test2file.dbf'; //删文件
SQL> select file_name from dba_data_files where tablespace_name='TEST1_TABLESPACE';
SQL> alter tablespace test1_tablespace drop datafile '/home/oracle/app/oradata/test2file.dbf'; //删文件
2016-05-19
alter tablespace tablespace_name online|offline;
alter tablespace tablespaces_name read only|read write
SQL> select status from dba_tablespaces where tablespace_name='TEST1_TABLESPACE';
alter tablespace tablespaces_name read only|read write
SQL> select status from dba_tablespaces where tablespace_name='TEST1_TABLESPACE';
2016-05-19