Skip to Main Content

Programming Languages & Frameworks

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

user10124406Nov 11 2019 — edited Nov 25 2019

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

```

[root@stageapptier-eolinux77 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

Comments
Post Details
Added on Nov 11 2019
2 comments
866 views