Legacy Oracle Database Driver (node-oracle)

0.4.1 · abandoned · verified Wed Apr 22

The `oracle` package provides an obsolete Node.js driver for Oracle databases. It reached version 0.4.1 before being officially abandoned by its maintainer. This driver is not actively developed, receives no updates, and is not recommended for new projects or existing applications. The project explicitly states it is no longer maintained and directs users to the official `node-oracledb` package, developed and supported by Oracle, as its direct and modern replacement. There is no defined release cadence, and its key differentiator is its historical role as an early community-contributed Oracle driver before Oracle released its own official solution.

Common errors

Warnings

Install

Imports

Quickstart

This quickstart explicitly states the package is abandoned and directs users to the recommended `node-oracledb` package for any Oracle database interaction.

/*
This quickstart is intentionally left blank.

The `oracle` package is abandoned and not maintained.
It is strongly advised against using this package in any project.

Please use the officially supported `oracledb` package instead:

npm install oracledb

Refer to the `node-oracledb` documentation for its quickstart:
https://github.com/oracle/node-oracledb
*/

// Placeholder to fulfill quickstart requirements, do NOT run this code.
// It is likely to fail with modern Node.js versions or require specific Oracle client setups.
// const oracle = require('oracle');
// oracle.connect(
//   { hostname: 'localhost', port: 1521, database: 'ORCL', user: 'hr', password: 'hr' },
//   function (err, connection) {
//     if (err) {
//       console.error("Error connecting to Oracle database:", err);
//       return;
//     }
//     console.log("Successfully connected to Oracle!");
//     connection.execute("SELECT 'Hello World' FROM DUAL", [], function (err, results) {
//       if (err) {
//         console.error("Error executing query:", err);
//       }
//       console.log("Query result:", results);
//       connection.close();
//     });
//   }
// );

view raw JSON →