kill oracle session without gui [ 768 views ]
Goal: a simple way to kill a session in Oracle
If we know the SID of the session to be killed, then use the following select to create the immediate command:
select 'alter system kill session '''|| s.sid|| ','|| s.serial#|| ''' immediate;' from v$session s where sid in (...)