日期:2014-05-16  浏览次数:20419 次

oracle查看死锁的会话

---- 查死锁的会话操作

select object_name, machine, s.sid, s.serial#
? from v$locked_object l, dba_objects o, v$session s
?where l.object_id = o.object_id
?? and l.session_id = s.sid;

?

?

----杀掉死锁会话?

?

alter system kill session 'sid,serial#';

?

---?alter system kill session '837,53319';

?

?

?

?

?

---------------------