Skip to content

Commit 2d7e8c3

Browse files
committed
Update Oracle Client paths with latest versions
1 parent 2f64b40 commit 2d7e8c3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

examples/example.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,14 @@ process.env.ORA_SDTZ = 'UTC';
3535
const oracledb = require('oracledb');
3636
const dbConfig = require('./dbconfig.js');
3737

38-
// On Windows and macOS, you can specify the directory containing your Oracle
39-
// Client Libraries. If this is not done, then a standard search heuristic is
40-
// used, see the node-oracledb documentation.
41-
// oracledb.initOracleClient({ libDir: 'C:\\instantclient_19_3' }); // Windows
42-
// oracledb.initOracleClient({ libDir: '/Users/your_username/instantclient_19_3' }); // macOS
38+
// On Windows and macOS, you can specify the directory containing the Oracle
39+
// Client Libraries at runtime, or before Node.js starts. On other platforms
40+
// the system library search path must always be set before Node.js is started.
41+
// See the node-oracledb installation documentation.
42+
// If the search path is not correct, you will get a DPI-1047 error.
43+
//
44+
// oracledb.initOracleClient({ libDir: 'C:\\instantclient_19_8' }); // Windows
45+
// oracledb.initOracleClient({ libDir: '/Users/your_username/Downloads/instantclient_19_8' }); // macOS
4346

4447
async function run() {
4548
let connection;

0 commit comments

Comments
 (0)