我正在尝试使用cx_Oracle连接到远程Oracle数据库。这在过去一直有效,我可以使用Oracle SQL Developer进行连接,但是使用此方法始终会返回错误。这使我认为这是一个cx_Oracle问题,但有任何见解。
import cx_Oracle as orc
user='usr'
pwd='pwd'
host='db.host.url'
service_name='servname'
db = orc.connect(user, pwd, '{}:1521/{}'.format(host,service_name)) #error is here
错误:
Traceback (most recent call last):
File "path_to_py", line 15, in <module>
db = orc.connect(user, pwd, '{}:1521/{}'.format(host,service_name))
cx_Oracle.OperationalError: ORA-03113: end-of-file on communication channel
Process ID: 0
Session ID: 0 Serial number: 0
Oracle SQL Developer版本: 17.3.0
Oracle客户端版本:11.2.0
Azure上托管的Oracle DB
本地平台:Windows 10
python版本:3.7
cx_Oracle版本:7.0.0