Oracle AVDF Unified Audit
Oracle AVDF Unified Audit
2. Click the Agents tab. A list of the registered hosts, if present, appears in the Agent page.
3. Click Register. Enter the Host Name and Host IP address.
4. Click Save
II. Deploying and Activating the Audit Vault Agent on Secured Target Hosts
1. Click the Agents tab.
2. Click Downloads Page
To stop or start the Audit Vault Agent after initial activation and start, run one of the following
commands from the Agent_Home/bin directory on the secured target host machine:
./agentctl stop
./agentctl start
./agentctl status
1. Create User
[oracle@lsvdevcrmdb01]$ cd
/u03/app/avagent/av/plugins/com.oracle.av.plugin.oracle/config/
[oracle@lsvdevcrmdb01 config]$ sqlplus / as sysdba
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL>
@/u02/app/avagent/av/plugins/com.oracle.av.plugin.oracle/config/oracle_user_s
etup.sql AVDFUSER SETUP
Session altered.
SQL>
@/u02/app/avagent/av/plugins/com.oracle.av.plugin.oracle/config/oracle_user_s
etup.sql avdfuser SPA
Session altered.
SQL>
@/u02/app/avagent/av/plugins/com.oracle.av.plugin.oracle/config/oracle_user_s
etup.sql avdfuser ENTITLEMENT
Session altered.
GRANTED_ROLE
-----------------------------------------------------------------------------
---
AUDIT_ADMIN
AUDIT_VIEWER
RESOURCE
PRIVILEGE
----------------------------------------
AUDIT ANY
AUDIT SYSTEM
CREATE SESSION
Current Settings:
set lines 600
col OWNER for a10
col TABLE_NAME for a30
col INTERVAL for a20
select
owner,table_name,interval,partitioning_type,partition_count,def_tablespace_na
me from dba_part_Tables where owner='AUDSYS';
OWNER TABLE_NAME INTERVAL PARTITION
PARTITION_COUNT DEF_TABLESPACE_NAME
---------- ------------------------------ -------------------- ---------
AUDSYS AUD$UNIFIED INTERVAL '1' MONTH RANGE 1048575 SYSAUX
TABLESLACE CREATED.
SQL> BEGIN
DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_LOCATION(
audit_trail_type => dbms_audit_mgmt.audit_trail_unified,
audit_trail_location_value => 'TBS_AUD');
END;
/ 2 3 4 5 6
SQL> BEGIN
DBMS_AUDIT_MGMT.INIT_CLEANUP(
AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_ALL,
DEFAULT_CLEANUP_INTERVAL => 24);
END;
/ 2 3 4 5 6
3. Verification
BEGIN
DBMS_SCHEDULER.create_job (
job_name => 'PURGE_UNIFIED_AUDIT_JOB',
job_type => 'PLSQL_BLOCK',
job_action => 'BEGIN
DBMS_AUDIT_MGMT.SET_LAST_ARCHIVE_TIMESTAMP(DBMS_AUDIT_MGMT.AUDIT_TRAIL_UNIFIE
D, SYSTIMESTAMP-15);
DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL(
audit_trail_type => DBMS_AUDIT_MGMT.AUDIT_TRAIL_UNIFIED,
use_last_arch_timestamp => TRUE);
END;',
start_date => '',
repeat_interval => 'freq=daily; byhour=3; byminute=10; bysecond=0;',
end_date => NULL,
enabled => TRUE,
comments => 'Purge unified audit trail older than 15 days.');
END;
/
Once the database side configurations are complete, configure the audit trail in the web
console.
1. Register the database on Targets Page;
1. Navigate to added target and select audit data collection and add database
settings, such as trail type, agent host etc…
2. After completing the adding step verify using Target Tab -> Audit Trails page.
Status should be green.
Unified Auditing is more powerful and less impacting (usually) compared to the old
auditing. And since Oracle 12.2.0.1, it has even a working relational structure which
allows you to query data.
VALUE
----------------------------------------------------------------
FALSE
SQL>
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.14.0.0.0
VALUE
----------------------------------------------------------------
TRUE
SQL>
SQL>
----------------------------------------------------------------
SQL> SELECT *
FROM audit_unified_enabled_policies
WHERE policy_name = 'DML_ACTIONS_POLOLICY';
References:
https://www.dbi-services.com/blog/purging-unified-audit-trail-in-12cr2/
https://gavinsoorma.com.au/knowledge-base/unified-auditing-getting-started/
BEGIN
DBMS_AUDIT_MGMT.ALTER_PARTITION_INTERVAL(
interval_number => 1,
interval_frequency => 'DAY');
END;
/
IX. Accessing Audit Data
1. Login Audit Vault Web Console by SUPAUDITOR user.