Quantcast
Channel: Doyensys Allappsdba Blog..
Viewing all articles
Browse latest Browse all 1640

To get the details of audit records for user sessions

$
0
0
select os_username "O/S User",        /*Operating system username used.*/
username "User",               /*Oracle username of the account used.*/
terminal "Terminal",           /*Terminal ID used.*/
decode(returncode,'0','Connected',
'1005','FailedNull',
'1017','Failed',returncode) "Status",         /*Failure check*/
to_char(timestamp,'DD-MON-YY HH24:MI:SS') "Login",    /*Login time*/
to_char(logoff_time,'DD-MON-YY HH24:MI:SS') "Logoff" /*Logoff time*/
from dba_audit_session;


Viewing all articles
Browse latest Browse all 1640

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>