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-16607: one or more databases have failed

1 Answers  


ORA-00275: media recovery has already been started

1 Answers  


DRG-10817: CONTAINS term consists of stopword or phrase of stopwords: string

1 Answers  


LPX-00234: namespace prefix "~S" is not declared

2 Answers  


NNL-00951: Names created on lookup: number

1 Answers  


ORA-00338: log string of thread string is more recent than controlfile

1 Answers  


ORA-00122: cannot initialize network configuration

1 Answers  


LFI-00117: Unable to rename file.

1 Answers  


SQL*Loader-00565: unexpected error during skip .

1 Answers  


ORA-24054: cannot propagate to an Oracle 8.0.3 release or lower release

1 Answers  


QSM-00768: the search condition is invalid for the requested operation

1 Answers  


ORA-30446: valid workload queries not found

1 Answers  


Categories