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-00254: error in archive control string 'string'

1 Answers  


PLW-07203: parameter 'string' may benefit from use of the NOCOPY compiler hint

1 Answers  


ORA-22331: cannot alter an incomplete type

1 Answers  


ORA-31616: unable to write to dump file "string"

1 Answers  


ORA-25013: OLD and PARENT values cannot be identical

1 Answers  






ORA-31185: DOM Nodes do not belong to the same DOM Document

1 Answers  


ORA-06570: shared pool object does not exist, cannot be pinned

1 Answers  


SQL*Loader-00554: error opening file

1 Answers  


ORA-06774: TLI Driver: error sending break mode

1 Answers  


RMAN-05000: CONFIGURE AUXNAME required for datafile string

1 Answers  


ORA-02282: duplicate or conflicting ORDER/NOORDER specifications

1 Answers  


NID-00373: Revert changes for database string (Y/[N]) =>

1 Answers  


Categories