DBA AWR SQL Execution Plan History – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Database Administration · all Database Administration reports
Overview
Execution plan history for a particular SQL id from the automatic workload repository
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
SQL Id, Plan Hash Value, Using Index, Object Name, Options, Objects larger than x GB, Show Object Size, Diagnostic Pack enabled, Container Data
Oracle EBS Tables Used
dba_hist_sql_plan, v$parameter, dba_segments
Report Categories
Related Reports
DBA AWR SQL Performance Summary, DBA SGA SQL Execution Plan History, DBA SGA+PGA Memory Configuration, DBA AWR Active Session History, DBA AWR Blocking Session Summary, DBA AWR Tablespace Usage, DBA AWR System Metrics Summary, DBA Sessions, Blitz Report Security
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | DBA AWR SQL Execution Plan History 22-Dec-2025 083522.xlsx |
| Blitz Report™ XML Import | DBA_AWR_SQL_Execution_Plan_History.xml |
| SQL Source | DBA AWR SQL Execution Plan History.sql |
| Full Report on Enginatics | www.enginatics.com/reports/dba-awr-sql-execution-plan-history/ |
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.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© Enginatics GmbH