关于undo tablespace retention:
1)undo_retention的解释:
undo_retention 是撤消表空间的的一个动态参数,它指明了保留撤消的最小时间长度,它的缺省值是900秒。以下是官网的解释。
2)Automatic Tuning of Undo Retention
一是在创建undo tablespace的时候:
create undo tablespace undotest datafile 'undo.dat' size 2M retention guarantee;
二是用alter 语句:
alter tablespace undotest retention guarantee;
3)设定undo retention的值
SQL> alter system set undo_retention=2400;
系统已更改。
或者通过修改init.ora文件。
4)查看当前undo retention 在当前数据库中的值:
SQL> select TUNED_UNDORETENTION from V$undostat;
TUNED_UNDORETENTION
-------------------
2400
900
900
900
900
900
900
900
900
已选择9行。
5)查看是否设置了retention:
SQL> select tablespace_name,retention from dba_tablespaces;
TABLESPACE_NAME RETENTION
------------------------------ -----------
SYSTEM NOT APPLY
UNDOTBS1 NOGUARANTEE
SYSAUX NOT APPLY
TEMP NOT APPLY
USERS NOT APPLY
EXAMPLE NOT APPLY
TEST NOT APPLY
TEST_TEMP NOT APPLY
TESTUNDO GUARANTEE
已选择9行。
以上均来自官网的文档。
阅读(1305) | 评论(0) | 转发(0) |