Skip to content

Instantly share code, notes, and snippets.

View cjbj's full-sized avatar

Christopher Jones cjbj

View GitHub Profile
@cjbj
cjbj / issue980c.js
Last active November 20, 2018 00:30
'use strict';
/*
In CDB: (insecure, not for production)
alter system set remote_os_authent=true scope=spfile;
In PDB create a user:
create user ops$oracle identified externally;
grant connect,resource to ops$oracle;
@cjbj
cjbj / oracledb.js.diff
Last active November 22, 2017 21:30
improve require() failure messages
diff --git a/lib/oracledb.js b/lib/oracledb.js
index 10025481..869a6fb2 100644
--- a/lib/oracledb.js
+++ b/lib/oracledb.js
@@ -41,28 +41,32 @@ var binaryDebugPath = '../build/Debug/oracledb.node';
try {
oracledbCLib = require(binaryReleasePath);
} catch (err) {
- if (err.code !== 'MODULE_NOT_FOUND') {
- throw err;