日期:2014-05-17 浏览次数:20746 次
declare id int ; idname int ; begin cursor a is select sid,serial# from v$session ; open a ; loop fetch a into id,idname ; alter system kill session id,idname; Exit When a%NOTFOUND; end loop ; end ;