-- 查询死锁
select b.username,b.sid,b.serial#,logon_time
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time;
-- kill死锁进程,假设进程号为1493,4487
alter system kill session '1493,4887';
-- 查询死锁
select b.username,b.sid,b.serial#,logon_time
from v$locked_object a,v$session b
where a.session_id = b.sid order by b.logon_time;
-- kill死锁进程,假设进程号为1493,4487
alter system kill session '1493,4887';
本文标题:2021-07-12 oracle查看死锁
本文链接:https://www.haomeiwen.com/subject/ykarpltx.html
网友评论