檢視鎖表程序sql語句1:
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;
檢視鎖表程序sql語句2:
select * from v$session t1, v$locked_object t2 where t1.sid = t2.session_id;
殺掉鎖表程序:
如有記錄則表示有lock,記錄下sid和serial# ,將記錄的id替換下面的738,1429,即可解除lock
alter system kill session '738,1429';
oracle有自己的程序管理策略,很多情況下殺程序往往不能即使生效,可以加alter system kill ... immediately 試試
oracle檢視被鎖的表和解鎖
以下幾個為相關表 select from v lock select from v sqlarea select from v session select from v process select from v locked object select from all objects sele...
oracle檢視被鎖的表和解鎖
以下幾個為相關表 select from v lock select from v sqlarea select from v session select from v process select from v locked object select from all objects sele...
oracle檢視被鎖的表和解鎖
以下幾個為相關表 select from v lock select from v sqlarea select from v session select from v process select from v locked object select from all objects sele...