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 and later
Oracle Net Services - Version to [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.


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


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
 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?

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