Warning: count(): Parameter must be an array or an object that implements Countable in /membri/oraclefaq/qa-include/app/format.php on line 384
ORA-00026: ID sessione mancante o non valido - Oracle FAQ - Il forum italiano su oracle
0 voti
1.3k visite
quesito posto in SQL e PLSQL da (2.4k punti)

Causa: Si sta cercando di killare una sessione non esistente tramite il comando:

ALTER SYSTE KILL SESSION

Azione: Utilizzare un id sessione valido. 

E' 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';
 
Sostituire USERNAME con l'utente di cui si vogliono killare le sessioni.

 

 

ORA-00026: missing or invalid session ID
 
Cause: Missing or invalid session ID string for ALTER SYSTEM KILL SESSION.
 
Action: Retry with a valid session ID.

Fai il log in oppure registrati per rispondere al quesito.

Domande correlate


Warning: count(): Parameter must be an array or an object that implements Countable in /membri/oraclefaq/qa-include/app/format.php on line 384

Warning: count(): Parameter must be an array or an object that implements Countable in /membri/oraclefaq/qa-include/app/format.php on line 384

Warning: count(): Parameter must be an array or an object that implements Countable in /membri/oraclefaq/qa-include/app/format.php on line 384

Warning: count(): Parameter must be an array or an object that implements Countable in /membri/oraclefaq/qa-include/app/format.php on line 384

Warning: count(): Parameter must be an array or an object that implements Countable in /membri/oraclefaq/qa-include/app/format.php on line 384
0 voti
0 risposte 317 visite
quesito posto 22 Febbraio 2014 in SQL e PLSQL da carlo10 (2.4k punti)
0 voti
0 risposte 506 visite
quesito posto 23 Febbraio 2014 in SQL e PLSQL da carlo10 (2.4k punti)
0 voti
0 risposte 114 visite
0 voti
0 risposte 251 visite
0 voti
0 risposte 9.9k visite
...