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 block of code:
conn_str = u'user/pwd@111.22.33.444:8000/service'
curcon = cx_Oracle.connect(conn_str)
cursor = curcon.cursor()
I tried solutions from these two threads but none of them works: