處理方法一 :
檢查那個表被鎖
select sess.sid,sess.serial#, lo.oracle_username,lo.os_user_name,ao.object_name,lo.locked_mode
from v$locked_object lo,dba_objects ao,v$session sess
where ao.object_id = lo.object_id
and lo.session_id = sess.sid;
解鎖
alter system kill session '273,45';
處理方法二 :
找到你要殺掉的那個SESSION, 並記下paddr
SELECT sid, username, paddr, status FROM v$session WHERE username = 'JCUSER' and sid=上面查出來的sid;
找到這個SESSION所對應的spid
SELECT ADDR,PID,SPID,USERNAME,SERIAL#,TERMINAL FROM v$process WHERE addr = '上面的PADDR';
殺掉spid所標識的那個進程