How to hit a http URL from PL/SQL procedure?
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production I am creating an Oracle job where I need to hit a procedure for every 30 minutes, Inside the procedure, I want to hit a HTTP URL so behind that a java program will execute. Approach : declare req UTL_HTTP.REQ; BEGIN req := UTL_HTTP.BEGIN_REQUEST('http://dev.xxx.com/yyy/zzz/aaa/triggerJob'); dbms_output.put_line('hitting'); EXCEPTION WHEN UTL_HTTP.END_OF_BODY THEN dbms_output.put_line('exception'); END; DBMS OUTPUT is hitting -- But it is not hitting actually! Approach 2 declare req UTL_HTTP.REQ; resp UTL_HTTP.RESP; BE
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.