Search This Blog

Sunday, July 7, 2019

Know Details About SQLERRM Function

This function retrieves the detailed SQLERRM of the last exception raised.
Know Details About SQLERRM Function This function retrieves the detailed SQLERRM of the last exception raised. Syntax UTL_HTTP.get_detailed_sqlerrm RETURN VARCHAR2; EXAMPLE: ----------------------- 1. EXECUTE THE BELOW ANONYMOUS BLOCK DECLARE l_request UTL_HTTP.req; BEGIN l_request := UTL_HTTP.begin_request ('http://www.some_company.com'); END; 2. NOW RUN THE BELOW SQL COMMAND select utl_http.get_detailed_sqlerrm from dual
Syntax

UTL_HTTP.get_detailed_sqlerrm 
RETURN VARCHAR2;

EXAMPLE:
-----------------------
1. EXECUTE THE BELOW ANONYMOUS BLOCK
DECLARE
   l_request   UTL_HTTP.req;
BEGIN
   l_request := UTL_HTTP.begin_request ('http://www.some_company.com');
END;

2. NOW RUN THE BELOW SQL COMMAND

select utl_http.get_detailed_sqlerrm from dual

No comments:

Post a Comment

PDF to Text Covert by Oracle Apex

Here are the steps to convert and get the character into a region by Oracle Apex. Step1.  Create a page and Copy-Pest the below code into Pa...