My Oracle Support Banner

SCRIPT: Basic example to manage AUD$ table with dbms_audit_mgmt (Doc ID 1362997.1)

Last updated on MARCH 19, 2024

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 12.1]
Oracle Database - Enterprise Edition - Version and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.


The purpose of this script is to show a basic example on how you can administer and manage the size of audit table AUD$. It assumes an audit retention time of 1 week. This example can be used to build from for your own environment managing other audit trail types etc. etc.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document
 Sample Code 
 Sample Output

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.