-- 查询被锁对象数目 select count(1) from v$locked_object; -- 查询被锁对象 select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id=a.object_id; -- 查询被锁对象的连接 select t2.username,t2.sid,t2.serial,t2.logon_time from v$locked_object t1,v$session t2 where t1.session_id=t2.sid order by t2.logon_time; -- 关闭被锁对象连接 alter system kill session '111,2222';
标签:locked,--,锁表,解锁,object,t2,session,Oracle,id From: https://www.cnblogs.com/heroljy/p/16884656.html