i want to know is there any way to connect node js with oracle db.
I am trying to connect nodejs with oracle db by using node module require('oracledb') but its not working as expected.
var oracledb = require('oracledb');
oracledb.getConnection({
user : "*******",
password : "*******",
connectString : "192.168.177.106/mymmsrev-local"
},function(err, connection){
if (err) {
console.error(err);
return;
}
});
Getting below Error:
D:\projects\ImportExport\node_modules\oracledb\lib\oracledb.js:65
throw new Error(nodbUtil.getErrorMessage('NJS-045', nodeInfo));
^
Error: NJS-045: cannot load the oracledb add-on binary for Node.js 8.9.4 (win32, x64)
Node.js require() error was:
DPI-1047: 64-bit Oracle Client library cannot be loaded: "The specified module could not be found". See https://oracle.github.io/odpi/doc/installation.html#windows for help
Node.js require() mapped to D:\projects\ImportExport\node_modules\oracledb\build\Release\oracledb.node
Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html
You must have 64-bit Oracle client libraries in your PATH environment variable.
If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from
http://www.oracle.com/technetwork/topics/winx64soft-089540.html
A Microsoft Visual Studio Redistributable suitable for your Oracle client library version must be available.