V$STATISTICS_LEVEL
V$STATISTICS_LEVEL
displays the status of the statistics/advisories controlled by STATISTICS_LEVEL
.
Column | Datatype | Description |
---|---|---|
STATISTICS_NAME | VARCHAR2(64) | Name of the statistic/advisory |
DESCRIPTION | VARCHAR2(4000) | Description of the statistic/advisory |
SESSION_STATUS | VARCHAR2(8) | Status of the statistic/advisory for the session:
|
SYSTEM_STATUS | VARCHAR2(8) | System-wide status of the statistic/advisory:
|
ACTIVATION_LEVEL | VARCHAR2(7) | Indicates the level of STATISTICS_LEVEL that enables the statistic/advisory:
|
STATISTICS_VIEW_NAME | VARCHAR2(64) | If there is a single view externalizing the statistic/advisory, then this column contains the name of that view. If there is no such view, then this column is null. If there are multiple views involved, then theDESCRIPTION column mentions the view names. |
SESSION_SETTABLE | VARCHAR2(3) | Indicates whether the statistic/advisory can be set at the session level (YES ) or not (NO ) |
一共有三个值:basic,typical,all.支持alter session,alter system 动态修改.
如果要用statspack或者AWR收集系统性能统计数据.那么这个参数的值必须为typical或all.
通常all是一个全面收集,包括 OS以及sql执行路径方面的一些统计信息,除非遇见非常严重的
性能问题或在一些特殊的性能挣断方面才会用到statistics_level=all,
平常statistics_level=typeical已经足够挣断99%的性能问题了.