oracle / node-oracledb

Oracle Database driver for Node.js maintained by Oracle Corp.
http://oracle.github.io/node-oracledb/
Other
2.24k stars 1.07k forks source link

How node-oracledb can work in AWS Lambda? #1518

Closed dimotech closed 1 year ago

dimotech commented 1 year ago
  1. What versions are you using? 5.4.0
  1. Describe the problem

Could we have an official example to make oracle work in aws lambda? Right now I having some issues on the instant client in lambda layer? And it's telling me "DPI-1047: Cannot locate a 64-bit Oracle Client library: \"/opt/oracle-instant-client/lib/libclntsh.so: file too short\".

  1. Include a runnable Node.js script that shows the problem.
cjbj commented 1 year ago

Hopefully a Lambda user will contribute that doc. Until then, search this repo for previous discussions. Also check out StackOverflow. There are various posts there for node-oracledb or the related cx_Oracle driver that may help.

waggonerjake commented 1 year ago

I've used this to set it up for me: https://jimmdd.medium.com/the-complete-guide-to-use-node-oracledb-on-aws-lambda-using-serverless-framework-and-lambda-layers-52b374d6cfe7

Works pretty well.

stale[bot] commented 1 year ago

This issue has been automatically marked as inactive because it has not been updated recently. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 1 year ago

This issue has been automatically closed because it has not been updated for a month.