My Oracle Support Banner

How to Analyze the Performance History of a SQL Statement as Recorded in AWR Using Simple SQL (Doc ID 1580764.1)

Last updated on MAY 03, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.1 and later
Oracle Net Services - Version 10.2.0.5 to 10.2.0.5 [Release 10.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Information in this document applies to any platform.

Goal

 Identify and analyze the problematic SQL using AWR data and fix based on efficient plan.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 Identify the SQL_ID for the SQL you want to analyze.
 Script to collect SQL execution history based on AWR data retention.
 Execute the script xplawrall.sql which you download above.
 For FULL sample AWR data download the attached file
 (a) Explanation for the data points in the sample output
 (b) Data Analysis
 How to fix the SQL with good plan in a situation where multiple plans are used/available?
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.