Unable to provision fga audit policy with sys_context function in the condition
(Doc ID 2643318.1)
Last updated on APRIL 21, 2020
Applies to:Oracle Audit Vault and Database Firewall - Version 126.96.36.199 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
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
If "Conditions" is the following, provisioning failed with the following error.
"Export Process Error: ORA-6502:"
SYS_CONTEXT( 'USERENV','MODULE' ) != ''SQL*Plus''
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