一、查询锁定记录
SELECT s.sid, s.serial# FROM v$locked_object lo, dba_objects ao, v$session s WHERE ao.object_id = lo.object_id AND lo.session_id = s.sid;
二、然后删除锁定记录
ALTER system KILL session 'SID,serial#'; --示例 ALTER system KILL session '45,278';
一、查询锁定记录
SELECT s.sid, s.serial# FROM v$locked_object lo, dba_objects ao, v$session s WHERE ao.object_id = lo.object_id AND lo.session_id = s.sid;
二、然后删除锁定记录
ALTER system KILL session 'SID,serial#'; --示例 ALTER system KILL session '45,278';