databaseauditing
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| databaseauditing [2015/07/21 08:30] – [Purging Audit Trail] z0hpvk | databaseauditing [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 19: | Line 19: | ||
| This still means that failed logins are audited. | This still means that failed logins are audited. | ||
| - | ==== View Audit Trail ==== | + | ==== Viewing |
| SQL below will show everything that has been audited today | SQL below will show everything that has been audited today | ||
| Line 25: | Line 25: | ||
| < | < | ||
| set linesize 160 | set linesize 160 | ||
| - | col os_username format | + | col os_username format |
| - | col userhost format | + | col userhost format |
| - | select os_username, | + | select os_username, |
| from dba_audit_trail | from dba_audit_trail | ||
| where timestamp > trunc(sysdate) | where timestamp > trunc(sysdate) | ||
| Line 43: | Line 43: | ||
| /</ | /</ | ||
| - | Create a job to set Archive | + | Create a job to set the Archive |
| < | < | ||
| DBMS_SCHEDULER.CREATE_JOB ( | DBMS_SCHEDULER.CREATE_JOB ( | ||
| Line 58: | Line 58: | ||
| /</ | /</ | ||
| - | Create a purge job which will delete all audit entries older than the Archive | + | Create a purge job which will delete all audit entries older than the Archive |
| < | < | ||
| DBMS_AUDIT_MGMT.CREATE_PURGE_JOB( | DBMS_AUDIT_MGMT.CREATE_PURGE_JOB( | ||
databaseauditing.1437467407.txt.gz · Last modified: (external edit)
