My Oracle Support Banner

Ora-904 When Referencing A Function In Dbms_fga.Add_policy Audit_condition (Doc ID 561319.1)

Last updated on AUGUST 04, 2018

Applies to:

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

Symptoms

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

BEGIN
DBMS_FGA.ADD_POLICY(
object_schema => 'SCOTT',
object_name => 'EMP',
policy_name => 'FGA_EMP',
audit_condition => 'SYSTEM.SEC_FUNCTION = 1'
);
END;
/

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.

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.