• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Techgoeasy

Techgoeasy

Learn Oracle, PHP, HTML,CSS,Perl,UNIX shell scripts

  • Home
  • Oracle
    • Oracle database
    • Oracle Ebusiness Suite
    • Oracle weblogic
    • Oracle Performance Tuning
    • Oracle Hyperion
    • Oracle Cloud Tutorials
  • SQL
  • interview questions
  • Linux
  • PHP and HTML
  • Downloads
  • General
Home » Oracle » Oracle Database » How to create ADDM task and check its report

How to create ADDM task and check its report

June 16, 2014 by techgoeasy Leave a Comment

In this post, I will explain How to create ADDM task  and check its report
We are using start snapshot as 900
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.

Filed Under: Oracle, Oracle Database Tagged With: addm report, How to create ADDM task and check its report

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



Subscribe to our mailing list

Enter your email address to subscribe to this blog and receive notifications of new posts by email

Recent Posts

  • How to use sed to remove comments and blank lines
  • How to recover database using RMAN
  • How to check Stale statistics
  • Java web start(JWS) in R12
  • How to delete the archive logs in Oracle

Copyright © 2023 : TechGoEasy

  • Hire me
  • Privacy Policy
  • Contact Us
  • New? Start Here
  • About Us