我遇到了一个与您非常相似的问题。我能够通过使用其他连接方法来解决它:
my_dsn = cx_Oracle.makedsn("host",port,sid="sid")connection = cx_Oracle.connect(user="user", password="password", dsn=my_dsn)cursor = connection.cursor()querystring = "SQL query"cursor.execute(querystring)有关更多信息,请参见http://cx-oracle.readthedocs.io/en/latest/module.html



