Ruth Gramolini wrote:
>
> Good morning,
>
> Can anyone send my the sql to find the system process being used by an
> oracle session. I know this has been out here before, but I can't find it
> in my saved stuff.
>
> Thanks in advance,
> Ruth
>
Ruth,
It depends on whether you want the client process (eg the sqlplus
process) or the shadow process identifier.
You find the first one as column PROCESS in V$SESSION, and identify the
row either by the SID (session identifier) or by saying AUDSID =
SYS_CONTEXT('USERENV', 'SESSIONID') to identify the currently running
session.
The second one is column SPID in V$PROCESS, and you can join V$SESSION
to V$PROCESS by saying V$SESSION.PADDR = V$PROCESS.ADDR.
--
HTH,
Stephane Faroult
Oriole Software
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Stephane Faroult
INET: [EMAIL PROTECTED]
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: [EMAIL PROTECTED] (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).