Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Audit for user login & logout of the Database

User01Sep 28 2011 — edited Oct 5 2011
Hi,

I turned audit on todweb database for user logging (enabled audit users sessions). It writes a record when any user logs on and one record when logged off. Auditors might like to have information about which tool was used for connecting to database too. The standard audit_trail does not have that info. Please let me know how to display application/tool connecting to the database for that user session.
Below is the sample query (need to add with which PROGRAM,MODULE it is connecting to the below query).
select OS_USERNAME||'='||USERHOST||'='||ACTION_NAME||'='||TO_CHAR(timestamp,'DD-MON-YYYY HH24:MI:SS')||'='||TO_CHAR(logoff_time, 'DD-MON-YYYY HH24:MI:SS') from dba_audit_session;

Looks like dba_audit_session has SESSIONID - i checked this with SID of v$session. Both are different. Appreciate your reply.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 2 2011
Added on Sep 28 2011
11 comments
2,517 views