I agree with Stephane. You can easily just audit user connections. You can
see how many distinct usernames appear over a given time period to help
determine who is actually logging in (or trying to). To see who is still
connected search where logoff_time is NULL.

To audit connections use AUDIT SESSION. This audits all new connections from
that point forward. Use DBA_AUDIT_SESSION to view the audit trail (not sure
if this will work if you send the audit trail to the OS). Finally, I would
definitely formulate a plan to remove entries from the database audit trail,
sys.aud$. Monitor it's growth daily to help determine how long you want to
keep records. At that point either copy to another table and then delete
entries older than a certain date or something.

You can answers many questions with this turned on.

P.S. Make sure the instance init parameter AUDIT_TRAIL parameter is set
appropriately and the instance needs to be rebooted for this to take affect
(only downfall).

Eric Harrington
[EMAIL PROTECTED]

-----Original Message-----
Faroult
Sent: Friday, April 05, 2002 3:14 PM
To: Multiple recipients of list ORACLE-L


[EMAIL PROTECTED] wrote:
>
> Greetings,
> I have a request from my boss to come up with a list of users for a
> particular database. Since this is 805 database logon trigger is not an
> option. Turning on audit trail will be an overkill and not sure if
> performance will be acceptable if we do that. Other than querying
v$session
> periodically and hoping to get everybody, is there a better way to do
this?
> DBA_USERS view is not going to work because there are too many duplicate
> and obsolete entries.
>
> TIA
>
> Dennis Meng
> Database Administrator
> Focal Communications Corp.

Why do you say that auditing will be an overkill? You do not have to
record everything. You can have as little as storing a row into SYS.AUD$
each time somebody connects. Bearable.

--
Regards,

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  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: Eric Harrington
  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