Title: RE: How to Determine Oracle Session ID given UNIX PID?

http://www.orafaq.com/faqscrpt.htm

entered "unix session oracle" and clicked "Search"

found this:

http://www.orafaq.net/archive/oracle-l/2002/03/06/223435.htm

<<... Anyway from the subject line I
assume (OH, that word again) that you have a Unix process id that you want to
trace back to the session id.  To do so,
    select sid from v$session, v$process
      where paddr = addr
      and spid = 'Unix Process ID';
Dick Goulet>>

-----Original Message-----
From: Sam Bootsma [mailto:[EMAIL PROTECTED]]

Oracle 7.3.4 running on AIX 4.3.3

The ps command on our AIX box shows a UNIX process taking 50% of the CPU.  The PID is 89510.  When I try to find the corresponding session on the Oracle database it returns no rows.  Is there a way I can map the given PID on UNIX to a session id on Oracle?  See below for the query I ran.

SQL> l
  1  select sid from v$session
  2* where process like '%89510%'
SQL> /

no rows selected

Reply via email to