node-red-contrib-oracledb-mod provides robust and modern Node-RED nodes for seamless interaction with Oracle Database. It offers nodes for connecting to Oracle databases, executing SQL/PLSQL queries, and handling stored procedures/functions. Key features include resilient connection pooling to manage network disconnects and database restarts, support for DML operations (SELECT, INSERT, UPDATE, DELETE), and advanced data binding via `msg.bindVars`. The package currently stands at version 0.7.6, with releases addressing critical bugs and enhancing usability. It differentiates itself through its focus on stability, comprehensive Oracle feature support, and ease of integration into Node-RED flows. This package relies on the `oracledb` Node.js driver internally.
npm install node-red-contrib-oracledb-modNo compatibility data collected yet for this library.
This Node-RED flow demonstrates a basic `SELECT` query using `node-red-contrib-oracledb-mod`. It configures an Oracle connection (`oracle-server`) and uses an `oracledb` node to execute a parameterized query, sending the results to a debug tab. The Oracle Instant Client path and database credentials should be configured via environment variables or directly in the configuration node.
Upgrade to v0.7.6 or newer. Ensure your PL/SQL blocks are correctly terminated with semicolons; the node will now handle them properly.
Upgrade to v0.7.5 or newer. After upgrading, you may need to re-save affected `oracle-server` configuration nodes to ensure properties are stored correctly as numbers.
Follow the installation steps for Oracle Instant Client: download Basic or Basic Light, unzip to a permanent location, and set the appropriate environment variable (LD_LIBRARY_PATH, PATH, DYLD_LIBRARY_PATH). Crucially, also configure the 'Instant Client Path' field in your `oracle-server` configuration node in Node-RED.
Upgrade to v0.7.3 or newer. For affected versions, manually edit and re-save your `oracle-server` configuration nodes to resolve validation errors. In some cases, a command line `npm install node-red-contrib-oracledb-mod@latest` and Node-RED restart was required.
Review existing `INSERT` or `UPDATE` flows when upgrading to v0.7.4+. If using named binds, ensure `msg.payload` is an object where keys match bind names. If using positional binds, `msg.payload` should remain an array.
Upgrade `node-red-contrib-oracledb-mod` to version 0.7.6 or newer. The node now intelligently preserves semicolons for PL/SQL blocks.
Upgrade `node-red-contrib-oracledb-mod` to version 0.7.5 or newer. After upgrading, open and re-save any affected `oracle-server` configuration nodes in the Node-RED editor to ensure properties are correctly persisted as numbers.
Upgrade `node-red-contrib-oracledb-mod` to version 0.7.3 or newer. If already affected, open and re-save the `oracle-server` configuration node(s) in the Node-RED editor. A manual `npm install node-red-contrib-oracledb-mod@latest` in your Node-RED user directory followed by a restart of Node-RED might be necessary.