cx_Oracle doesn't connect when using SID instead of service name on connection string

后端 未结 7 836
你的背包
你的背包 2020-12-13 09:14

I have a connection string that looks like this

con_str = \"myuser/mypass@oracle.sub.example.com:1521/ora1\"

Where ora1 is the

7条回答
  •  长情又很酷
    2020-12-13 09:58

    It still may not work. You need to take the output of dsnStr and modify the string by replacing SID with SERVICE_NAME and use that variable in the con string. This procedure worked for me.

提交回复
热议问题