title: PLS-00103 while creating 2 packages PLSQL
body: <p>im trying to create 2 package body's in plsql. This is my code:</p>
  
  <pre><code>SET SERVEROUTPUT ON
  
  CREATE OR REPLACE PACKAGE p_locations
  AS
    FUNCTION f_distance(Lat1 IN NUMBER, Lon1 IN NUMBER, Lat2 IN NUMBER, Lon2 IN NUMBER, Radius IN NUMBER DEFAULT 6387.7) return number;
  END p_locations;
  
  /
  
  CREATE OR REPLACE PACKAGE BODY p_locations
  AS
    FUNCTION f_distance (Lat1 IN NUMBER, Lon1 IN NUMBER, Lat2 IN NUMBER, Lon2 IN NUMBER, Radius IN NUMBER DEFAULT 6387.7)
    RETURN NUMBER 
    IS
     -- Convert degrees to radians
     DegToRad NUMBER := 57.29577951;
  
    BEGIN
      RETURN(NVL(Radius,0) * ACOS((sin(NVL(Lat1,0) / DegToRad) * SIN(NVL(Lat2,0) / DegToRad)) +
            (COS(NVL(Lat1,0) / DegToRad) * COS(NVL(Lat2,0) / DegToRad) *
             COS(NVL(Lon2,0) / DegToRad - NVL(Lon1,0)/ DegToRad))));
    END f_distance;
  END p_locations;
  
  /
  
  CREATE OR REPLACE PACKAGE p_winkel
  AS
    FUNCTION changeOpeningstijd("id" IN number) RETURN boolean;
  END p_winkel;
  
  /
  
  CREATE OR REPLACE PACKAGE BODY p_winkel
  AS
    FUNCTION changeOpeningstijd("id" IN number) 
    RETURN boolean
    IS
      dbms_output.put_line('dit is uitgevoerd');
      return true;
    END changeOpeningstijd;
  END p_winkel;
  </code></pre>
  
  <p>When I run this I gat 3 times a PLS-00103 error. The first is on line 6,16 and says encountered the symbol "." when expecting one of the following: <code>constant exception &lt;an identifier&gt; &lt;a double-quoted delimited-identifier&gt; table long double ref char time timestamp interval date binary national character nchar The symbol "&lt;an identifier&gt;" was substituted for "." to continue.</code></p>
  
  <p>The strange thing is that when I comment out the 2nd package body everything works fine. Whilst the errors are at the beginning of the first package definition. </p>
  
  <p>Am I doing something stupid wrong here, or can't you create two packages in one session, or what else is going on here, because I don't see any logic in these errors.</p>