HOW TO IDENTIFY BLOCKED AND BLOCKING SESSIONS IN ORACLE DATABASE
Queries, Sessions
A query to identify blocked and blocking sessions in an Oracle Database.
DEMO
DEMO: HOW TO IDENTIFY BLOCKED AND BLOCKING SESSIONS IN ORACLE DATABASE?
RELATED
DEMO: ORA-00060: DEADLOCK DETECTED WHILE WAITING FOR RESOURCE
HOW TO FIND ALL SESSIONS HOLDING A TABLE LOCK
QUERY
The DBT_BLOCKERS view displays the blocking session for each blocked session. Each row represents a blocking and a blocked session pair.
EXAMPLE
BLOCKING BLOCKED SECONDS_IN_WAIT MINUTES_IN_WAIT ON_OBJECT ROWID_FOR_LOCKED_ROW LOCKED_SQLID
-------------------- -------------------- --------------- --------------- --------------- -------------------- ---------------
17,1816(DEMO) 55,35751(DEMO) 4903 82 DEMO.B_ROW AAASfmAAHAAAAFuAAA 5zprqh5ydng78
Written At
31 OCT 202112:40
OEL Release
7.9 x64
Database Release
19.12.0.0.0
Share
- Accounts
- Auditing
- AWR
- Bash Scripts
- Datapump
- Default Category
- Demos
- Directory Objects
- Environment Variables
- Initialization Parameters
- Iptables
- Java Program
- Memory Usage
- Metadata API
- Networker
- NLS Settings
- Optimizer Statistics
- ORA-00942
- ORA-01031
- ORA-01720
- ORA-28001
- ORA-31671
- Oracle Database
- Oracle Enterprise Manager
- Performance Tunning
- Postfix
- Privilegies
- Processes
- Queries
- Red Hat Enterprise Linux
- Redo Logs
- Session Tracing
- Sessions
- SQL Trace
- SQLPlus
- Statspack
- Tablespaces
- UTL_FILE
- UTL_FILE_DIR
- Wait Events
- Yum