1、查詢出那個會話(session)、埠(port)被鎖,用如下語法
SELECT sid, serial#, username, osuser FROM v$session WHERE sid in (SELECT session_id FROM v$locked_object);
2、殺死這個sesion
ALTER SYSTEM KILL SESSION '2880,36194';
1、查詢出那個會話(session)、埠(port)被鎖,用如下語法
SELECT sid, serial#, username, osuser FROM v$session WHERE sid in (SELECT session_id FROM v$locked_object);
2、殺死這個sesion
ALTER SYSTEM KILL SESSION '2880,36194';