2 Replies Latest reply on Nov 26, 2019 3:23 AM by cj

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




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

      Followed the instructions listed here



      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


          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