errbuf and retcode

It's explained in the Developer Guide. The ERRBUF is the message that you return and RETCODE is the return code. These two parameters are very much required exactly in the fashion.
If the RETCODE is 0 stands for Success, 1 for success with warnings and 2 for Errors.
For example you have a stored procedure created as below

CREATE PROCEDURE TEST_CONC(ERRBUF OUT VARCHAR2,RETCODE OUT VARCHAR2)
AS
BEGIN
--- PROCESSS
ERRBUF := 'Successful Operation';
RETCODE := '0';
EXCEPTION
--- EXCEPTION HANDLING
ERRBUF := 'Found Exception ';
RETCODE := '2';
END;

Comments

Popular posts from this blog

How to mount a WD Book Live as NFS in OEL6U3

ORA-44412: XE edition memory parameter invalid or not specified

Oracle SQL Developer 19.4 font too small