Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


PLS-00251: RETURN, for actual function return, must be last
in the parameters clause



PLS-00251: RETURN, for actual function return, must be last in the parameters clause..

Answer / guest

Cause: RETURN specification for the actual function return,
used within the parameters clause must hold the very last
position. Example : The following will give this error since
the RETURN specification for the actual function return in
the parameters clause is not the last. FUNCTION
myexternalfunc (var1 BINARY_INTEGER, var2 BINARY_INTEGER)
RETURN BINARY_INTEGER IS EXTERNAL NAME "myexternalfunc"
LIBRARY somelib PARAMETERS (var1 LONG, var2 SHORT, RETURN
INT, RETURN INDICATOR SHORT); The correct syntax is the
following. Note that RETURN for actual function return is
the last specification in the parameters clause. FUNCTION
myexternalfunc (var1 BINARY_INTEGER, var2 BINARY_INTEGER)
RETURN BINARY_INTEGER IS EXTERNAL NAME "myexternalfunc"
LIBRARY somelib PARAMETERS (var1 LONG, var2 SHORT, RETURN
INDICATOR SHORT, RETURN INT);

Action: Correct the syntax of the RETURN specification in
the parameters clause

Please add more information about this Error

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle Errors Interview Questions

LRM-00114: error when processing from command line

1 Answers  


ORA-31197: Error in processing file string

1 Answers  


ORA-38418: ADT associated with the attribute set string does not exist

1 Answers  


PLS-00510: Float cannot have scale

1 Answers  


ORA-22852: invalid PCTVERSION LOB storage option value

1 Answers  






ORA-13183: unsupported geometric type for geometry string.string

1 Answers  


ORA-32588: supplemental logging attribute string exists

1 Answers  


RMAN-06586: no copy of datafile number with tag string found

1 Answers  


ORA-07264: spwat: semop error, unable to decrement semaphore.

1 Answers  


ORA-24154: rule string.string already in rule set string.string

1 Answers  


KUP-04072: error writing to file string

1 Answers  


PCC-02134: CMD-LINE: Null option supplied

1 Answers  






Categories