First page Back Continue Last page Graphics

Monitoring Logon Attempts


Notes:

As stated earlier in this lesson, audit records are written to an OS file or the SYS.AUD$ table, depending on the value of the AUDIT_TRAIL parameter. Instead of directly querying SYS.AUD$, there is a convenient set of views that are easier to use.
If AUDIT_TRAIL=DB, query the DBA_AUDIT_SESSION dictionary view to display audit records related to logon (and logoff) attempts (as shown in the example above). This query is available to you in your supplied scripts as AUD_LOGINS.SQL.
Supplemental Notes
The DBA_AUDIT_TRAIL view is an aggregate of all audited activity. It has many uses, including finding the IP address of the user connecting to your database:
SQL> select comment_text from dba_audit_trail;
COMMENT_TEXT
---------------------------------------------------------
Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.3)(PORT=1503))
Authenticated by: DATABASE; Client address: (ADDRESS=(PROTOCOL=tcp)(HOST=10.0.0.3)(PORT=1502))