1.查询
SELECT /*+ rule */
s.username,
decode(l.type, 'TM', 'TABLE LOCK', 'TX', 'ROW LOCK', l.type) 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
2.解锁(
根据需要kill 550为的sid 3761为对应的serial#)
alter system kill session '550,3761';
commit;
posted on 2010-12-16 14:02
孤飞燕 阅读(233)
评论(0) 编辑 收藏 所属分类:
数据库