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