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;

14 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)

  2. Everyone loves what you guys tend to be up too. This kind of clever work and
    exposure! Keep up the amazing works guys I’ve incorporated you guys to our blogroll.

    My web page; vpn

Leave a Reply

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