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

select51Testing软件测试网pShe_Xnm'}
    (select username from v$session where sid=a.sid) blocker,
Kq2UM H7]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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值