0

I have function script. In it there is two function like:

  CREATE OR REPLACE FUNCTION  "FUNC1" (
    MJOB_CODE IN VARCHAR2,
    MOP_CODE  IN VARCHAR2)
  RETURN DATE
   IS
    RETDATE DATE;
   BEGIN

--SOMETHING--
     RETURN(RETDATE);
   END;
/

  CREATE OR REPLACE FUNCTION  "FUNC2" (
    MJOB_CODE IN VARCHAR2,
    MOP_CODE  IN VARCHAR2)
  RETURN DATE
   IS
    RETDATE DATE;
   BEGIN

--SOMETHING--
     RETURN(RETDATE);
   END;

But im getting error and when i look function in functions, I see that like function compiled like this:

   CREATE OR REPLACE FUNCTION  "FUNC1" (
    MJOB_CODE IN VARCHAR2,
    MOP_CODE  IN VARCHAR2)
  RETURN DATE
   IS
    RETDATE DATE

A part of code is missing. Actualy after ; part is missing.

If i put create function block into this missing code and compile i works. But i have too many function so i dont want to use that.

How can i solve this problem? How can i compile functions in script?

5
  • 1
    Could it be the same problem as this: stackoverflow.com/questions/10406810/… Commented Jul 18, 2013 at 8:45
  • Do you use SQL*Plus for the compilation ? Commented Jul 18, 2013 at 10:25
  • --Emmanuel: I use ORACLE sql developer Version 3.2.20.09 --A.B.Cade: 'set sqlbl on' didnt work for me. Can you explain your solution more? Commented Jul 18, 2013 at 12:14
  • @SercanSülün, it's only for sqlplus... How do you run your script? with F9 or F5 ? does it make any difference ? Commented Jul 18, 2013 at 13:11
  • @A.B.Cade Both. It's no use. I can do it from another computer's sql developer. I think that about preference of sql developer... Commented Jul 18, 2013 at 16:54

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.