Hi.

I'm going to assume that you're running on NT and have OEM available.

Try this:

connect with DBA Studio
expand the tree under Instance >> Sessions

start sqlplus and run this

set long 1000
set pagesize 999

select sql_text
  from v$sqlarea
 where sql_text like '%/* OracleOEM */%'
/

you'll see the query used by Oracle OEM.

/* OracleOEM */ 
select decode(sum(decode(s.serial#,l.serial#,1,0)),0,'No','Yes')  " ",
       s.sid "Session ID",s.status "Status", s.username "Username",
RTRIM(s.osuser) "OS User",
       b.spid "OS Process ID",s.machine "Machine Name", s.program 
"Program"
  from v$session s, v$session_longops l,v$process b 
 where (s.sid = l.sid(+)) and s.paddr=b.addr
 group by s.sid,s.status,s.username,s.osuser,s.machine,s.program
,b.spid, b.pid order by s.sid

all the info, and none of the Java.

why write what you can borrow?

have fun.

Paul

[EMAIL PROTECTED] wrote:
> 
> Hi guys,
> 
> It is possible to list all user that currently connected to my Oracle8i ?
> and what is the command or script or source of information ?
> 
> Thank you,
> 
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
>   INET: [EMAIL PROTECTED]
> 
> Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
> San Diego, California        -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> 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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Paul Drake
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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