查看表被锁的SQL

2017-09-13 20:37:51来源:CSDN作者:wrh_csdn人点击

分享
SELECT object_name, machine, s.sid, s.serial# 
FROM gv$locked_object l, dba_objects o, gv$session s 
WHERE l.object_id = o.object_id 
AND l.session_id = s.sid; 


select p.spid,a.serial#,c.object_name,b.session_id,b.oracle_username,b.os_user_name 
from v$process p,v$session a, v$locked_object b,all_objects c 
where p.addr=a.paddr and a.process=b.process and c.object_id=b.object_id ; 

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台