Chinaunix首页 | 论坛 | 博客
  • 博客访问: 379962
  • 博文数量: 120
  • 博客积分: 5051
  • 博客等级: 大校
  • 技术积分: 1255
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-03 01:25
文章分类

全部博文(120)

文章存档

2011年(2)

2010年(11)

2009年(28)

2008年(26)

2007年(53)

我的朋友

分类: Oracle

2008-07-27 16:06:53

关于undo tablespace retention:
 
1)undo_retention的解释:
undo_retention 是撤消表空间的的一个动态参数,它指明了保留撤消的最小时间长度,它的缺省值是900秒。以下是官网的解释。
UNDO_RETENTION A dynamic parameter specifying the minimum length of time to retain undo. The default is 900 seconds. The setting of this parameter should take into account any flashback requirements of the system.
 
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) |
给主人留下些什么吧!~~