Query to check blocking sessions in Oracle database

 Query to check blocking sessions in Oracle database from v$lock:

SELECT DECODE(request,0,’Holder: ‘,’Waiter: ‘) || sid sess,
  id1,
  id2,
  lmode,
  request,
  type
FROM v$lock
WHERE (id1, id2, type) IN
  (SELECT id1, id2, type FROM v$lock WHERE request > 0
  )
ORDER BY id1,
  request;

5 thoughts on “Query to check blocking sessions in Oracle database”

  1. What’s up, just wanted to mention, I liked this post.

    It was inspiring. Keep on posting!

    My web site: nordvpn Coupons inspiresensation (t.co)

Leave a Reply

Your email address will not be published. Required fields are marked *