简体   繁体   English

cx_Oracle不适用于Oracle数据库10gR2

[英]cx_Oracle does not work with Oracle database 10gR2

using python3.6 I have installed cx_Oracle 6.4.1 and the instantclient for Oracle 10gR2 (basic-10.2.0.5.0-linux-x64) but it doesn't work. 使用python3.6我已经为Oracle 10gR2 (basic-10.2.0.5.0-linux-x64)安装了cx_Oracle 6.4.1和InstantClient,但是它不起作用。 In previous releases of cx_Oracle it used to connect with 10gR2 databases but now it seems not to be supported anymore. 在以前的cx_Oracle版本中,它曾经与10gR2数据库连接,但现在似乎不再受支持。

Is there a way in python to connect to this version of database? python中有没有办法连接到此版本的数据库?

Thanks! 谢谢!

From the cx_Oracle installation instructions : cx_Oracle安装说明中

Oracle client libraries versions 12.2, 12.1 and 11.2 are supported 支持Oracle客户端库版本12.2、12.1和11.2

From the cx_Oracle installation instructions on interoperability : 关于互操作性cx_Oracle安装说明中

Oracle's standard client-server network interoperability allows connections between different versions of Oracle Client libraries and Oracle Database. Oracle的标准客户端-服务器网络互操作性允许在不同版本的Oracle客户端库和Oracle数据库之间建立连接。 For certified configurations see Oracle Support's Doc ID 207303.1. 有关认证的配置,请参见Oracle支持的Doc ID 207303.1。 In summary, Oracle Client 12.2 can connect to Oracle Database 11.2 or greater. 总之,Oracle Client 12.2可以连接到Oracle Database 11.2或更高版本。 Oracle Client 12.1 can connect to Oracle Database 10.2 or greater. Oracle Client 12.1可以连接到Oracle Database 10.2或更高版本。 Oracle Client 11.2 can connect to Oracle Database 9.2 or greater. Oracle Client 11.2可以连接到Oracle Database 9.2或更高版本。 The technical restrictions on creating connections may be more flexible. 创建连接的技术限制可能更加灵活。 For example Oracle Client 12.2 can successfully connect to Oracle Database 10.2. 例如,Oracle Client 12.2可以成功连接到Oracle Database 10.2。

Your quick solution is to install the 12.1 or 12.2 Instant Client RPMs. 您的快速解决方案是安装12.1或12.2 Instant Client RPM。 (The longer solution is to upgrade your DB to a supported release!) (更长的解决方案是将数据库升级到受支持的版本!)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 with-as 技术是否适用于 cx_Oracle? - Does the with-as technique work with cx_Oracle? cx_oracle和oracle 7? - cx_oracle and oracle 7? 在cx_Oracle / sqlalchemy中反映数据库表 - reflecting a database table in cx_Oracle / sqlalchemy cx_Oracle是否支持可滚动游标? - Does cx_Oracle support scrollable cursors? 使用cx_Oracle将长字符串数组(> 4000字节)传递到Oracle(11gR2)存储过程 - Passing an array of long strings ( >4000 bytes) to an Oracle (11gR2) stored procedure using cx_Oracle 为什么pyinstaller生成的cx_oracle应用程序可以在新的CentOS计算机上运行,​​而不能在安装了Oracle客户端的计算机上运行? - Why does pyinstaller generated cx_oracle application work on fresh CentOS machine but not on one with Oracle client installed? 使用 cx_Oracle 连接 oracle 数据库时遇到问题 - Have a trouble to connect oracle database using by cx_Oracle 使用带有 cx_oracle 的 Python 连接到 Oracle 数据库 - Connecting to Oracle Database Using Python with cx_oracle Oracle SQL 子查询在使用 cx_Oracle 执行时似乎不起作用 - Oracle SQL Subquery seems to not work when ececuted with cx_Oracle 在Jupyter中使用cx_Oracle连接到本地Oracle数据库时出错 - Error connecting to local oracle database with cx_Oracle in Jupyter
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM