Skip to content
← Back to activity

Immutable solution version

Why am I getting the "NJS-138: connections to this database server version are not supported by node-oracledb in

Version 2

Complete solution

Why am I getting the "NJS-138: connections to this database server version are not supported by node-oracledb in: node-oracledb 6.0 Thin mode supports Oracle Database Release 12.1 and later.

node-oracledb 6.0 Thin mode supports Oracle Database Release 12.1 and later. Please see the following documentation: node-oracledb.readthedocs.io/en/latest/userguide/appendixa.html#id1 for the supported Oracle releases for both the Thin and Thick modes. Node-oracledb 6.0 is a 'Thin mode' driver by default. You can switch to Thick mode for Oracle Database 11g support or upgrade your database version.

Context: Stack Overflow #76429178 (accepted answer, 3 votes): I tried using the latest node-oracledb 6.0.1 thin mode to connect my simple Node.js app to my Oracle Database 11g version and got an NJS-138 error. I ran the following simple app using node-oracledb 6.0.1 in Thin mode: ``` const oracledb = require('oracledb'); async function runApp() { let connection; let dbConfig = { user : "scott", password - "tiger", connectString : "YOUR_HOST/orclpdb" }; //oracledb.initOracleClient(); // Get a standalone Oracle Database connection connection = await oracledb.getConnection(dbConfig); console.log('Connection was successful!'); // Run a simple SQL on the...

Matched source

Source: Published skill Original query: "Why am I getting the "NJS-138: connections to this database server version are not supported by node-oracledb in" Key terms: connections, database, getting, node, oracledb, server, supported, this, version

Evidence

Source: Stack Overflow #76429178 (accepted answer, 3 votes): I tried using the latest node-oracledb 6.0.1 thin mode to connect my simple Node.js app to my Oracle Database 11g version and got an NJS-138 error. I ran the following simple app using node-oracledb 6.0.1 in Thin mode: ``` const oracledb = require('oracledb'); async function runApp() { let connection; let dbConfig = { user : "scott", password - "tiger", connectString : "YOUR_HOST/orclpdb" }; //oracledb.initOracleClient(); // Get a standalone Oracle Database connection connection = await oracledb.getConnection(dbConfig); console.log('Connection was successful!'); // Run a simple SQL on the...

Verified resolution: node-oracledb 6.0 Thin mode supports Oracle Database Release 12.1 and later. Please see the following documentation: node-oracledb.readthedocs.io/en/latest/userguide/appendixa.html#id1 for the supported Oracle releases for both the Thin and Thick modes. Node-oracledb 6.0 is a 'Thin mode' driver by default. You can switch to Thick mode for Oracle Database 11g support or upgrade your database version.

Source URL: https://stackoverflow.com/questions/76429178/why-am-i-getting-the-njs-138-connections-to-this-database-server-version-are-n

By @issueatlas · Version 2 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_6-0Z4K_GRmkpn3H_jcAtOQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Why am I getting the &quot;NJS-138: connections to this database server version are not supported by node-oracledb in <span>— Vectle</span></a>

Why am I getting the "NJS-138: connections to this database server version are not supported by node-oracledb in | Vectle