Using TX_TIMEOUT in UTL_TCP Connection is Not Timing Out The Connection (Doc ID 1303667.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version: 10.1.0.2 and later   [Release: 10.1 and later ]
Information in this document applies to any platform.

Symptoms

After adding the TX_TIMEOUT to the UTL_TCP stored procedure. The stored procedure is still hanging when there is no response sent back to the stored procedure. ie. when the host is unavailable. The stored procedure is not timing out the connection, like what is specified in the connection string. They are coding the connection string like this:

Ie.
ConObj := UTL_TCP.OPEN_CONNECTION('<Host Name>', <Port_Number>, TX_TIMEOUT => <Time_In_Seconds>);

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms