DBID SNAP_INTERVAL RETENTION TOPNSQL
---------- ---------------------------------------- ---------------------------------------- ----------
733951103 +40150 00:00:00.0 +00007 00:00:00.0 DEFAULT
--再次enable awr
sys@HKBO5> exec dbms_awr.enable_awr();
PL/SQL procedure successfully completed.
--此时SNAP_INTERVAL采样恢复到了缺省值,也就是说过程DISABLE_AWR修改了SNAP_INTERVAL设置
sys@HKBO5> select * from dba_hist_wr_control;
DBID SNAP_INTERVAL RETENTION TOPNSQL
---------- ---------------------------------------- ---------------------------------------- ----------
733951103 +00000 01:00:00.0 +00007 00:00:00.0 DEFAULT
4、卸载awr
卸载awr通用用于awr相关功能或特性异常的时候。通过先卸载在安装来达到使awr特性正常化。下面给出步骤,不再演示。
卸载awr脚本:$ORACLE_HOME/rdbms/admin/catnoawr.sql
安装awr脚本:$ORACLE_HOME/rdbms/admin/catawr.sql
sqlplus /nolog
connect / as sysdba
show parameters statistics_level
alter system set statistics_level=basic scope=spfile;
shutdown immediate
startup restrict
$ORACLE_HOME/rdbms/admin/catnoawr
shutdown immediate
startup
5、参考
Doc ID 1909073.1
Doc ID 787409.1
在CentOS 6.4下安装Oracle 11gR2(x64)