title: create oracle package encountered PLS-00103: Encountered the symbol "CREATE"
body: <p>I am writing an oracle package using Oracle sql developer, I got this compile error: </p>
  
  <blockquote>
    <p>Error(7,1): PLS-00103: Encountered the symbol "CREATE" .</p>
  </blockquote>
  
  <pre><code>create or replace
  PACKAGE TestPackage AS 
   FUNCTION beforePopulate RETURN BOOLEAN;
   FUNCTION afterPopulate RETURN BOOLEAN;
  END TestPackage;
  
  CREATE OR REPLACE PACKAGE BODY TestPackage AS
     FUNCTION beforePopulate RETURN BOOLEAN AS
     BEGIN
        DELETE FROM TEST_1;
        INSERT INTO TEST_1
        SELECT * FROM TEST WHERE VALUE=300;
        COMMIT;
        RETURN TRUE;
       EXCEPTION
         WHEN OTHERS THEN
          RETURN FALSE;
     END;
     FUNCTION afterPopulate RETURN BOOLEAN AS
       BEGIN
           UPDATE TEST SET RESULT="completed" WHERE VALUE=300;
              COMMIT;
           RETURN TRUE;
           EXCEPTION
             WHEN OTHERS RETURN FALSE;
          END;
    END;
  END TestPackage;
  </code></pre>
  
  <p>If I add a <code>/</code> at line 6, the error became: </p>
  
  <blockquote>
    <p>Error(6,1): PLS-00103: Encountered the symbol "/" </p>
  </blockquote>
  
  <p>I tired an empty implementation like this:</p>
  
  <pre><code>create or replace 
  package package1 as 
  END PACKAGE1;
  
  CREATE OR REPLACE 
  package body package1 as 
  end package1;
  </code></pre>
  
  <p>I got the same err.</p>