處理方法一 :
檢查哪個表被鎖
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 '***,yyy';
注:'***,yyy'是上面檢索得到的sess.sid,sess.serial#
處理方法二 :
找到你要殺掉的那個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所標識的那個程序
orakill sid spid
oracle 檢查被鎖的表及解鎖
處理方法一 檢查那個表被鎖 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 se...
Oracle解鎖表被鎖
1.下面的語句用來查詢哪些物件被鎖 select object name,machine,s.sid,s.serial from v locked object l,dba objects o v session s where l.object id o.object id and l.sessi...
Oracle表被鎖,解鎖方法
1.下面的語句用來查詢哪些物件被鎖 select object name,machine,s.sid,s.serial from v locked object l,dba objects o v session s where l.object id o.object id and l.sessi...