Getting “cx_Oracle.DatabaseError: DPI-1050: Oracle Client library must be at version 11.2 or higher” error

前端 未结 1 1148
隐瞒了意图╮
隐瞒了意图╮ 2020-12-20 10:10

I am trying to use pycharm(3.3) to access my Oracle SQL(11.2.0) using the below codes but getting error with below details.

相关标签:
1条回答
  • 2020-12-20 10:39

    I had an issue very similar to yours. I was able to solve it by using a different connection method:

    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)
    

    See http://cx-oracle.readthedocs.io/en/latest/module.html for more information

    0 讨论(0)
提交回复
热议问题