Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: List of user sessions

Re: List of user sessions

From: Tim Sawmiller <sawmillert_at_state.mi.us>
Date: Mon, 23 Apr 2001 04:56:46 -0700
Message-ID: <F001.002EEF95.20010423042528@fatcity.com>

Use this script:

rem Display Active User Sessions on the Data Base rem
column username format a11
column the_command format a22
column serial# heading 'SER#'
column serial# format 999999
column process heading "Unix Process"
select username, sid, serial#, process, command || '-' || ACT.name the_command

       ,to_char(logon_time,'mm/dd/yy hh24:mi') "Logged On @:"
       from v$session SES
           ,audit_actions ACT
       where command = ACT.action

    order by username;

>>> oraquest_at_123india.com 04/23/01 07:45AM >>>
Hi,

i want to know that how will i get to know how many users (along with their identities) who are logged in at any one particular moment of time.

mainak



123India.com - India's Premier Portal
Get your Free Email Account at http://www.123india.com
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com 
-- 
Author: 
  INET: oraquest_at_123india.com 

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: 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).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Tim Sawmiller
  INET: sawmillert_at_state.mi.us

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: 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 Mon Apr 23 2001 - 06:56:46 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US