Mega Code Archive

 
Categories / Oracle PLSQL Tutorial / System Packages
 

Add our policy to the EMP view

SQL> SQL> begin   2      dbms_rls.add_policy   3      ( object_name     => 'EMP',   4        policy_name     => 'HR_APP_SELECT_POLICY',   5        policy_function => 'HR_PREDICATE_PKG.SELECT_FUNCTION',   6        statement_types => 'select' );   7  end;   8  / begin * ERROR at line 1: ORA-00439: feature not enabled: Fine-grained access control ORA-06512: at "SYS.DBMS_RLS", line 20 ORA-06512: at line 2 SQL>