Find blocking sessions in oracle

To find the blocking sessions in 10G “v$session.blocking_session” column is used to find the blocking session.

Oracle 11G made the life more easier , in 11G there is a view “v$session_blockers” by using which we can find the blocking sessions in the database.

SQL> select SID,WAIT_EVENT,WAIT_EVENT_TEXT,BLOCKER_SID from v$session_blockers;

       SID WAIT_EVENT WAIT_EVENT_TEXT                                                  BLOCKER_SID
———- ———- —————————————————————- ———–
        69        237 enq: TX – row lock contention                                             33

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s