Forum Stats

  • 3,757,174 Users
  • 2,251,204 Discussions
  • 7,869,750 Comments

Discussions

Is there a Node js guide on how to connect to Oracle autonomous DB ?

user10124406
user10124406 Member Posts: 2
edited Nov 25, 2019 10:23PM in Node.js

Hello,

I am trying to establish a connection to an Oracle Cloud Autonomous DB connection.

Followed the instructions listed here

https://blogs.oracle.com/developers/connecting-to-autonomous-transaction-processing-database-from-a-nodejs,-python-or-ph…

But I feel some steps are missed.

Please let me know if there are detailed instructions on how to configure Node JS with oracle db .

the platform is Linux 7.

Currently I am running into

```

[[email protected] temp]# node testNode1.js

internal/modules/cjs/loader.js:638

    throw err;

    ^

Error: Cannot find module 'oracledb'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)

    at Function.Module._load (internal/modules/cjs/loader.js:562:25)

    at Module.require (internal/modules/cjs/loader.js:692:17)

    at require (internal/modules/cjs/helpers.js:25:18)

    at Object.<anonymous> (/root/temp/testNode1.js:3:18)

    at Module._compile (internal/modules/cjs/loader.js:778:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)

    at Module.load (internal/modules/cjs/loader.js:653:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

```

Note post install I dont find oracledb.js present in the $NODE_PATH

Thank you

Chs

Answers