| Property | Description |
|---|---|
| Parameter type | String |
| Syntax | STATISTICS_LEVEL = { ALL | TYPICAL | BASIC } |
| Default value | TYPICAL |
| Modifiable | ALTER SESSION,ALTER SYSTEM |
STATISTICS_LEVELspecifies the level of collection for database and operating system statistics. The Oracle Database collects these statistics for a variety of purposes, including making self-management decisions.
The default setting ofTYPICALensures collection of all major statistics required for database self-management functionality and provides best overall performance. The default value should be adequate for most environments.
When theSTATISTICS_LEVELparameter is set toALL, additional statistics are added to the set of statistics collected with theTYPICALsetting. The additional statistics are timed OS statistics and plan execution statistics.
Setting theSTATISTICS_LEVELparameter toBASICdisables the collection of many of the important statistics required by Oracle Database features and functionality, including:
Automatic Workload Repository (AWR) Snapshots
Automatic Database Diagnostic Monitor (ADDM)
All server-generated alerts
Automatic SGA Memory Management
Automatic optimizer statistics collection
Object level statistics
End to End Application Tracing (V$CLIENT_STATS)
Database time distribution statistics (V$SESS_TIME_MODELandV$SYS_TIME_MODEL)
Service level statistics
Buffer cache advisory
MTTR advisory
Shared pool sizing advisory
Segment level statistics
PGA Target advisory
Timed statistics
Monitoring of statistics
Note:
Oracle strongly recommends that you do not disable these important features and functionality.When theSTATISTICS_LEVELparameter is modified byALTER SYSTEM, all advisories or statistics are dynamically turned on or off, depending on the new value ofSTATISTICS_LEVEL. When modified byALTER SESSION, the following advisories or statistics are turned on or off in the local session only. Their system-wide state is not changed:
Timed statistics
Timed OS statistics
Plan execution statistics
TheV$STATISTICS_LEVELview displays information about the status of the statistics or advisories controlled by theSTATISTICS_LEVELparameter. See"V$STATISTICS_LEVEL".
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_4465.htm#sthref2375
USER_TAB_MODIFICATIONSUSER_TAB_MODIFICATIONSdescribes modifications to all tables owned by the current user that have been modified since the last time statistics were gathered on the tables. Its columns are the same as those in"ALL_TAB_MODIFICATIONS".
Note:
This view is populated only for tables with theMONITORINGattribute. It is intended for statistics collection over a long period of time. For performance reasons, the Oracle Database does not populate this view immediately when the actual modifications occur. Run theFLUSH_DATABASE_MONITORING_INFOprocedure in theDIMS_STATSPL/SQL package to populate this view with the latest information. TheANALYZE_ANYsystem privilege is required to run this procedure.来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/24383181/viewspace-713315/ ,如需转载,请注明出处,否则将追究法律责任。