ITPub博客

首页 > 数据库 > Oracle > Oracle 11G OCP 1Z0-053 225

Oracle 11G OCP 1Z0-053 225

原创 Oracle 作者:LuiseDalian 时间:2014-09-05 16:12:22 0 删除 编辑
(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;

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/17013648/viewspace-1264803/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2012-02-06

  • 博文量
    1986
  • 访问量
    6042350