This probably gives you more than you asked for, but it works.

select substr(s.sid,1,6) SID,
       s.serial#,
       p.spid OSPROCESS,
       substr(p.program,1,25) OSPROG,
       substr(s.osuser,1,20) OSUSER,
       status,substr(s.schemaname,1,20) SCHEMANAME,
       substr(s.machine,1,15) MACHINE,
       s.terminal,
       s.program
from   v$session s,
       v$process p
where  s.paddr = p.addr
order by s.terminal, s.schemaname, s.osuser;

On Friday 22 November 2002 08:53, 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

-- 
Rodd Holman
Enterprise Data Systems Engineer
LodgeNet Entertainment Corporation
[EMAIL PROTECTED]

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rodd Holman
  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).

Reply via email to