My Oracle Support Banner

Large SQL Text is Truncated In The Audit XML Log Files (Doc ID 1494685.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Information in this document applies to any platform.

Symptoms


With audit_trail=XML,EXTENDED one might observe truncation of SQL_TEXT of statements when there is a limit for the size of the xml audit files.
To reproduce the problem one must run the following:

sqlplus / as sysdba
alter system set audit_trail = XML, EXTENDED scope =spfile;

BEGIN
DBMS_AUDIT_MGMT.SET_AUDIT_TRAIL_PROPERTY( AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_XML, AUDIT_TRAIL_PROPERTY =>DBMS_AUDIT_MGMT.OS_FILE_MAX_SIZE, AUDIT_TRAIL_PROPERTY_VALUE => 10000);
END;
/


shutdown immediate

startup

 
 

Cause

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
Symptoms
Cause
Solution
References


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