Oracle查看被锁的表和解锁
查看被锁的表
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 ;
查看那个用户那个进程照成死锁,锁的级别
select
b.owner,b.object_name,l.session_id,l.locked_mode from v$locked_object l,
dba_objects b where b.object_id=l.object_id;
查看连接的进程
SELECT sid, serial#, username, osuser FROM v$session;
杀掉进程
alter system kill session ‘sid,serial#‘;
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。