错误:ORA-32102:无效的 OCI 句柄
var oracle = require('oracle');
oracle.connect({ "hostname": "hostname", "user": "user", "password": "password" },
function(err, connection) {
if(err){ console.log("Connect err:" + err); }
if(connection){ console.log("Connection:" + connection); }
console.log(connection);
console.log("........");
// selecting rows
connection.execute("SELECT * FROM AUTOLOAN_MASTER WHERE RELIGION = :1", ['R'],
function(err, results) {
if (err) {
console.log('Failed to query table in Oracle: '+ err);
req.results = null;
}
console.log(req);
console.log(req.results);
});
connection.close();
});
Oracle 软件包已安装在 ubuntu 中。出现以下错误:错误:ORA-32102:无效的 OCI 句柄