PL/SQL (MOSC)

MOSC Banner

OAR-12345: TNS: Operation Timed out when accessing HTTP callout using UTL_HTTP

edited May 20, 2015 10:03AM in PL/SQL (MOSC) 4 commentsAnswered

Hi All,

We are doing an integration to Oanda to get GL Daily rates into Oracle R12.1.3.

If I type the below link in Web browser then I am able to get Rates in CSV format from Oanda. I am using the same link from PL/SQL code but I get the below error. Any suggestion would be great.

ERROR MESSAGE:

ORA-29273: HTTP request failed

ORA-06512: at "SYS.UTL_HTTP", line 1130

ORA-12535: TNS:operation timed out

ORA-06512: at line 7

CODE:

SET DEFINE OFF

SET SERVEROUTPUT ON

DECLARE

  req UTL_HTTP.REQ;

  resp UTL_HTTP.RESP;

  value VARCHAR2(32767);

  V_DATA VARCHAR2(100) := 'strDate=”11-MAY-2015”';

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center