Search notes:

oradebug setospid

oradebug setospid 35020
The OS-PID value to be used in oradebug setospid is found in v$process, column SPID (or SOSID?). If a session ID (SID) is known, this value can be found like so:
select
   prc.spid
from
   v$session     ses                                                   join
   v$process     prc on ses.paddr           = prc.addr
where
   ses.sid = sys_context('userenv', 'sid');

See also

oradebug setorapid
oradebug setmypid
oradebug

Index