undo表空间的切换:
1、先检查现在正在使用的undo表空间:
SQL> show parameter undo_tablespace
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_tablespace string UNDOTBS1
SQL>
2、创建新的表空间:
CREATE TABLESPACE UNDOTBS2 DATAFILE '+DATA1/datafile/' SIZE 2048M;
3、切换表空间:
alter system set undo_tablespace='UNDOTBS2' scope=both;
至此表空间就已经切换好了。
SQL> show parameter undo_tablespace
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
undo_tablespace string UNDOTBS2
SQL>
undo表空间的删除
删除表空间前腰确保表空间里面的内容都已过期:
select extent_id, status from dba_undo_extents where tablespace_name='UNDOTBS1' and status <> 'EXPIRED';
当结果为空时才可以删除表空间
drop tablespace UNDOTBS1 including contents and datafiles;
查看表空间:
SQL> select * from v$tablespace;
come from:http://space.itpub.net/?uid-23933251-action-viewspace-itemid-664237
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/90618/viewspace-704477/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/90618/viewspace-704477/