12cR2_AWR相关参数设置

简介:

Oracle 12cR2

性能优化文档。

https://docs.oracle.com/database/122/TDPPT/oracle-database-performance-method.htm#TDPPT007


Gathering Database Statistics Using the Automatic Workload Repository

Database statistics provide information about the type of load on the database and the internal and external resources used by the database. To accurately diagnose performance problems with the database using ADDM, statistics must be available.


A cumulative statistic is a count such as the number of block reads. Oracle Database generates many types of cumulative statistics for the system, sessions, and individual SQL statements. Oracle Database also tracks cumulative statistics about segments and services. Automatic Workload Repository (AWR) automates database statistics gathering by collecting, processing, and maintaining performance statistics for database problem detection and self-tuning purposes.


By default, the database gathers statistics every hour and creates an AWR snapshot, which is a set of data for a specific time that is used for performance comparisons. The delta values captured by the snapshot represent the changes for each statistic over the time period. Statistics gathered by AWR are queried from memory. The gathered data can be displayed in both reports and views.

--每小时收集一次AWR快照


The following initialization parameters are relevant for AWR:

--下面是两个和AWR相关的参数。

  • STATISTICS_LEVEL

    Set this parameter to TYPICAL (default) or ALL to enable statistics gathering by AWR. Setting STATISTICS_LEVEL to BASIC disables many database features, including AWR, and is not recommended.

     --设置以上参数为basic会禁用掉很多数据库特性,包括AWR,不建议设置basic


  • CONTROL_MANAGEMENT_PACK_ACCESS

    Set to DIAGNOSTIC+TUNING (default) or DIAGNOSTIC to enable automatic database diagnostic monitoring. Setting CONTROL_MANAGEMENT_PACK_ACCESS to NONE disables many database features, including ADDM, and is strongly discouraged.

       --关闭此参数会禁用掉很多数据库的特性,包括ADDM,不建议关闭。



SQL> show parameter statistics_level        --默认值不需要修改

NAME                                 TYPE        VALUE
------------------------ ----------- ------------------------------
statistics_level                     string      TYPICAL

SQL> show parameter control_management   --默认值不需要修改

NAME                                                     TYPE        VALUE
-------------------------------------- ----------- ------------------------------
control_management_pack_access      string      DIAGNOSTIC+TUNING
SQL> 

以上大家知道我们收集到AWR信息是和那些参数有关,默认设置即可,不需要修改。

建议大家看英文官方文档,学英语学技术,哦也!










本文转自 roidba 51CTO博客,原文链接:http://blog.51cto.com/roidba/1976168,如需转载请自行联系原作者
目录
相关文章
|
Oracle 关系型数据库 数据库
Oracle 11G常见性能诊断报告(AWR/ADDM/ASH)收集
Oracle 11G常见性能诊断报告(AWR/ADDM/ASH)收集
323 0
|
6月前
|
SQL 监控 Oracle
Oracle 性能优化之AWR、ASH和ADDM(含报告生成和参数解读)
Oracle 性能优化之AWR、ASH和ADDM(含报告生成和参数解读)
|
6月前
修改oracle11g的awr快照参数
修改oracle11g的awr快照参数
47 0
|
Oracle 关系型数据库 数据库
oracle手工生成AWR报告方法记录
AWR(Automatic Workload Repository)报告是我们进行日常数据库性能评定、问题SQL发现的重要手段。熟练掌握AWR报告,是做好开发、运维DBA工作的重要基本功。
1432 0
|
Oracle 关系型数据库
Oracle如何重启mmon/mmnl进程(AWR自动采集)
Oracle如何重启mmon/mmnl进程(AWR自动采集)
1059 0
|
SQL 数据库
如何生成 AWR 报告和 AWR 基线 (Doc ID 2331572.1)
如何生成 AWR 报告和 AWR 基线 (Doc ID 2331572.1)
142 0
|
Oracle 关系型数据库 Windows
Oracle AWR\ASH报告相关操作
Oracle AWR\ASH报告相关操作
174 0
|
SQL Oracle 关系型数据库
ORACLE 10g AWR报告设置总结
1:查看、修改AWR报告快照数据的采样间隔、保存策略 SQL> COL DBID FOR 999999999999 SQL> COL SNAP_INTERVAL FOR A26 SQL> COL RETENTION FOR A26 SQL> COL TOPNSQL FOR A10 SQL>...
1249 0
|
存储 Oracle 关系型数据库