SELECT s.client_info client,s.username,s.osuser,s.PROGRAM,p.pid,p.spid,
s.sid,s.serial#, to_char(S.LOGON_TIME,'MONDD HH24:MI') "LOGON TIME"
 from v$session s, v$process p
where s.status='ACTIVE' and s.type != 'BACKGROUND'
and p.addr=s.paddr
/

Joan

Abul Fazal wrote:
> 
> Hello List,
> Just a stupid Question.
> I would like to know the Number of Active Users from a
> Query inside the Database. Plus is it possible to know
> the number of allowed licence for the Oracle
> 
> Thanks for U'r Time & Interest.
> 
> Fazal
> 
> =====
> Abul Fazal
> Production Support Services - Quantum Leap
> Standard Charted Bank
> Singapore
> HP : 65-94887900
> 
> __________________________________________________
> Do You Yahoo!?
> Try FREE Yahoo! Mail - the world's greatest free email!
> http://mail.yahoo.com/
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Abul Fazal
>   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: Joan Hsieh
  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