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 |
PLS-00323: subprogram or cursor 'string' is declared in a package specification and must be defined in the package body
NNL-00911: Responses sent with invalid error code: number
ORA-24008: queue table string.string must be dropped first
ORA-16216: Log stream sequence error
ORA-24415: Missing or null username.
ORA-39305: specified schema "string" does not exist
TNS-12502: TNS:listener received no CONNECT_DATA from client
ORA-01413: illegal value in packed decimal number buffer
ORA-19722: datafile string is an incorrect version
ORA-13018: bad distance type
KUP-04077: unknown format specifier in file name string
ORA-28004: invalid argument for function specified in PASSWORD_VERIFY_FUNCTION string