And end snapshots as 950
BEGIN
â Create an ADDM task.
DBMS_ADVISOR.create_task (
advisor_name     => âADDMâ,
task_name        => â900_950_AWR_SNAPSHOTâ,
task_desc        => âAdvisor for snapshots 900 to 950.â);
â Set the start and end snapshots.
DBMS_ADVISOR.set_task_parameter (
task_name => â900_950_AWR_SNAPSHOTâ,
parameter => âSTART_SNAPSHOTâ,
value    => 900);
DBMS_ADVISOR.set_task_parameter (
task_name => â900_950_AWR_SNAPSHOTâ,
parameter => âEND_SNAPSHOTâ,
value    => 950);
â Execute the task.
DBMS_ADVISOR.execute_task(task_name => â900_950_AWR_SNAPSHOTâ,);
END;
/
â Display the report.
SET LONG 100000
SET PAGESIZE 50000
SELECT DBMS_ADVISOR.get_task_report(â900_950_AWR_SNAPSHOTâ) AS report
FROMÂ Â dual;
SET PAGESIZE 24
Related Views
The following views can be used to display the ADDM output without using Enterprise Manager or the GET_TASK_REPORT function:
DBA_ADVISOR_TASKS â Basic information about existing tasks.
DBA_ADVISOR_LOG â Status information about existing tasks.
DBA_ADVISOR_FINDINGS â Findings identified for an existing task.
DBA_ADVISOR_RECOMMENDATIONS â Recommendations for the problems identified by an existing task.