Windows Oracle Data Access Components (MOSC)

MOSC Banner

Connection Time Out

edited Aug 14, 2020 8:58PM in Windows Oracle Data Access Components (MOSC) 3 commentsAnswered

Hi,

Environment
Oracle.ManagedDataAccess - 19.8.0
.NET framework - 4.6.1
Oracle database - 12.2.0.2 Standard Edition, running on Oracle Linux
Firewall exists between Windows servers and Oracle Database with TCP Idle session timeout set to 30 Min and
UDP idle session timeout set to 1 Min.

With above, we have cluster of IIS Servers connecting to the database. We are experiencing intermittent timeout errors i.e. Oracle.ManagedDataAccess.Client.OracleException (0x80004005): Connection request timed out.

To fix this, we have set "Validate connection=true" in the connection string. However Oracle's documentation prefers creating event handler over setting this attribute,

The Validate Connection attribute validates connections coming out of the pool. This attribute should be used only when absolutely necessary, because it causes a round-trip to the database to validate each connection immediately before it is provided to the application. If invalid connections are uncommon, developers can create their own event handler to retrieve and validate a new connection, rather than using the Validate Connection attribute. This generally provides better performance.

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