Ora-904 When Referencing A Function In Dbms_fga.Add_policy Audit_condition

(Doc ID 561319.1)

Last updated on NOVEMBER 13, 2015

Applies to:

Oracle Server - Enterprise Edition - Version: to - Release: 9.2 to 11.2
Information in this document applies to any platform.


You are getting an error ORA-904 "invalid identifier" after you have added an FGA  policy  like this

object_schema => 'SCOTT',
object_name => 'EMP',
policy_name => 'FGA_EMP',
audit_condition => 'SYSTEM.SEC_FUNCTION = 1'

connect blake/blake

select * from scott.emp

ORA-904: invalid identifier.


The user "blake" can execute: select 'SYSTEM.SEC_FUNCTION from dual; and it reports 0 or 1.


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 hundreds of Community platforms