undo表空间

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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值