My Oracle Support Banner

Unable to provision fga audit policy with sys_context function in the condition (Doc ID 2643318.1)

Last updated on FEBRUARY 13, 2022

Applies to:

Oracle Audit Vault and Database Firewall - Version and later
Information in this document applies to any platform.


Trying to create a FGA audit policy with sys_context function in condition from AVS Audit Settings.
Provisioning fails or the FGA policy does not work properly. There are two symptoms depending on the conditions.

From Audit Settings in AVS console, create Fine Grained Audit Settings
Audit Trail => Database
Secured Target Schema => <username>
Secured Target Object => <tablename>
Statements => SELECT
Conditions =>

case 1
If "Conditions" is the following, provisioning is completed. However,
executing the target SQL raises ORA-28112.

  SYS_CONTEXT( ''USERENV'',''MODULE'' ) != ''SQL*Plus''

select * from <tablename>;
ORA-28112; failed to execute policy function

Case 2
If "Conditions" is the following, provisioning failed with the following error.

"Export Process Error: ORA-6502:"





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

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