Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在python中连接oracle 10g数据库错误_Python_Database_Oracle_Oracle10g - Fatal编程技术网

在python中连接oracle 10g数据库错误

在python中连接oracle 10g数据库错误,python,database,oracle,oracle10g,Python,Database,Oracle,Oracle10g,如何在python中连接oracle 10g数据库 我试过了 import cx_Oracle and then connection= cx_Oracle.connect('username/password@localhost') 但这会产生错误 cx_Oracle.DatabaseError:DPI-1050:Oracle客户端库必须位于 11.2版或更高版本 如何解决这个错误? 或者可以安装cx_Oracle的较低版本吗?我已经尝试过,但仍然给出了错误 找不到Oracle软件安装 c

如何在python中连接oracle 10g数据库

我试过了

import cx_Oracle and then 
connection= cx_Oracle.connect('username/password@localhost')
但这会产生错误

cx_Oracle.DatabaseError:DPI-1050:Oracle客户端库必须位于 11.2版或更高版本

如何解决这个错误? 或者可以安装cx_Oracle的较低版本吗?我已经尝试过,但仍然给出了错误

找不到Oracle软件安装


cx_oracle文档。因为错误消息表明最早支持的版本是11.2

您有一个Oracle 10g数据库,它至少有两个主要版本早于11gR2。很可能你的客户也是10g。因此出现了错误。您可以尝试下载客户端的最新版本;Oracle在客户机和服务器之间有相当好的向后兼容性,所以您应该没事


但是,您使用的数据库版本已被弃用多年。不升级软件的代价是调试棘手的集成问题

可能重复尝试了此操作,但仍然得到与上面相同的错误。oracle 10g上的版本不支持具有32位体系结构的linux,并且我的机器具有32位,因此我安装了10g。我很容易说,只需升级您的机器即可。这就是我要说的。因为我没有更好的答案,唉