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 |
TNS-12696: Double Encryption Turned On, login disallowed
ORA-03128: connection is in blocking mode
ORA-01181: file string created before last known RESETLOGS, cannot recreate
NNL-00830: Delete requests received: number
TNS-01442: No filtering rules currently in effect.
DRG-51802: failed to read from file: %(1)
ORA-06569: Collection bound by bind_array contains no elements
KUP-04104: zoned decimal field has bad values for string
DRG-11410: could not insert into string result table
RMAN-08059: media recovery failed
ORA-16796: One or more properties could not be imported from the database.
RMAN-06105: duplicate qualifier found in LIST command: string