Oracle SQL - Kill Sessions
Check the status to confirm
SELECT sid, serial#, status, username FROM v$session;
You can also use the
IMMEDIATE
clause:
ALTER SYSTEM KILL SESSION 'sid,serial#' IMMEDIATE;
Update If you want to kill all the sessions, you could just prepare a small script:
SELECT 'ALTER SYSTEM KILL SESSION '''||sid||','||serial#||''' IMMEDIATE;' FROM v$session;
Last updated