meta données pour cette page
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| oracle:database:sessions [12/12/2025 09:32] – mdl | oracle:database:sessions [12/02/2026 09:01] (Version actuelle) – mdl | ||
|---|---|---|---|
| Ligne 35: | Ligne 35: | ||
| - | * sessions en cours Standalone | + | * sessions en cours RAC (SQLPLUS) |
| <code PLSQL> | <code PLSQL> | ||
| SET lines 500 | SET lines 500 | ||
| Ligne 143: | Ligne 143: | ||
| l1.id1 = l2.id1 AND | l1.id1 = l2.id1 AND | ||
| l2.id2 = l2.id2 ; | l2.id2 = l2.id2 ; | ||
| + | </ | ||
| + | |||
| + | * récupérer la transaction avec un PID determine | ||
| + | <code PLSQL> | ||
| + | col sid format 9999 | ||
| + | col pid format 9999 | ||
| + | col serial# format 99999 | ||
| + | col process format a8 heading " | ||
| + | col spid format a8 heading " | ||
| + | col username format a9 | ||
| + | col addr format a11 | ||
| + | col program format a20 trunc | ||
| + | col logon_time format a18 | ||
| + | col osuser format a8 heading unixUsr | ||
| + | col p_user format a9 heading unixUsr | ||
| + | col terminal format a7 heading unixtrm | ||
| + | col command format 99 heading Cd | ||
| + | col machine format a7 | ||
| + | col action format a7 | ||
| + | col module format a10 | ||
| + | set pagesize 24 | ||
| + | prompt "Enter the Oracle Session ID (SID) user in question" | ||
| + | select p.PID, | ||
| + | p.SERIAL#, | ||
| + | p.USERNAME p_user, | ||
| + | p.SPID, | ||
| + | to_char(s.logon_time,' | ||
| + | s.program, | ||
| + | s.command, | ||
| + | s.sid, | ||
| + | s.serial#, | ||
| + | s.username, | ||
| + | s.process, | ||
| + | s.machine, | ||
| + | s.action, | ||
| + | s.module, | ||
| + | s.osuser, | ||
| + | s.terminal | ||
| + | from v$process p, | ||
| + | v$session s | ||
| + | where s.sid = &sid | ||
| + | and p.addr = s.paddr | ||
| + | order by s.logon_time | ||
| + | / | ||
| </ | </ | ||