Ayyappa A
Ayyappa A

Reputation: 667

Oracle connectivity with NodeJS and ExpressJS

I am trying to connect oracle with NodeJS. Steps followed as below. Pre - requisites there is no client installed except NodeJS(0.10.25) and npm(1.3.24).

In my ExpressJS Project:

Expected output is to connect the DB.

FYI: DB Instance is running fine.

Query:

Please let me know any missing or Installation required or any node modules required or code changes. I have Googled but in vain. Haven't found proper document for this error.

Upvotes: 2

Views: 13693

Answers (2)

Matt M.
Matt M.

Reputation: 114

Oracle themselves have just released an Oracle driver for node.js: https://blogs.oracle.com/opal/entry/introducing_node_oracledb_a_node

Looks promising.

Upvotes: 1

Andrei Karpuszonak
Andrei Karpuszonak

Reputation: 9034

In your example, you use db-oracle module, I would recommend to use node-oracle module instead, as it is more popular/better maintained.

To connect to Oracle DB from Node, you have to follow the instructions on the page mentioned above.

Upvotes: 0

Related Questions