View the Exhibit to examine the Automatic Database Diagnostic Monitor (ADDM) tasks. You
executed the following commands:
SQL> VAR tname VARCHAR2(60);
SQL> BEGIN
:tname := ‘my_instance_analysis_mode_task’;
DBMS_ADDM.INSERT_SEGMENT_DIRECTIVE(:tname,’Sg_directive’,’SCOTT’);
END;
Which statement describes the consequence?
Exhibit:
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.
Explanation:
sys@TEST1107> VAR tname VARCHAR2(60);
sys@TEST1107> BEGIN :tname := ‘my_instance_analysis_mode_task’;
2 DBMS_ADDM.INSERT_SEGMENT_DIRECTIVE(:tname,’Sg_directive’,’SCOTT’);
3 END;
4 /
PL/SQL procedure successfully completed.
sys@TEST1107> SELECT DBMS_ADVISOR.GET_TASK_REPORT(:tname, ‘TEXT’, ‘ALL’)
FROM
DUAL;
ERROR:
ORA-13631: The most recent execution of task my_instance_analysis_mode_task
contains no results.
ORA-06512: at “SYS.PRVT_ADVISOR”, line 3189
ORA-06512: at “SYS.DBMS_ADVISOR”, line 590
ORA-06512: at line 1
no rows selected

https://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_addm.htm#CACECFCJ
INSERT_SEGMENT_DIRECTIVE Procedure
This procedure creates a directive to prevent ADDM from creating actions to “run Segment Advisor” for specific segments. The directive can be created for a specific task (only when the task is in INITIAL status), or for all subsequently created ADDM tasks (such as a system directive).