Skip to content Skip to sidebar Skip to footer

Cx_oracle Connection Timeout

I am trying to connect to Oracle database but getting below error: curcon = cx_Oracle.connect(conn_str) cx_Oracle.DatabaseError: ORA-12170: TNS:Connect timeout occurred Here's

Solution 1:

If the error is occurring because of a slow network or system, you may fix the error by reconfiguring the following parameter in sqlnet.ora to larger values:

SQLNET.INBOUND_CONNECT_TIMEOUT = 0

Your sqlnet.ora file can be found in your $ORACLE_HOME/network/admin directory.

Post a Comment for "Cx_oracle Connection Timeout"