Causa: La sessione utente non esiste più, probabilmente a causa di una disconnessione.
Azione: Utilizzare un session ID valido, ad esempio è possibile costruire dinamicamente lo statement per killare una sessione tramite la seguente query:
SELECT s.*,
p.spid,
s.username,
s.program,
'ALTER SYSTEM KILL SESSION ''' || s.sid || ',' || s.serial# || ''' IMMEDIATE;' as session_id
FROM gv$session s
JOIN gv$process p ON p.addr = s.paddr AND p.inst_id = s.inst_id
WHERE s.type != 'BACKGROUND'
AND s.username = 'USERNAME';
ORA-00030: User session ID does not exist.
Cause: The user session ID no longer exists, probably because the session was
logged out.
Action: Use a valid session ID.