Tools - ORADEBUG
ORADEBUG Introduction:
http://www.juliandyke.com/Diagnostics/Tools/ORADEBUG/Introduction.html
SQL> select a.username,a.sid ,a.serial#,b.spid
from v$session a,v$process b
where a.paddr=b.addr 2 3
4 /
USERNAME SID SERIAL# SPID
------------------------------ ---------- ---------- ------------
170 1 7886
168 1 7888
169 1 7890
167 1 7892
166 1 7894
165 1 7896
164 1 7898
163 1 7900
162 1 7902
161 1 7904
160 1 7906
USERNAME SID SERIAL# SPID
------------------------------ ---------- ---------- ------------
SYS 159 3 7912
154 1 7927
151 1 7929
149 1 7931
SCOTT 146 56 18638
SYS 156 102 18493
143 42 20402
SYSTEM 144 5 18791
19 rows selected.
SQL> select pid,spid,username from v$process where spid=18638;
PID SPID USERNAME
---------- ------------ ---------------
19 18638 oracle
SQL> oradebug setospid 18638
Oracle pid: 19, Unix process pid: 18638, image: oracle@localhost.localdomain (TNS V1-V3)
SQL>