check and kill active sessions in Oracle

first, find out all active sessions for a user

SELECT DISTINCT sid, serial#, status, username FROM v$session;

 

To kill a session, run:

ALTER SYSTEM KILL SESSION ‘<sid>, <serial#>’;