Oracle 11G OCP 1Z0-053 225

(225)View the Exhibit to examine the Automatic Database Diagnostic Monitor(ADDM)tasks.You executed the following commands:

SQL>VAR tname VARCHAR2(60);

BEGIN

  DBMS_ADDM.INSERT_SEGMENT_DIRECTIVE(:tname, 'Sg_directive', 'SCOTT');

END;

Which statement describes the consequence?

A. The ADDM task is filtered to suppress the Segment Advisor suggestions for the SCOTT schema.

B. The ADDM task is filtered to produce the Segment Advisor suggestions for the SCOTT schema only.

C. The PL/SQL block produces an error because the my_instance_analysis_mode_task task has not been reset to its initial state.

D. All subsequent ADDM tasks including my_instance_analysis_mode_task are filtered to suppress the Segment Advisor suggestions for the SCOTT schema.

答案:(C)

解析:

-- 创建新的ADDM任务来分析本地实例,对属于SCOTT用户的段特殊对待

-- GET_REPORT的结果不会显示对SCOTT的段运行段指导的操作

var tname VARCHAR2(60);

BEGIN

  DBMS_ADDM.INSERT_SEGMENT_DIRECTIVE(NULL, 'my Segment directive', 'SCOTT');

  :tname := 'my_instance_analysis_mode_task';

  DBMS_ADDM.ANALYZE_INST(:tname, 1, 2);

END;

-- 不管指令,查看包含所有操作的报告

SELECT DBMS_ADVISOR.GET_TASK_REPORT(:tname, 'TEXT', 'ALL') FROM DUAL;

请使用浏览器的分享功能分享到微信等