1、执行如下语句判断出哪些表被锁住了执行语句,查询
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;
得到sid值
2、执行如下语句将获取的sid值填入,执行
SELECT sid, serial#, username, osuser FROM v$session where sid = 4719;
3、通过如下语句可以杀死锁住了表的会话
例如:
ALTER SYSTEM KILL SESSION 'SID,SERIAL';
ALTER SYSTEM KILL SESSION '4719,15049';
THE END
暂无评论内容