简体   繁体   English

使用 oracledb 托管 Node.js 服务器

[英]Node.js server hosting with oracledb

I am developing using mac我正在使用 mac 开发

I want to create a node.js server to access the oracle database from the iPhone app.我想创建一个 node.js 服务器来从 iPhone 应用程序访问 oracle 数据库。

The localhost has successfully accessed the Oracle database via the node.js server.本地主机已通过 node.js 服务器成功访问 Oracle 数据库。

However, I was faced with an error in hosting it.但是,我在托管它时遇到了错误。 (Hosting used firebase hosting.) (托管使用 Firebase 托管。)

Error: Error occurred while parsing your function triggers.错误:解析函数触发器时出错。 Error: NJS-045: cannot load the oracledb add-on binary for Node.js 9.8.0 (darwin, x64) Node.js require() error was: DPI-1047: 64-bit Oracle Client library cannot be loaded: "dlopen(libclntsh.dylib, 1): image not found".错误:NJS-045:无法加载 Node.js 9.8.0 (darwin, x64) 的 oracledb 附加二进制文件 Node.js require() 错误是:DPI-1047:无法加载 64 位 Oracle 客户端库:“ dlopen(libclntsh.dylib, 1): 找不到图像”。 See https://oracle.github.io/odpi/doc/installation.html#macos for help Node.js require() mapped to /Users/jeongyeon/Atom/BestianServer/functions/node_modules/oracledb/build/Release/oracledb.node Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html请参阅https://oracle.github.io/odpi/doc/installation.html#macos获取帮助 Node.js require() 映射到 /Users/jeongyeon/Atom/BestianServer/functions/node_modules/oracledb/build/Release/oracledb .node Node-oracledb安装说明: https ://oracle.github.io/node-oracledb/INSTALL.html

To use oracledb in node.js, oracle instantclient must have a symbolic linked(ln-s)要在 node.js 中使用 oracledb,oracle 即时客户端必须有一个符号链接(ln-s)
**On Windows, environment variables must be set. **在 Windows 上,必须设置环境变量。

I think that when hosted I get an error because I do not recognize the symbolic link or environment variable setting.我认为托管时出现错误,因为我无法识别符号链接或环境变量设置。

Has anyone succeeded in hosting oracledb on nodejs?有没有人成功地在 nodejs 上托管 oracledb? I would appreciate a little help.我会很感激一点帮助。

Thank you.谢谢你。

You need to set the environment variables for it.您需要为其设置环境变量。

https://github.com/oracle/node-oracledb/blob/master/INSTALL.md https://github.com/oracle/node-oracledb/blob/master/INSTALL.md

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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