在 python 错误中连接 oracle 10g 数据库
connect oracle 10g databse in python error
如何在python中连接oracle 10g数据库?
我试过
import cx_Oracle and then
connection= cx_Oracle.connect('username/password@localhost')
但它给出了错误
cx_Oracle.DatabaseError: DPI-1050: Oracle Client library must be at
version 11.2 or higher
如何解决这个错误?
或者是否可以安装较低版本的 cx_Oracle 我试过了但仍然报错
cannot locate an Oracle software installation
cx_oracle 文档 clearly states which versions of the Oracle client are supported。由于错误消息表明支持的最旧版本是 11.2。
您有一个 Oracle 10g 数据库,它至少比 11gR2 早两个主要版本。很有可能你的客户也是 10g。因此错误。您可以尝试下载更新版本的客户端; Oracle 在客户端和服务器之间具有相当好的向后兼容性,因此您应该没问题。 Find out more.
但是,您使用的数据库版本已被弃用多年。不升级软件的代价是调试棘手的集成问题。
如何在python中连接oracle 10g数据库?
我试过
import cx_Oracle and then
connection= cx_Oracle.connect('username/password@localhost')
但它给出了错误
cx_Oracle.DatabaseError: DPI-1050: Oracle Client library must be at version 11.2 or higher
如何解决这个错误? 或者是否可以安装较低版本的 cx_Oracle 我试过了但仍然报错
cannot locate an Oracle software installation
cx_oracle 文档 clearly states which versions of the Oracle client are supported。由于错误消息表明支持的最旧版本是 11.2。
您有一个 Oracle 10g 数据库,它至少比 11gR2 早两个主要版本。很有可能你的客户也是 10g。因此错误。您可以尝试下载更新版本的客户端; Oracle 在客户端和服务器之间具有相当好的向后兼容性,因此您应该没问题。 Find out more.
但是,您使用的数据库版本已被弃用多年。不升级软件的代价是调试棘手的集成问题。