Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: How to Determine Oracle Session ID given UNIX PID?
Sam,
Try this out:
undef os_pid
select S.Username "User", P.Spid "OS ProcessID", S.Sid "Session ID", S.Serial# "Serial#"
from V$SESSION S, V$PROCESS P
where S.PADDR = P.ADDR
and P.SPID = &os_pid
/
Cheers,
Gaja
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Gaja Krishna Vaidyanatha INET: oraperfman_at_yahoo.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:57:17 CST