Delete SYS.AUD$ data


Job details

Name: Delete SYS.AUD$ data
Platform: Oracle
Category: Maintenance
Premium package: Maintenance package
Description: Deletes old rows from the SYS.AUD$ trail table.
Long description: Deletes old rows from the SYS.AUD$ trail table. Configurable time delay in days.
Version: 1.1
Default schedule: 15 3 * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘oracle’]/.[hasengine=‘YES’ & eleven_and_above=‘1′]/.[is_rds = ‘0′]

Parameters

Name Default value Description
history threshold 30 Defines how many days we keep data for in the SYS.AUD$ table.
max rows to delete 10000 The maximum number of rows to delete per execution of the task.
max period of time to delete 30 The maximum number of days with trace statistics to delete.
enable delete operation NO Enables the task to delete data from SYS.AUD$ table.

Job Summary

SELECT COUNT(*) FROM SYS.AUD$ WHERE ntimestamp# < sysdate - [configured days];
DELETE FROM SYS.AUD$ WHERE ntimestamp# < sysdate - [configured days];

Detailed Description

Job Configuration and Dependencies

Scheduled Execution

Execution Details

Output and Reporting

Execution Date Rows Deleted Elapsed Time Oldest Record Deleted Newest Record Deleted Rows Threshold Period Threshold
date1 num1 time1 date-record1 date-record2 num2 num3
date2 num4 time2 date-record3 date-record4 num5 num6

This dbWatch job facilitates effective audit data management in Oracle databases, ensuring system health and compliance with data retention policies.