Node.js for Oracle Linux

Recent community releases of Node.js built by Oracle

  • Home > 
  • Node.js for Oracle Linux

About Node.js for Oracle Linux

The Node.js repositories contain the latest builds of stable Node.js releases from the community, including node-oracledb. They are provided without support.

Available Node.js Releases

Node.js Version Oracle Linux Release Repository Name
v10.x Oracle Linux 7 ol7_developer_nodejs10
v8.x Oracle Linux 7 ol7_developer_nodejs8
v6.x Oracle Linux 7 ol7_developer_nodejs6
v10.x Oracle Linux 6 ol6_developer_nodejs10
v8.x Oracle Linux 6 ol6_developer_nodejs8
v6.x Oracle Linux 6 ol6_developer_nodejs6

Enabling Required Repositories

The installation instructions below require different Oracle Linux yum server repositories to be enabled, depending on what you are installing. For example, to enable the ol7_developer_nodejs10 repository:

$ sudo yum install -y yum-utils
$ sudo yum-config-manager --enable ol7_developer_nodejs10

If your yum configuration doesn't have the required repository, grab the latest Oracle Linux yum configuration by running the these commands as the root user:

On Oracle Linux 7

# cd /etc/yum.repos.d
# mv public-yum-ol7.repo public-yum-ol7.repo.bak
# wget

On Oracle Linux 6

# cd /etc/yum.repos.d
# mv public-yum-ol6.repo public-yum-ol6.repo.bak
# wget

Installing Node.js

To install Node.js from this repository, ensure you have the latest Oracle Linux Yum server repo file and enable the appropriate repository.

To install Node.js:

$ sudo yum install nodejs

node-oracledb: Connecting Node.js to Oracle Database

The node-oracledb module for Node.js powers high performance Oracle Database applications. Use node-oracledb to connect Node.js 6, 8 and 10 to Oracle Database. The node-oracledb module is open source and maintained by Oracle Corp. It is stable, well documented, and has a comprehensive test suite.

Installing and Configuring Oracle Instant Client

node-oracledb depends on Oracle Instant Client. To install and configure Oracle Instant Client:

Download Install the Instant Client "Basic Package" RPM for Oracle Linux x86-64, available here. Then, install the Instant Client RPM via yum and set up the environment such that cx_Oracle can find Instant Client libraries:

$ sudo yum -y install ./oracle-instantclient12.2-basic-
$ sudo sh -c "echo /usr/lib/oracle/12.2/client64/lib > \
$ sudo ldconfig

Installing node-oracledb

Each Node.js release has its own repository on Oracle Linux yum server and each of those repositories also contains a corresponding RPM for node-oracledb. These RPMs follow this naming scheme:

node-oracledb-<Oracle Client release>-node<node release number>

For example, on Oracle Linux 7, the node-oracledb RPM for Node.js 10 and Oracle Client release 12 is named:


Check the repositories listed under Available Releases to see what RPMs are available. Oracle Client release 12 can connect to Oracle Database 11.2 and greater. To install node-oracledb for Node.js 10 to connect to Oracle Database 11.2 and greater:

$ sudo yum install node-oracledb-12c-node10

Note that node-oracledb only works with Node.js 6.14.4 or higher. Before you use node-oracledb in a Node.js program, set NODE_PATH so that the node-oracledb module can be found:

$ export NODE_PATH=`npm root -g`

Additional Resources


Community Support

For help with Node.js on Oracle Linux, please visit the Node.js space in the Oracle Developer Community.

Contact Us

Subscribe | Careers | Contact Us | Legal Notices | Terms of Use | Your Privacy Rights