首页 > 解决方案 > AWS Glue Python Shell 与 Oracle cx_Oracle 的连接问题

问题描述

尝试在 AWS Glue 上使用 Python shell 脚本连接到 Oracle 数据库时,出现以下错误。

回溯(最后一次调用):文件“/tmp/glue-python-scripts-vr6vd3y0/patronage_report.py”,第 120 行,在 check_on_demand_data 文件“/tmp/glue-python-scripts-vr6vd3y0/patronage_report.py”,行436,在 db_oracle_connection cx_Oracle.DatabaseError: DPI-1047: 找不到 64 位 Oracle 客户端库:“libclntsh.so:无法打开共享对象文件:没有这样的文件或目录”

我已将以下库放在 s3 存储桶中,并在作业属性中指定了路径,但仍然是同样的问题。

cx_Oracle-8.1.0-cp36-cp36m-manylinux1_x86_64.whl, libclntsh.so

标签: python-3.xaws-gluecx-oracle

解决方案


推荐阅读