undo_retention&guarantee
来源:互联网 发布:男生不玩游戏知乎 编辑:程序博客网 时间:2024/06/06 15:37
undo_retention:指定事物commit后undo将要保存的时间(秒),在ORACLE10g中默认的是900秒。
GUARANTEE :保证undo_retention参数所设定的时间有效,这个是10g的新功能。
SQL> ALTER TABLESPACE undotbs1 RETENTION GUARANTEE;
SQL> ALTER TABLESPACE undotbs1 RETENTION NOGUARANTEE;
在没有guarantee的保证下,ORACLE并不能保证能够将undo信息存储900秒,如果undo表空间不足,那么ORACLE将忽略undo_retention的设置,直接覆盖掉以前的undo,这个时候有可能会产生ORA-01555错误。如果undo表空间空间足够,那么undo将会保存很长一段时间,直到undo表空间达到maxsize,这个时候才会覆盖undo信息,而且ORACLE会从最古老的undo信息开始覆盖。
ORACLE推荐我们将undo表空间中的datafile设定MAXSIZE ,不要让它一直自动扩展,如果ORACLE获得了自动扩展的能力,那么旧的undo不会被覆盖,到后来undo表空间会越来越大,越来越大,直到将磁盘空间耗尽。
在有guarantee的保证下,ORACLE将会保证undo信息能够保存到undo_retention设定的值之后才被覆盖,如果这个时候同时执行了很多事物,将undo表空间耗完了,那么那个事物会失败,会报ORA-30036错误,所以使用guarantee一定要慎用,如果非要使用guarantee,那么尽量将undo表空间设大一点。
Oracle10g开始,如果你设置UNDO_RETENTION为0,那么Oracle启用自动调整以满足最长运行查询的需要。当然如果空间不足,那么Oracle满足最大允许的长时间查询。而不再需要用户手工调整。
- undo_retention&guarantee
- undo_retention&guarantee
- undo_retention&guarantee
- 使用undo_retention参数与UNDO表空间GUARANTEE功能避免ORA-01555错误
- 31.Which statement is true about the UNDO_RETENTION parameter when retention guarantee is not enable
- 使用undo_retention参数与UNDO表空间GUARANTEE功能避免ORA-01555错误
- 关于undo_retention
- UNDO_RETENTION&RETENTION_GUARANTEE
- UNDO_RETENTION作用
- timus 1211. Collective guarantee
- Kafka-Delivery Guarantee
- Kafka 消息 Deliver guarantee
- ORACLE 变量之 UNDO_RETENTION
- 修改oracle 的undo_retention
- undo_retention设置以及优化
- undo_retention参数说明
- undo_retention设置以及优化
- RETENTION GUARANTEE 参数的作用
- ModelAndView解析
- apache 虚拟目录设定
- linux udev设备管理
- 指令译码器的作用
- MYSQL优化技巧
- undo_retention&guarantee
- 开启3389端口
- (转)Javascript 面向对象编程(一):封装
- 软件和社会转型
- Android BroadcastReceiver 学习
- iis安装问题
- 开源框架系列:.NET Enterprise CMS Framework --- RapidWebDev 基于XML配置的UI介绍
- 短信猫发送短信没有回执
- linux 进程地址空间 之 mm_count vs mm_users