|
-
- select * from DBA_ADVISOR_FINDING_NAMES
- where lower(finding_name) like '%parse%';
- declare
- tname varchar2(60);
- BEGIN
- dbms_addm.insert_finding_directive (NULL,
- 'My directive',
- 'Hard Parse Due to Literal Usage',
- 20,
- 70);
- tname := 'task1';
- dbms_addm.analyze_inst(tname, 64, 65);
- END;
-
- SELECT dbms_addm.get_report('task1') from dual;
- select * from dba_advisor_findings
- where task_name like 'task%';
- select * from dba_directories;
- declare
- tname varchar2(60);
- begin
-
- tname :='task3';
- dbms_addm.analyze_inst( tname, 64, 65);
-
- end;
-
- begin
- dbms_addm.delete_finding_directive(task_name => null ,
- dir_name => 'My directive');
- end;
- declare
- tname varchar2(60);
- begin
-
- tname :='task4';
- dbms_addm.analyze_inst( tname, 64, 65);
-
- end;
- select * from dict where table_name like '%DIRECTIVE%';
- BEGIN
- dbms_addm.insert_finding_directive (NULL,
- 'Your directive',
- 'Hard Parse Due to Literal Usage',
- 20,
- 70);
- end;
-
- select * from DBA_ADDM_SYSTEM_DIRECTIVES;
-
- select * from DBA_ADDM_TASK_DIRECTIVES;
复制代码
|
|