title: Calling DBMS_RLS.ENABLE_POLICY inside a function?
body: <p>I am trying to call SYS.DBMS_RLS.ENABLE_POLICY() from inside a function defined in a package.
  But it shows the following error:</p>
  
  <blockquote>
    <p>Error(19,16): PLS-00201: identifier 'SYS.DBMS_RLS' must be declared</p>
  </blockquote>
  
  <p>Code:</p>
  
  <pre><code>CREATE OR REPLACE PACKAGE BODY foopackage IS
      FUNCTION foobar RETURN t_table PIPELINED IS
      BEGIN
          EXECUTE(SYS.DBMS_RLS.ENABLE_POLICY( -- error in this line
              object_schema =&gt; 'foo',
              object_name =&gt; 'bar',
              policy_name =&gt;'bar2',
              enable =&gt; FALSE
          ));
          -- some more code
          EXECUTE(SYS.DBMS_RLS.ENABLE_POLICY( -- error in this line
              object_schema =&gt; 'foo',
              object_name =&gt; 'bar',
              policy_name =&gt;'bar2',
              enable =&gt; TRUE
          ));
          RETURN;
      END;
  END foopackage;
  </code></pre>