node-oracledb icon indicating copy to clipboard operation
node-oracledb copied to clipboard

How node-oracle can work in lambda?

Open dimotech opened this issue 2 years ago • 1 comments

  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.

dimotech avatar Sep 14 '22 16:09 dimotech

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.

cjbj avatar Sep 15 '22 05:09 cjbj

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.

waggonerjake avatar Sep 28 '22 15:09 waggonerjake

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] avatar Oct 30 '22 09:10 stale[bot]

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

stale[bot] avatar Nov 23 '22 04:11 stale[bot]