1.查看undo的管理模式
show parameter undo_management;
2.创建一个undo表空间
create undo tablespace undonew datafile 'D:\dataspace\undonew.dbf' size 50M autoextend on;
3.修改默认的undo 表空间
alter system set undo_tablespace = undonew;
4,增加undo表空间的大小
alter tablespace undonew add datafile 'D:\dataspace\undonew2.dbf' size 50M autoextend on;
5.retention guarantee 属性
当undo数据文件不能自动扩展,并且undo块不够用时,是直接报错。而不是覆盖那些inactive而有没有expired的undo块。(oracle 不会将保留时间小于undo_retention 的undo块覆盖)
指定retention 属性的方法:
1) alter tablespace undonew add datafile 'D:\dataspace\undonew2.dbf' size 50M autoextend on maxsize 100M retention guarantee;
2) alter tablespace undonew retention guarantee;
3) alter tablespace undonew retention noguarantee;
查看是用undo块
SELECT begin_time,end_time,undoblks FROM v$undostat
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26885292/viewspace-721264/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26885292/viewspace-721264/