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

后端 未结 7 818
你的背包
你的背包 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:50

    I also met this issue. The solution is:

    1: get the service name at tnsnames.ora
    2: put the service name in
    con_str = "myuser/mypass@oracle.sub.example.com:1521/ora1"
    

提交回复
热议问题