如何查看系统存在的死锁会话

select51Testing软件测试网pShe_Xnm'}
    (select username from v$session where sid=a.sid) blocker,
Kq2UMH7]0     a.sid, 'is blocking',51Testing软件测试网8/ZiPLd
    (select username from v$session where sid=b.sid) blockee,51Testing软件测试网&x+FW@%s(Q
    b.sid
8F8]eI1~#G0     from v$lock a,v$lock b51Testing软件测试网p M|-C'sM(u
    where a.block=1 and b.request>051Testing软件测试网%I|6W p0ye
    and a.id1=b.id151Testing软件测试网+Tu(Z]LN+I)b n
    and a.id2=b.id251Testing软件测试网]BHr:?Zh~
51Testing软件测试网{-m#bR G3^6i
查询哪些session阻塞了哪些其他进程.51Testing软件测试网in9q1e;JEp
51Testing软件测试网x�[Hk.jHQN�ZF
alter system kill session 'sid,serial#';
;R)r/M9K"I _F/0 51Testing软件测试网 ~e;I|+h5Q/�G
杀掉session51Testing软件测试网r^ fV-F6pM 51Testing软件测试网&c

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章