DBA AWR SQL Execution Plan History
Description:
Execution plan history for a particular SQL id from the automatic workload repository
Parameters
SQL Id, Plan Hash Value, Using Index, Object Name, Options, Objects larger than x GB, Show Object Size, Diagnostic Pack enabled, Container Data
Used tables
dba_hist_sql_plan, v$parameter, dba_segments
Categories
Related reports
DBA AWR SQL Performance Summary, DBA SGA SQL Execution Plan History
Dependencies
If you would like to try one of these Oracle EBS SQLs without having Blitz Report installed, note that some of the reports require functions from utility package xxen_util.
Example Report
DBA AWR SQL Execution Plan History 22-Dec-2025 083522.xlsx
Report SQL
www.enginatics.com/reports/dba-awr-sql-execution-plan-history/
Blitz Report™ import options
DBA_AWR_SQL_Execution_Plan_History.xml
Executive Summary
The DBA AWR SQL Execution Plan History report is a critical tool for diagnosing “Plan Flipping” or “Plan Regression”. It tracks how the execution plan for a specific SQL statement has changed over time. In Oracle, the Optimizer decides the best way to execute a query (which index to use, join order, etc.). Sometimes, this plan changes for the worse, causing a query that used to take 1 second to suddenly take 1 hour.
Business Challenge
- Performance Regression: “This report was fast yesterday. Today it’s slow. Nothing changed in the code.”
- Upgrade Analysis: “Did the database upgrade cause the Optimizer to pick a bad plan for our critical payroll query?”
- Index Impact: “Did dropping that index cause the query to switch to a full table scan?”
Solution
This report lists all execution plans captured in AWR for a given SQL ID.
Key Features:
- Plan Hash Value: A unique identifier for the plan structure. A change in this value confirms the plan changed.
- Cost: The Optimizer’s estimated cost for the plan.
- Timestamp: When the plan was first and last seen.
Architecture
The report queries DBA_HIST_SQL_PLAN.
Key Tables:
DBA_HIST_SQL_PLAN: Stores the steps of the execution plan.DBA_HIST_SQLSTAT: Links the plan to performance metrics.
Impact
- Stability: Allows DBAs to identify unstable queries and lock down their plans (using SQL Profiles or Baselines).
- Root Cause Analysis: Definitively proves whether a performance drop was caused by a plan change.
- Recovery: Provides the “good” plan hash value needed to restore performance.
Oracle E-Business Suite Reporting Library
We provide an open source Oracle EBS SQLs as a part of operational and project implementation support toolkits for rapid Excel reports generation.
Blitz Report™ is based on Oracle EBS forms technology, and hence requires minimal training. There are no data or performance limitations since the output files are created directly from the database without going through intermediate file formats such as XML.
Blitz Report can be used as BI Publisher and Oracle Discoverer replacement tool. Standard Oracle BI Publisher and Discoverer reports can also be imported into Blitz Report for immediate output to Excel. Typically, reports can be created and version tracked within hours instead of days. The concurrent request output automatically opens upon completion without the need for re-formatting.
The Filters, Columns, Rows and Values fields are used to create and deliver the data in pivot table format with full drill down to details.

The Excel template upload functionality in Blitz Report allows users to create their own layouts by uploading an Excel template with additional sheets and charts, automatically refreshed when the report runs again. This allows to create custom dashboards and more advanced visualizations of report data.

You can download and use Blitz Report free of charge for your first 30 reports.
The installation and implementation process usually takes less than 1 hour; you can refer to our installation and user guides for specific details.
If you would like to optimize your Oracle EBS implementation and or operational reporting you can visit www.enginatics.com to review great ideas and example usage in blog. Or why not try for yourself in our demo environment.
Useful Links
Blitz Report™ – World’s fastest data upload and reporting for Oracle EBS
Oracle Discoverer replacement – importing worksheets into Blitz Report™
Blitz Report™ Questions & Answers
Supply Chain Hub by Blitz Report™
© 2025 Enginatics