Skip to the content.

DBA Undo Statistics – 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

Undo generation, longest running query and undo errors per 10-minute interval from gv$undostat, which keeps about four days of history.

All sizes are shown in MB, Undo Per Second in MB per second.

ORA-01555 snapshot too old occurs when a query needs undo that has already been overwritten. Compare the Longest Query Seconds with the Tuned Undo Retention Seconds: unexpired steal attempts and blocks show undo that was overwritten before its retention expired because the undo tablespace was too small.

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

Errors only, Hours Back, Instance Id

Oracle EBS Tables Used

gv$tablespace, dba_tablespaces, gv$parameter, gv$undostat

Report Categories

Enginatics

DBA Sessions, Blitz Report Web Service Sessions, DBA SGA+PGA Memory Configuration, DBA SGA Active Session History, DBA SGA Blocking Session Summary, DBA AWR Blocking Session Summary, DBA AWR Active Session History, DBA AWR System Metrics Summary, DBA AWR SQL Performance Summary

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 Undo Statistics 12-Oct-2026 061638.xlsx
Blitz Report™ XML Import DBA_Undo_Statistics.xml
SQL Source DBA Undo Statistics.sql
Full Report on Enginatics www.enginatics.com/reports/dba-undo-statistics/

Case Study & Technical Analysis: DBA Undo Statistics

Executive Summary

This report shows undo generation, the longest running query and undo-related errors for each 10-minute interval, taken from the instance undo statistics view. Database administrators use it to diagnose ORA-01555 “snapshot too old” errors and to decide whether the undo tablespace is large enough for the workload. Because the source view keeps about four days of history, the report is a retrospective review tool. It runs in Excel through Blitz Report™, with the Hours Back parameter limiting the window examined.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. Each GV$UNDOSTAT row is linked to its undo tablespace through the instance identifier and the undo tablespace number.
  2. The block size is found by matching that tablespace name to DBA_TABLESPACES.
  3. The UNDO_RETENTION parameter is matched on the same instance identifier.
  4. Undo volumes are calculated as blocks multiplied by block size, and divided by the interval length in seconds to give undo per second.
  5. Error and steal counters are passed through a zero-to-null function, so that intervals without events show blank rather than zero.
  6. The result is ordered by begin time, most recent first, and then by instance.

Parameters & Filtering

Performance & Optimization

FAQ

Q: What causes an ORA-01555 snapshot too old error? A: The error occurs when a query needs undo that has already been overwritten, and the Longest Query Seconds column can be compared with the Tuned Undo Retention Seconds to see whether that is the case.

Q: What do unexpired steal attempts show? A: Unexpired steal attempts show that undo still within its retention period was overwritten, which indicates the undo tablespace is too small for the workload.

Q: How far back does the report go? A: The source view keeps about four days of history, so the Hours Back parameter can look back no further than that.


© Enginatics GmbH