【问题标题】:Installing cx_Oracle on AWS Glue在 AWS Glue 上安装 cx_Oracle
【发布时间】:2021-10-18 00:31:32
【问题描述】:

在添加 cx_Oracle 作为附加 python 模块或作为轮子时,它总是显示以下错误;

DatabaseError:(cx_Oracle.DatabaseError) DPI-1047:找不到 64 位 Oracle 客户端库:“libclntsh.so:无法打开共享对象文件:没有这样的文件或目录”。请参阅https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html 寻求帮助

我尝试编辑 libclntsh.so 的 rpath,添加 ojdbc8.jar 驱动程序,但无济于事。

请不要标记为重复。我看过其他答案,但都不满意。

【问题讨论】:

    标签: sqlalchemy psycopg2 aws-glue


    【解决方案1】:

    我猜您已经安装了即时客户端库。那么你可能错过了这一步:

    sudo sh -c "echo /opt/oracle/instantclient_21_1 > /etc/ld.so.conf.d/oracle-instantclient.conf"

    sudo ldconfig

    这假设您在 /opt/oracle/instantclient_21_1 目录中安装了 .so 库

    【讨论】:

      猜你喜欢
      • 2020-11-24
      • 2020-07-07
      • 1970-01-01
      • 2013-12-06
      • 1970-01-01
      • 2017-06-08
      • 2017-09-10
      • 1970-01-01
      • 2016-01-20
      相关资源
      最近更新 更多