10g 中RETENTION GUARANTEE 的作用
1、先解釋下undo_retention
設置undo_retention,保證commit 后的數據在undo segment中保留多長時間。但是并不能保證commit后的undo 信息在undo_retention的時間內一定不被覆寫,當undo segment不夠時,還是會覆蓋已commit的undo 信息。
2、如果需要保證在undo_retention時間內undo 信息一定不被覆寫的話,可以對undo segment設置RETENTION GUARANTEE。但是這個參數受到undo_retention和undo size的限制。如果undo size 太小,undo_retention設置太久,設置retention guarantee 時就會報錯:
?
ORA-30036: unable to extend segment by 8 in undo tablespace 'UNDOTBS2'
?
3、設置該參數
?alter tablespace undotbs2 retention guarantee;
?
撤銷該參數
?alter tablespace undotbs2 retention noguarantee;
?
轉載于:https://www.cnblogs.com/yifan268/archive/2008/07/23/1249851.html
總結
以上是生活随笔為你收集整理的10g 中RETENTION GUARANTEE 的作用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 智力面试题
- 下一篇: DNN网站出现服务不可用