oracle 解锁 unlock

来源:互联网 发布:excel表格数据无法求和 编辑:程序博客网 时间:2024/05/17 01:35

select  s.username, 
  decode(l.type,'TM','TABLE  LOCK', 
                              'TX','ROW  LOCK', 
                              NULL)  LOCK_LEVEL, 
  o.owner,o.object_name,o.object_type, 
  s.sid,s.serial#,s.terminal,s.machine,s.program,s.osuser 
  from  v$session  s,v$lock  l,dba_objects  o 
  where  s.sid=l.sid 
  and  o.object_id=l.id1 
  and  s.username  is  not  null


alter system kill session 'sid,serial#'

原创粉丝点击