Archive for 六月, 2009

undo_retention and autoextend

星期一, 六月 1st, 2009
10g以后,UNDO管理一般都会采用自动管理,且客户一般都是RAC,使用裸设备,所以数据文件自动扩展一般都是关闭的,最近发现设置了undo_retention后,在实际中还是会自动调整的,可以查看视图:v$undostat.tuned_undoretention
METALINK上搜索了下,和Bug 5387030 有关,在10.2.0.4上已经FIX掉了,临时的解决方法有以下3种方法:
1 打开UNDO数据文件自动扩展,但是设定maxsize
2 设置隐含参数:
Alter system set "_smu_debug_mode" = 33554432;
3 Alter system set "_undo_autotune" = false;
相关文档
ID420525.1
 
可以通过以下
SQL查看UNDO使用率
select ((select (nvl(sum(bytes), 0))
          
from dba_undo_extents
          
where tablespace_name = '<current_undo_ts>'
            
and status in ('ACTIVE', 'UNEXPIRED')) * 100) /
      
(select sum(bytes)
          
from dba_data_files
        
where tablespace_name = '<current_undo_ts>') "PCT_INUSE"
 
from dual;