Oracle DB を nodejs に接続しようとしましたが、次のようなメッセージが表示されました。
ORA-12560: TNS: プロトコル・アダプタ・エラー
これは私のコードです:
oracledb.getConnection(
{
user:"user",
password:"password",
ConnectString:"IP:PORT/instance_name"
},
function(err, connection) {
if (err) {
console.error(err.message);
return;
}
console.log('Connection was successful!');
connection.close(
function(err) {
if (err) {
console.error(err.message);
return;
}
});
});