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

ORA-13800: concurrent DDL failure on SQL repository objects

1 Answers  


IMP-00009: abnormal end of export file

1 Answers  


PLS-00652: aggregate functions should have exactly one argument

1 Answers  


DRG-12003: Please enter username for this FTP server:

1 Answers  


ORA-32012: failure in processing system parameters from restored SPFILE

1 Answers  






ORA-27204: skgfpqr: sbtpcqueryrestore returned error

1 Answers  


ORA-19634: filename required for this function

1 Answers  


ORA-32620: illegal subquery within MODEL rules

1 Answers  


ORA-07562: sldext: extension must be 3 characters

1 Answers  


ORA-30478: Specified dimension does not exist

1 Answers  


RMAN-06111: changed backup piece unavailable

1 Answers  


ORA-06577: output parameter not a bind variable

1 Answers  


Categories