简体   繁体   中英

cx_Oracle and Lambda Layer error - aws lambda cannot locate a 64-bit oracle client library

I created the lambda layer using cx_oracle and oracle-instantclient. Created the lambda layer and am able import the cx_oracle but it is always gives me an error like 64-bit oracle client library is missing. below is my folder structure

在此处输入图像描述

There could be several root causes of this issue.

  1. Check the file structure in the AWS console. You can also try to debug the lambda by listing the files from the layer you use. Try to check the correctness of the path with - Including library dependencies in a layer .
  2. For cx_Oracle you also need to set an env var LD_LIBRARY_PATH pointing to the place where the libs are placed. You can update it on the lambda page in AWS console. As the layer is in /opt folder provide the path where the module with libs is installed.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM