博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
12cR2_AWR相关参数设置
阅读量:7040 次
发布时间:2019-06-28

本文共 2337 字,大约阅读时间需要 7 分钟。

Oracle 12cR2

性能优化文档。

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,如需转载请自行联系原作者
你可能感兴趣的文章
能测试知多少--系统计数器与硬件分析
查看>>
颠覆传统 移动CRM成企业应用热点
查看>>
适合应用RFID的六大领域介绍
查看>>
《Web测试囧事》——2.6 时区不一致造成邮件发送异常
查看>>
需求管理是需求开发的基础
查看>>
干货:模板网站SEO优化技巧!
查看>>
CB Insights:2017年Q1网络安全领域共实现140宗投资
查看>>
安捷伦2016 Q2收入较去年增长6% 调升全年收入指导范围
查看>>
最新 Chrome 可让本地文件在网页应用中打开
查看>>
《Python地理空间分析指南(第2版)》——1.10 GIS中矢量数据的基本概念
查看>>
MySQL自动化运维工具 Inception
查看>>
QGraphicsItem如何使用信号/槽
查看>>
《计算机科学导论》一第2章
查看>>
分布式列式数据库 IndexR 开源啦!
查看>>
微软被评为全球第二大影响力公司
查看>>
《Web前端工程师修炼之道(原书第4版)》——我需要学习哪些语言
查看>>
《计算机视觉:模型、学习和推理》——3.5 一元正态分布
查看>>
Uncode-DAL 1.0.18 发布,Java 通用数据访问层
查看>>
《Excel 职场手册:260招菜鸟变达人》一第 8 招 怎样在多张工作表录入相同的数据——创建工作组...
查看>>
《机器人操作系统ROS原理与应用》——第1章 企业大数据战略定位
查看>>