【发布时间】:2019-01-21 01:01:05
【问题描述】:
我来了
cx_Oracle.DatabaseError: ORA-12170: TNS:Connect timeout occurred error while connecting oracle from python.
我已经安装了 python 3.7.0 和 Instantclient_11_2。
下面是我正在做的过程,
import cx_Oracle
dsn_tns = cx_Oracle.makedsn( '<ip>', 1521, service_name = '<given service name>')
connection = cx_Oracle.connect('user', 'pwd', dsn_tns)
我设置了系统验证PATH,其中存在oci.dll。
可能出了什么问题?
【问题讨论】:
标签: python-3.x oracle cx-oracle instantclient