观自在菩萨,行深般若波罗蜜多时,照见五蕴皆空,渡一切苦厄。
分类: Oracle
2014-12-06 11:53:35
原文地址:Oracle 表解锁 作者:jonelaw
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 l.sid = s.sid
and l.id1 = o.object_id(+)
and s.username is not null;
--kill session语句
alter system kill session'sid,serial#';