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

To configure the yum repositories shown above on your system, install the oracle-nodejs-release-el7 or oracle-nodejs-release-el6 RPM. After installing this RPM, the default enabled repository is that for the latest available Node.js release. To configure the Node.js and the Oracle Instant Client repository:

$ sudo yum install -y oracle-nodejs-release-el7 oracle-release-el7


If yum is unable to find any of the packages mentioned below, follow the instructions on our Getting Started page to ensure your system is set up correctly to work with our release packages.

Installing Node.js

To install the latest 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.

About Oracle Instant Client

node-oracledb depends on Oracle Instant Client. Yum configurations for Oracle Instant Client 18.3 RPMs are delivered via the oracle-release-el7 and oracle-release-el6 RPMs. Assuming you have installed the Oracle release package your Oracle Linux release, the Oracle Instant CLient be installed as a dependency. As of release 3.0, node-oracledb is built with Oracle Client 18.3, which connects to Oracle Database 11.2 and greater. Older releases of Oracle Instant Client are available on OTN.


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-node<node release number>
               

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

node-oracledb-node10
                

Check the repositories listed under Available Releases to see what RPMs are available.

$ sudo yum install node-oracledb-node10

Finally, set up the environment so that node-oracledb can find Oracle Instant Client libraries:

$ sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
$ sudo ldconfig


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

Links

Community Support

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

Contact Us

software.hardware.complete
Subscribe | Careers | Contact Us | Legal Notices | Terms of Use | Your Privacy Rights