首页 > 数据库技术 > 详细

【转】Python访问oracle数据库,DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found"

时间:2019-08-21 12:40:34      阅读:1405      评论:0      收藏:0      [点我收藏+]

 

使用python连接Oracle,出现如下错误:

DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found". See https://oracle.github.io/odpi/doc/installation.html#windows for help

 

解决方案:
**1、**需要安装Oracle Instant Client(安装与服务器端Oracle版本相近的版本)
安装包下载地址:https://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html
**2、**解压之后,配置系统环境。
这是个栗子:
解压后路径:C:\software\oracle\instantclient_12_2
将此路径添加到系统的Path中
**3、**在解压路径中添加tnsnames.ora文件,文件配置如下:
这是个栗子:

orcl =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = IP地址)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = 服务名)
    )
  )

over

 

转自:https://blog.csdn.net/u014487025/article/details/88538217

 

亲测可行,已成功!

 

谢谢

 

【转】Python访问oracle数据库,DPI-1047: Cannot locate a 64-bit Oracle Client library: "The specified module could not be found"

原文:https://www.cnblogs.com/zhzhang/p/11387641.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!