1、找到sid,serial#;

SELECT /*+ rule */ s.username, l.type,

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,s.status

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 order by l.type;

2、根据找到的sid,serial#,执行以下语句,清除进程。

alter system kill session '~sid~,~serial#~';

例如: alter system kill session '14,4820';

05-24 05:58