To prevent the audit areas from growing disproportionately on any audit enabled database, run PROUTIL AUDITARCHIVE at regular intervals.
Should the Audit Areas need re-structuring, upgrade to
OpenEdge 11.3 or later where a new feature: "
PROUTIL -C AUDITRECONFIG" allows Audit Data Areas to be reconfigured and physical disk space associated with audit trails to be recovered.
Apart from being able to purge all data from existing Audit Areas, the AUDITRECONFIG utility can also be used to split or combine index and data areas and set new records per block and blocks per cluster values by moving existing audit data and indexes to new TYPE II Storage Areas.
To re-size the Audit Archive Storage areas with AUDITRECONFIG:1. Ensure existing audit data is exported with PROUTIL AUDITARCHIVE, otherwise auditreconfig is going to delete all auditing records
2. Create new Type II Storage Areas to associate the audit tables with then use auditreconfig to restructure:
$ proutil <dbname> -C auditreconfig tablearea <new-table-area-name> indexarea <new-index-area-name> -user <Audit Data Archiver>
The operation will delete all auditing data records.
You must archive auditing data first.
Have you archived the data already and do you want to continue? (Y/N) (16987)
y
Auditreconfig started. (16973)
Reconfiguring tables ... (16979)
Auditreconfig completed. (16975)
3. Truncate the former audit data and index areas:
$ proutil <dbname> -C truncate area <old-table-area-name>4. Truncate the bi file:
$ proutil <dbname> -C truncate bi
5. Delete the extents on the old audit area(s) until all extents are deleted. Extents will be removed from the last extent to the first extent in the area.
$ prostrct remove <dbname> d "OE Audit Data"
$ prostrct remove <dbname> d "OE Audit Indexes"
For further clarification on the
AUDITRECONFIG functionality, refer to the Documentation:
OpenEdge Data Management: Database Administration, Auditing, Reconfiguring Audit Areas