DBA Blocking Sessions
Description:
Chain of currently blocking and blocked database sessions from v$wait_chains
Parameters
Used tables
dba_objects, v$wait_chains, gv$session, gv$process, gv$sqlarea
Categories
Related reports
DBA SGA Active Session History, DBA SGA Blocking Session 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 Blocking Sessions 06-May-2020 103312.xlsx
Report SQL
www.enginatics.com/reports/dba-blocking-sessions/
Blitz Report™ import options
DBA Blocking Sessions - Case Study
Executive Summary
The DBA Blocking Sessions report is a critical diagnostic tool for Oracle E-Business Suite Database Administrators (DBAs). It provides real-time visibility into database lock contention, identifying sessions that are blocking others and causing performance degradation. By visualizing the chain of blocking and blocked sessions, DBAs can quickly pinpoint the root cause of system slowness or “hanging” processes and take immediate corrective action.
Business Challenge
In a high-concurrency environment like Oracle EBS, database locking is a normal mechanism to ensure data integrity. However, when a session holds a lock for an extended period (due to a long-running transaction, uncommitted changes, or a “zombie” process), it can prevent other users from accessing the same data. This leads to:
- System Slowness: Users experience delays or unresponsive screens.
- Operational Stalls: Critical business processes (e.g., order entry, month-end close) may be halted.
- User Frustration: Lack of visibility into why the system is slow leads to increased helpdesk tickets.
Identifying the specific session holding the lock—and the SQL statement it is executing—is often like finding a needle in a haystack without the right tools.
Solution
The DBA Blocking Sessions report solves this challenge by querying Oracle’s v$wait_chains and related dynamic performance views. It presents a hierarchical view of the blocking chain, showing exactly which session is at the top of the chain (the “blocker”) and which sessions are waiting (the “blockees”).
Key Features:
- Hierarchical View: Displays the relationship between blocking and waiting sessions.
- Real-Time Analysis: Provides a snapshot of current lock contention.
- Detailed Diagnostics: Includes session IDs, user names, machine names, SQL text, and wait events.
- Actionable Intelligence: Enables DBAs to decide whether to contact the user, kill the session, or optimize the underlying SQL.
Technical Architecture
The report leverages Oracle’s Active Session History (ASH) and wait interface architecture.
Primary Tables/Views:
v$wait_chains: The core view for identifying blocking relationships in RAC and non-RAC environments.gv$session: Provides details about the active sessions (User, Module, Machine, Status).gv$process: Links sessions to operating system processes.gv$sqlarea: Retrieves the SQL text currently being executed by the sessions.dba_objects: Identifies the database object (table, index) involved in the lock.
Logic:
The query joins v$wait_chains with session and SQL information to construct a readable output. It filters for sessions that are currently in a wait state due to another session.
Frequently Asked Questions
Q: What is the difference between a “blocking” session and a “blocked” session? A: A blocking session holds a lock on a resource (like a row in a table). A blocked session is trying to acquire a lock on the same resource but must wait until the blocking session releases it (usually by committing or rolling back).
Q: Does this report show historical blocking sessions? A: No, this report shows current blocking sessions. For historical analysis, you would typically use AWR (Automatic Workload Repository) or ASH (Active Session History) reports.
Q: What should I do if I find a blocking session? A: First, analyze the “blocker.” Is it a valid long-running job? If so, you may need to wait. Is it a user who left their screen open with uncommitted changes? You might contact them. Is it a “stuck” process? You might need to kill the session.
Q: Can this report handle RAC (Real Application Clusters) environments?
A: Yes, the use of gv$ (Global) views and v$wait_chains ensures that blocking chains across different RAC nodes are detected.
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