我应该安装哪个版本的Oracle客户端?

2024-10-03 06:31:11 发布

您现在位置:Python中文网/ 问答频道 /正文

我需要在oracle9i数据库中使用Python运行一些SQL查询,为此我应该安装哪个版本的Oracle。我在Windows10机器上使用的是cxuoracle和python3.7。在

我收到一条错误消息:“cx_Oracle.Database错误:DPI-1047:无法加载64位Oracle客户端库:“


Tags: 版本机器数据库消息客户端sql错误database
2条回答

最新版本的cx®Oracle需要11.2或更高版本的Oracle客户端库。幸运的是,oracleclient11.2将连接到oracledb9.2和更高版本的DBs。从错误消息中,您需要一个64位的版本,您可以使用免费的Oracle Instant Client获得该版本。在

请参阅cx\u Oracle安装手册Oracle Client and Oracle Database Interoperability。在

如果您不熟悉cxu-Oracle,请查看tutorial和{a4}。cx®Oracle运行单个SQL语句;它不运行SQL*Plus脚本(包含多个语句)

您需要oracle客户端11或10。Oracle客户端12无法连接到Oracle 9i。Oracle客户端库必须是32位或64位,与您的Python体系结构相匹配。在

    C:\oracle\instantclient_12_2>.\sqlplus.exe scott/tiger@test

    SQL*Plus: Release 12.2.0.1.0 Production on Thu Feb 7 14:39:09 2019

    Copyright (c) 1982, 2017, Oracle.  All rights reserved.

    ERROR:
    ORA-03134: Connections to this server version are no longer supported.


    Enter user-name:

C:\oracle\instantclient_11_2>.\sqlplus.exe scott/tiger@test

SQL*Plus: Release 11.2.0.4.0 Production on Thu Feb 7 14:39:58 2019

Copyright (c) 1982, 2013, Oracle.  All rights reserved.


Connected to:
Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.8.0 - Production

SQL>

相关问题 更多 >