DBA SGA SQL Execution Plan History
Description:
Execution plan history for a particular SQL id from the SGA
Parameters
SQL Id, Plan Hash Value, SQL Text contains, Module contains, Using Index, Object Name, Options, Objects larger than x GB, Show Object Size
Used tables
gv$sql_plan, v$parameter, dba_segments
Categories
Related reports
DBA AWR SQL Performance Summary
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 SGA SQL Execution Plan History 20-Sep-2021 140214.xlsx
Report SQL
www.enginatics.com/reports/dba-sga-sql-execution-plan-history/
Blitz Report™ import options
DBA_SGA_SQL_Execution_Plan_History.xml
Case Study & Technical Analysis
Abstract
The DBA SGA SQL Execution Plan History report retrieves the actual execution plans for SQL statements currently residing in the library cache (SGA). Unlike the theoretical plan generated by EXPLAIN PLAN, this report shows the plan that the optimizer actually chose and compiled. It enriches this data by joining with segment statistics to display the size of the tables and indexes involved in the query, providing immediate context on the cost of full table scans.
Technical Analysis
Core Features
- Actual vs. Theoretical: Displays the plan from
GV$SQL_PLAN, which represents the compiled bytecode in memory. - Object Sizing: Integrates with
DBA_SEGMENTSto show the physical size (in GB) of every object accessed in the plan. This is crucial for distinguishing between a harmless full scan on a lookup table vs. a disastrous full scan on a 500GB transaction table. - Predicate Information: Shows access and filter predicates, helping to diagnose why an index was or wasn’t used.
Key View
GV$SQL_PLAN: The row-source generation plan stored in the Shared Pool.
Operational Use Cases
- Plan Flipping: Diagnosing why a query suddenly changed performance by comparing its current plan hash value against historical knowledge.
- Index Validation: Verifying if a newly created index is actually being picked up by the application code without needing to bounce the application.
- Cost Analysis: Understanding the optimizer’s estimated cardinality and cost for each step.
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