Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to Determine Oracle Session ID given UNIX PID?

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

From: Jacques Kilchoer <Jacques.Kilchoer_at_quest.com>
Date: Fri, 04 Apr 2003 15:43:46 -0800
Message-ID: <F001.0057B1AB.20030404154346@fatcity.com>


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-----

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

--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Jacques Kilchoer
  INET: Jacques.Kilchoer_at_quest.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Apr 04 2003 - 17:43:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US