在AWR中,如果有部分选项是:Nodata exists for this section of the report.那么属正常现象。
如:
那么现在看一个有数据的AWR:
在下面的这个图中就显示了显示的条件:
(1)SQL orderedby Sharable Memory:Only Statements with Sharable Memory greater than 1048576 are displayed
(2)SQL orderedby Version Count:Only Statements with Version Count greater than 20 are displayed
只有达到条件的情况下,才会显示该项的数据。所以如果出现No data exists for this section of the report.就说明还没达到条件。
如果说不是局部选项,而是全部都是No data exists for this section of the report,那么AWR的相关参数设置可能就有问题。
(1) Automatic Workload Repository(AWR) Snapshots
(2) Automatic Database DiagnosticMonitor (ADDM)
(3) All server-generated alerts
(4) Automatic SGA Memory Management
(5) Automatic optimizer statisticscollection
(6) Object level statistics
(7) End to End Application Tracing(V$CLIENT_STATS)
(8) Database time distributionstatistics (V$SESS_TIME_MODEL and V$SYS_TIME_MODEL)
(9) Service level statistics
(10) Buffer cache advisory
(11) MTTR advisory
(12) Shared pool sizing advisory
(13) Segment level statistics
(14) PGA Target advisory
(15) Timed statistics
(16) Monitoring of statistics
该参数默认是typical:
SYS> show parameter statistics
NAME TYPE VALUE
----------------------------------------------- ------------------------------
statistics_level string TYPICAL
timed_os_statistics integer 0
timed_statistics boolean TRUE
详见我的Blog:
http://blog.csdn.net/tianlesoftware/article/details/4682300
使用如下SQL 查看相关的设置:
SQL> show parameter CONTROL_MANAGEMENT_PACK_ACCESS
NAME TYPE VALUE
----------------------------------------------- ----------------------
control_management_pack_access string DIAGNOSTIC+TUNING
对企业版的默认值是DIAGNOSTIC+TUNING,如上所示。
Property |
Description |
Parameter type |
String |
Syntax |
CONTROL_MANAGEMENT_PACK_ACCESS = { NONE | DIAGNOSTIC | DIAGNOSTIC+TUNING } |
Default value |
Enterprise Edition: DIAGNOSTIC+TUNING All other editions: NONE |
Modifiable |
ALTER SYSTEM |
Basic |
No |
CONTROL_MANAGEMENT_PACK_ACCESS specifieswhich of the Server Manageability Packs should be active. The following packsare available:
A license for DIAGNOSTIC is required for enabling the TUNING pack.
对这个参数的解释,参考:
http://docs.oracle.com/cd/E11882_01/server.112/e25513/initparams037.htm#REFRN10296
如果在Oracle 11g里该参数不正确,也会影响AWR等信息的收集,可以通过如下语句修改:
SQL>alter system set control_management_pack_access='DIAGNOSTIC+TUNING' scope=both;
System altered.
1. 如果部分选项出现No data exists for this section of the report.属正常现象。
2. 如果全部出现,则需要检查相关参数10g中检查statistics_level,11g中检查statistics_level和control_management_pack_access参数。
-------------------------------------------------------------------------------------------------------
版权所有,文章允许转载,但必须以链接方式注明源地址,否则追究法律责任!
Blog: http://blog.csdn.net/tianlesoftware
Weibo: http://weibo.com/tianlesoftware
Email: [email protected]
Skype: tianlesoftware
-------加群需要在备注说明Oracle表空间和数据文件的关系,否则拒绝申请----
DBA1 群:62697716(满); DBA2 群:62697977(满) DBA3 群:62697850(满)
DBA 超级群:63306533(满); DBA4 群:83829929 DBA5群: 142216823
DBA6 群:158654907 DBA7 群:172855474