title: Oracle APEX Error: Application ID and current security group ID are not consistent
body: <p>When trying to authenticate I always get the following error:</p>
  
  <p><strong><em>Application ID and current security group ID are not consistent.</em></strong></p>
  
  <p>I get the error when I try to run the following login-function:</p>
  
  <pre><code>begin
  
  apex_authentication.login(
      p_username =&gt; :P101_USERNAME,
      p_password =&gt; :P101_PASSWORD );
  
  end;
  </code></pre>
  
  <p>I try to run the code in the SQL Commands.</p>
  
  <p>Do you have some advice?</p>
  
  <p>Thanks</p>