SQL Language (MOSC)

MOSC Banner

Connect Node JS to Oracle Database

First I want to apologize this is not node js forum but I am asking a question in connection with node js I want to connect node js to my Oracle database 19c (19.18.0.0.0) npm version is 9.6.7 and node version is 18.17.0 when I try to connect node js file to db which is accessed via vpn, I am getting following error. I read all documentation but nothing is working. However I successfully connected through SQL Plus.

Error: NJS-515: error in Easy Connect connection string: could not resolve hostname: ERPUAT

  at Object.throwErr (D:\ROCELL\RocellNodeJSDB\node_modules\oracledb\lib\errors.js:592:10)

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center