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-31062: Cannot delete an unsaved resource
PLS-00902: A READ-ONLY bind variable used in OUT or IN-OUT context
ORA-22955: The cardinality parameter is not within the allowed limits
TNS-00136: Did not register product/facility for TNS error message
ORA-32635: not a single cell reference predicate
ORA-32771: cannot add file to bigfile tablespace
PCB-00553: FOR clause not allowed on this statement
ORA-19008: Invalid version of the XMLType
ORA-32322: PCT refresh of "string"."string" not allowed the sequence of DMLs/PMOPs
DRG-50301: server error reading request queue
TNS-02404: Service string contains no local handlers
RMAN-00574: rman aborting due to errors read/writing dbms_pipe