My Oracle Support Banner

Declaring Auditing Categories With 'ON BEHALF OF' Clause Not Working With 'BY ACCESS' or 'BY SESSION' (Doc ID 1357829.1)

Last updated on MARCH 22, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

While enabling auditing for a proxy user the following error occurs:


AUDIT <audit option> BY <proxy user> ON BEHALF OF ANY BY ACCESS;
ORA-00933: SQL command not properly ended




Running the AUDIT statement with 'ON BEHALF OF' clause does not work with 'BY ACCESS'
or 'BY SESSION' clauses. When AUDIT is issued without 'BY ACCESS' or 'BY SESSION' clause, the actions are audited by session.

Changes

 

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!


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