title: ORA-28086: The data redaction policy expression has an error
body: <p>I am trying to create a policy for a column in a database by using below script, which is creating successfully in one data base but in other database it was giving errors.</p>
  
  <p>FYI: Both the databases have EXECUTE PRIVILEGE on DBMS_REDACT POLICY   </p>
  
  <blockquote>
    <p>ORA-28086: The data redaction policy expression has an error.</p>
  </blockquote>
  
  <pre><code>BEGIN
  DBMS_REDACT.ADD_POLICY(
  object_schema =&gt;'schemaname', 
  object_name =&gt;'tablename', 
  column_name =&gt;'columnname', 
  policy_name =&gt;'policyneme', 
  function_type =&gt;DBMS_REDACT.REGEXP, 
  policy_description =&gt;'Masks the first 5 digits of SSN', 
  regexp_replace_string =&gt;'XXXXX\3', 
  regexp_position =&gt;1, 
  regexp_occurrence =&gt;0, 
  regexp_match_parameter =&gt;'i', 
  expression =&gt;'1=1', 
  regexp_pattern =&gt;'(\d\d\d)(\d\d)(\d\d\d\d)'
  );
  END;
  </code></pre>