Connect to Oracle DB

suggest change

A very easy way to connect to an ORACLE database is by using oracledb module. This module handles the connection between your Node.js app and Oracle server. You can install it like any other module:

npm install oracledb

Now you have to create an ORACLE connection, which you can later query.

const oracledb = require('oracledb');

oracledb.getConnection(
  {
    user          : "oli",
    password      : "password",
    connectString : "ORACLE_DEV_DB_TNS_NAME"
  },
  connExecute
);

The connectString “ORACLE_DEV_DB_TNA_NAME” may live in a tnsnames.org file in the same directory or where your oracle instant client is installed.

If you don’t have any oracle instant client installed on you development machine you may follow the instant client installation guide for your operating system.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Oracle DB:
* Connect to Oracle DB

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
64 ES6
67 Redis
69 MongoDB
77 Oracle DB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require