You may create logon trigger on the database and populate the username and timestamp in a table. Distict count of the users for a day should give you the users logged in a day as a same user may logged in several times in a day
I believe this will only work in Oracle 8i. The logon event is not a triggerable event prior to that release. Other triggerable events are STARTUP, SHUTDOWN, CREATE, ALTER, DROP, SERVERERROR, AND LOGOFF. :
CREATE OR REPLACE TRIGGER log_logons
AFTER LOGON ON DATABASE
BEGIN
INSERT INTO logon_log
(db_name,
event_time,
by_user)
VALUES (sys.database_name,
sysdate,
sys.login_user);
COMMIT;
END;
/
John Hoarty
jhoarty@quickestore.com
If your database is not oracle8i, then you may set the audit trail on and set auditing for all operation. Then the you can generate the database usage fairly well.
Note : Auditing may be expensive in terms of performance and space. And you need to monitor audit trail and archived it/remove from time to time.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.