标签:object object_id oracle 第一步 nbsp sessionid ssi alt mod
第一步:查询处用户,被锁表名,sessionID
select b.owner,b.object_name,l.session_id,l.locked_mode
from v$locked_object l, dba_objects b
where b.object_id=l.object_id
第二部:查询处username,session_id,serial#等
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;
第三步:根据第一步中的表,查看session_id,到第二步中找到,sesseion_id和serial#,然后之下下面的语句,进行kill
alter system kill session ‘1442,24963‘ //其中 1442 代表sesseion_id 24963 代表serial#
标签:object object_id oracle 第一步 nbsp sessionid ssi alt mod
原文地址:https://www.cnblogs.com/sily-boy/p/9390913.html