OCP考試第18題

18. You create a new Automatic Database Diagnostic Monitor (ADDM) task: instance_analysis_mode_task.

To view the ADDM report, you use the following command:

SQL> SELECT dbms_addm.get_report('my_instance_analysis_mode_task') FROM dual;

You want to suppress ADDM output relating to Segment Advisor actions on user SCOTT's segments. What would you do to achieve this?

你想要ADDM輸出關於segment的建議

 

A. Add a finding directive for the ADDM task.

B. Add a segment directive for the ADDM task.

C. Add a parameter directive for the ADDM task.

D. Disable the Segment Advisor from the Automatic Maintenance Task.

 

 

 

知識點:

ADDM是Oracle一個實現性能自我診斷的最佳利器。它依賴於AWR,也就是說ADDM要診斷,必要要有診斷的依據。

要使用ADDM,兩個重要的參數應進行正確的配置。

  statistics_level:該參數建議設置爲TYPICAL

  control_management_pack_access:該參數建議設置爲DIAGNOSTIC+TUNING,及診斷和優化包都被使用。

ADDM採樣 @?/rdbms/admin/addmrpt.sql  

主要哪些問題導致了過高的DB Time 佔用,並提供建議。

參考:https://blog.csdn.net/leshami/article/details/70859672

GET_ASH_QUERY Function

Returns a string containing the SQL text of an ASH query identifying the rows in ASH with impact for the finding

GET_REPORT Function

Retrieves the default text report of an executed ADDM task

INSERT_FINDING_DIRECTIVE Procedure

Creates a directive to limit reporting of a specific finding type.

INSERT_PARAMETER_DIRECTIVE Procedure

Creates a directive to prevent ADDM from creating actions to alter the value of a specific system parameter

INSERT_SEGMENT_DIRECTIVE Procedure

Creates a directive to prevent ADDM from creating actions to "run Segment Advisor" for specific segments

INSERT_SQL_DIRECTIVE Procedure

Creates a directive to limit reporting of actions on specific SQL

可以提供Creates a directive to prevent ADDM from creating actions to "run Segment Advisor" for specific segments

 

 

答案:B

 

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章