--查看被锁的表 
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 ; 

--查看那个用户那个进程照成死锁,锁www.2cto.com的级别
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 where username='TEST2'; 

--杀掉进程 
alter   system     kill   session   'sid,serial#'; 

 

相关文章:

  • 2022-02-16
  • 2022-12-23
  • 2021-12-10
  • 2021-10-15
  • 2021-11-29
  • 2021-11-29
  • 2021-11-29
猜你喜欢
  • 2022-12-23
  • 2021-12-27
  • 2021-10-28
  • 2021-06-12
  • 2022-03-05
  • 2021-10-05
相关资源
相似解决方案