row lock contention 阻塞程式查詢

renjixinchina發表於2013-09-24
--row lock contention 阻塞程式查詢
select *
  from v$session a
 where a.SID in (select BLOCKING_SESSION
                   from v$session m
                  where m.BLOCKING_SESSION is not null)
   and a.BLOCKING_SESSION is null;
   
   批次kill row lock contention阻塞程式
   select ' alter system kill session '||''''||a.SID||','||a.SERIAL#||''''||';'
  from v$session a
 where a.SID in (select BLOCKING_SESSION
                   from v$session m
                  where m.BLOCKING_SESSION is not null)
   and a.BLOCKING_SESSION is null;

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15747463/viewspace-773316/,如需轉載,請註明出處,否則將追究法律責任。

相關文章