如何在 AWS Lambda 中设置环境变量或使用即时客户端库
How to set env variable or use instant client library in AWS Lambda
当使用连接到 Oracle RDS 的 Node JS 函数时,出现错误:
DPI-1047: 64-bit Oracle Client library cannot be loaded: "libaio.so.1: cannot open shared object file: No such file or directory
我遵循这个部署包结构:
instant_client_12.1
node_modules
index.js
libaio.so.1
是否在您部署到 Lambda 的包的 /lib 目录中?
至于 Lambda 的 Env 变量,您可以在控制台中进行设置:
当使用连接到 Oracle RDS 的 Node JS 函数时,出现错误:
DPI-1047: 64-bit Oracle Client library cannot be loaded: "libaio.so.1: cannot open shared object file: No such file or directory
我遵循这个部署包结构:
instant_client_12.1
node_modules
index.js
libaio.so.1
是否在您部署到 Lambda 的包的 /lib 目录中?
至于 Lambda 的 Env 变量,您可以在控制台中进行设置: