WINDOWS下杀死某个ORACLE线程
在WINDOWS条件下使用ALTER SYSTEM KILL SESSION的方式往往不能快速使会话清理掉,使用传说中的TOPSHOW工具也提示KILL FAILED,查下下发现个好方法:orakill工具
C:\Documents and Settings\zhaolj>orakill
Usage: orakill sid thread
where sid = the Oracle instance to target
thread = the thread id of the thread to kill
The thread id should be retrieved from the spid column of a query such as:
select spid, osuser, s.program from
v$process p, v$session s where p.addr=s.paddr
其中thread对应v$process中的SPID,经验证,该方法能快速结束问题会话