ORACLE 查看锁

SELECT object_name, machine, s.sid, s.serial# 
FROM gv$locked_object l, dba_objects o, gv$session s 
WHERE l.object_id = o.object_id 
AND l.session_id = s.sid;

 杀掉死锁:

alter system kill session '1231,61477';

 

posted @ 2015-08-25 09:35  流失的痕迹  阅读(305)  评论(0编辑  收藏  举报