如何追查oracle锁表 locked
发布网友
发布时间:2022-04-25 19:42
我来回答
共1个回答
热心网友
时间:2022-05-03 01:25
查看被锁的表
select b.owner,b.object_name,a.session_id,a.locked_mode from v$locked_object a,dba_objects b where b.object_id = a.object_id;
--查看那个用户那个进程照成死锁
select b.username,b.sid,b.serial#,logon_time from v$locked_object a,v$session b where a.session_id = b.sid order by b.logon_time;