日期:2014-05-16 浏览次数:20442 次
alter system kill session 'sid,#se'但是,执行这个动作之前得先查出sid,执行的SQL为:
select distinct t4.SPID,t2.username,t2.sid,t2.serial#,t2.logon_time,t3.sql_text,'alter system kill session '''||t2.sid||','||t2.serial#||''''||';' from v$locked_object t1,v$session t2,v$sqlarea t3,v$process t4 where t1.session_id=t2.sid and t2.sql_address=t3.address and t4.addr=t2.paddr order by t2.logon_time;