首页 >数据库 >mysql教程 >Oracle数据库查找被锁以及解锁的解决办法

Oracle数据库查找被锁以及解锁的解决办法

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-07 16:19:201193浏览

oracle查找被锁以及解锁 SELECT s.sid||','||s.SERIAL#, s.serial#, s.username, s.schemaname, s.osuser, s.process, s.machine, s.terminal, s.logon_time, l.type FROM v$session s, v$lock l where ((s.sid = l.sid AND s.username IS NOT NULL)) and (t

   oracle查找被锁以及解锁

  SELECT s.sid||','||s.SERIAL#, s.serial#, s.username, s.schemaname, s.osuser, s.process, s.machine,

  s.terminal, s.logon_time, l.type

  FROM v$session s, v$lock l

  where ((s.sid = l.sid

  AND s.username IS NOT NULL))

  and

  (terminal = 'CHINA-C742905EE')

  alter system kill session '383,32773';

  第一条sql是找出被锁,,第二条解锁

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn