I'm trying something quite simple here, just creating a package and it's package body. This is my code(from oracle documentation):
create or replace PACKAGE emp_bonus_2 AS
PROCEDURE calc_bonus (date_hired number);
END emp_bonus_2;
/
CREATE PACKAGE BODY emp_bonus_2 AS
PROCEDURE calc_bonus
(date_hired number) IS
BEGIN
DBMS_OUTPUT.PUT_LINE
('Employees hired on ' || date_hired || ' get bonus.');
END;
END emp_bonus_2 ;
/
When compiling, I get this error:
Error(4,1): PLS-00103: Encountered the symbol "/"
I have used "/" before for creating triggers without any problem, so I don't know where the problem is. I tried removing the "/", which gave me a "Encountered CREATE" error.
I'm working on SQLDeveloper on an Oracle 11g database.