undo_retention&guarantee
来源:互联网 发布:pat知乎 编辑:程序博客网 时间:2024/06/07 18:22
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满足最大允许的长时间查询。而不再需要用户手工调整。
FROM:http://blog.csdn.net/robinson1988/article/details/4681469
- 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 参数的作用
- oracle的dump函数应用
- android事件传递机制详解
- java.util.Locale
- Fancy plywood / door skin plywood / furniture plywood price nsjh
- Cheap Louis Vuitton Sunglasses UVDpR
- undo_retention&guarantee
- Cheap Louis Vuitton Wallets ucXOT
- Duanxx的Design abroad California-LaneDetection概述
- LNK1123: 转换到 COFF 期间失败: 文件无效或损坏(转)
- [centos6.2] samba 服务的配置
- 阿里巴巴无敌公关能力鲜为人知的内幕
- 在网页中实现图片播放
- C++编程学习50个经典网站
- Head First HTML+CSS 笔记(二)