Oracle Database / Sessions, Locks & Transactions
Map transaction locks to Oracle objects
An object-level view helps identify which tables are involved in current transactions. It does not by itself show a complete row-level blocking chain.
Environment and inputs: Oracle Database 19c baseline · SQL*Plus-compatible SQL unless RMAN, DGMGRL, ADRCI or a host shell is specified. Check release, patch level, edition and container first.
Start with this diagnostic
Run each example in the tool named in the guide: SQL, RMAN, DGMGRL or the host command shell. Replace example names with approved values. To query DBA and V$ views, use authorized catalog access in the correct database container. Do not add broad permissions just to run an example.
SELECT l.session_id, o.owner, o.object_name, o.object_type, l.locked_mode FROM v$locked_object l JOIN dba_objects o ON l.object_id = o.object_id;
What the results mean
The rows show transactional object locks and modes. Several sessions can hold compatible locks on the same object without blocking one another.
Fix the cause and check again
Combine the object list with session wait and transaction evidence. Identify the conflicting business operations and reduce unnecessarily long transactions.
Before you make a change
Do not terminate every session returned by this query. In a CDB, query the intended container and interpret object IDs in that context.