由于各种原因非正常中断与Oracle数据库的连接,导致数据库锁表。
查询锁定记录:
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#';
由于各种原因非正常中断与Oracle数据库的连接,导致数据库锁表。
查询锁定记录:
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#';