溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

12cR2_AWR相關參數(shù)設置

發(fā)布時間:2020-05-26 08:03:59 來源:網(wǎng)絡 閱讀:752 作者:roidba 欄目:關系型數(shù)據(jù)庫


Oracle 12cR2

性能優(yōu)化文檔。

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相關的參數(shù)。

  • 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.

     --設置以上參數(shù)為basic會禁用掉很多數(shù)據(jù)庫特性,包括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.

       --關閉此參數(shù)會禁用掉很多數(shù)據(jù)庫的特性,包括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信息是和那些參數(shù)有關,默認設置即可,不需要修改。

建議大家看英文官方文檔,學英語學技術(shù),哦也!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI