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-31072: Too many child nodes in XMLType fragment for updateXML

1 Answers  


ORA-31631: privileges are required

1 Answers  


ORA-32820: subscriber queue and exception queue must use same message system link

1 Answers  


IMP-00002: failed to open string for read

1 Answers  


ORA-29908: missing primary invocation for ancillary operator

1 Answers  






ORA-24315: illegal attribute type

1 Answers  


ORA-15122: ASM file name 'string' contains an invalid file number

1 Answers  


ORA-21607: memory cartridge service handle not initialized

1 Answers  


ORA-07200: slsid: oracle_sid not set.

1 Answers  


TNS-12541: TNS:no listener

1 Answers  


ORA-07269: spdcr: detached process died after exec.

1 Answers  


LSX-00232: invalid unsigned long "~S"

1 Answers  


Categories