dba:kill_disconnect_session
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
dba:kill_disconnect_session [2015/01/02 19:27] – [Eine gekillete Session in der DB wiederfinden] gpipperr | dba:kill_disconnect_session [2015/01/16 16:23] (aktuell) – [Eine gekillete Session in der DB wiederfinden] gpipperr | ||
---|---|---|---|
Zeile 150: | Zeile 150: | ||
+ | |||
+ | <code sql> | ||
+ | ttitle left " | ||
+ | |||
+ | |||
+ | column process_id format a8 | ||
+ | column inst_id | ||
+ | column username | ||
+ | column osusername | ||
+ | column pname | ||
+ | |||
+ | select --p.inst_id | ||
+ | to_char(p.spid) as process_id | ||
+ | , p.username as osusername | ||
+ | , p.pname | ||
+ | , p.program | ||
+ | from v$process p | ||
+ | where p.program!= ' | ||
+ | and p.addr not in (select gv.paddr from v$session gv) | ||
+ | and p.addr not in (select bg.paddr from v$bgprocess bg) | ||
+ | and p.addr not in (select ss.paddr from v$shared_server ss) | ||
+ | --order by p.inst_id | ||
+ | / | ||
+ | |||
+ | -- new column creator_addr in v$session! | ||
+ | |||
+ | ttitle left "get the prozess of a killed session with the help of the creator_addr" | ||
+ | |||
+ | |||
+ | select --p.inst_id | ||
+ | to_char(p.spid) as process_id | ||
+ | , p.username as osusername | ||
+ | , p.pname | ||
+ | , p.program | ||
+ | from v$process p | ||
+ | where p.addr in (select gv.creator_addr from v$session gv where status in (' | ||
+ | / | ||
+ | |||
+ | ttitle off | ||
+ | </ | ||
+ | |||
+ | |||
+ | === SNIPED Sessions ==== | ||
+ | .. | ||
+ | |||
+ | |||
+ | Sniped - the session has passed the idle_time limit defined in user profile. The session will remain snipped until the client communicates with the db again, when it will get " | ||
+ | |||
+ | ... | ||
+ | |||
+ | When IDLE_TIME is set in the users' profiles or the default profile. This will kill the sessions in the database (status in v$session now becomes SNIPED) and they will eventually disconnect. It does not always clean up the Unix session (LOCAL=NO sessions). At this time all oracle resources are released but the shadow processes remains and OS resources are not released. This shadow process is still counted towards the parameters of init.ora. | ||
+ | This process is killed and entry from v$session is released only when user again tries to do something. Another way of forcing disconnect (if your users come in via SQL*Net) is to put the file sqlnet.ora on every client machine and include the parameter " | ||
+ | |||
+ | ... | ||
+ | |||
+ | see https:// | ||
<note important> | <note important> |
dba/kill_disconnect_session.txt · Zuletzt geändert: 2015/01/16 16:23 von gpipperr