Home » RDBMS Server » Server Administration » Truncate SYS.AUD$ Using dbms_audit_mgmt (Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production)
|
|
|
|
Re: Truncate SYS.AUD$ Using dbms_audit_mgmt [message #685080 is a reply to message #685076] |
Mon, 18 October 2021 05:37   |
 |
mushy_1983
Messages: 5 Registered: October 2021
|
Junior Member |
|
|
I called up the init procedure but it takes too much time and still when I see its not on.
BEGIN
IF NOT SYS.DBMS_AUDIT_MGMT.IS_CLEANUP_INITIALIZED
(SYS.DBMS_AUDIT_MGMT.AUDIT_TRAIL_AUD_STD)
THEN
SYS.dbms_output.put_line('Calling DBMS_AUDIT_MGMT.INIT_CLEANUP');
SYS.DBMS_AUDIT_MGMT.INIT_CLEANUP(
audit_trail_type => SYS.dbms_audit_mgmt.AUDIT_TRAIL_AUD_STD,
default_cleanup_interval => 12);
else
dbms_output.put_line('Cleanup for STD was already initialized');
end if;
end;
--moderator edit: added [code] tags
[Updated on: Mon, 18 October 2021 06:15] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Sun May 04 00:05:24 CDT 2025
|