如何查看系統存在的死鎖會話

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

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