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 |
ORA-16607: one or more databases have failed
ORA-00275: media recovery has already been started
DRG-10817: CONTAINS term consists of stopword or phrase of stopwords: string
LPX-00234: namespace prefix "~S" is not declared
NNL-00951: Names created on lookup: number
ORA-00338: log string of thread string is more recent than controlfile
ORA-00122: cannot initialize network configuration
LFI-00117: Unable to rename file.
SQL*Loader-00565: unexpected error during skip .
ORA-24054: cannot propagate to an Oracle 8.0.3 release or lower release
QSM-00768: the search condition is invalid for the requested operation
ORA-30446: valid workload queries not found