meta données pour cette page
  •  

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
oracle:database:sessions [12/12/2025 09:32] mdloracle:database:sessions [12/02/2026 09:01] (Version actuelle) mdl
Ligne 35: Ligne 35:
  
  
-  * sessions en cours Standalone (SQLPLUS)+  * 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 ;
 +</code>
 +
 +  * 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 "unixPID"
 +col spid format a8 heading "unixPID"
 +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,'DD-MON-YY HH24:MI:SS') 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
 +/
 </code> </code>