1 查看undo表空间使用情况
select tablespace_name,bytes/1024/1024 from dba_data_files where tablespace_name='UNDOTBS1.DBF';
2 创建新的undo表空间
create undo tablespace xxx;
3 更改参数文件
alter system set undo_tablespace='UNDOTBS2' scope=spfile;
4 查看undo状态
select usn,xacts,status,rssize/1024/1024,hwmsize/1024/1024,shrinks from v$rollstat order by rssize;
PS:当status的状态为offline的时候切换删除undotbs1!参数undo_retention是指过了xxx后undo里面数据失效
5 删除undotbs1
drop tablespace undotbs1 including contents;
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16546776/viewspace-687435/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/16546776/viewspace-687435/