简体   繁体   中英

Node.js server hosting with oracledb

I am developing using mac

I want to create a node.js server to access the oracle database from the iPhone app.

The localhost has successfully accessed the Oracle database via the node.js server.

However, I was faced with an error in hosting it. (Hosting used firebase hosting.)

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". 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

To use oracledb in node.js, oracle instantclient must have a symbolic linked(ln-s)
**On Windows, environment variables must be set.

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? 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

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