filmov
tv
How to connect Node.js 14 LTS to Oracle Database 12c EE using node-oracledb

Показать описание
1. First check nodejs is available in commandline (node --version, npm --version).
2. Go to Source code directory in commandline and run "npm install oracledb".
Below is the program to connect NodeJS to Oracle Database 12c EE orcl instance.
IMPORTANT NOTE on SOURCE CODE: only source code that are acceptable by the youtube description box will be displayed.
In this program I have replaced the angled brackets with > or <. once you copy the source code to editor replace it with greater than or less than symbols respectively.
#########################SOURCE CODE STARTS HERE##############################
const oracledb = require('oracledb');
async function run() {
user : "C##Scott",
password : "tiger",
connectString : "localhost:1521/ORCL" // [hostname]:[port]/[DB service name]
});
let query = 'SELECT * from person';
if(err) throw err;
});
}
run();
#########################END OF SOURCE CODE##############################
#nodejs #nodejs14 #nodejstutorial #nodejsoracle #oraclenodejs #nodejsdatabase #nodeoracledb #12c #oracle
2. Go to Source code directory in commandline and run "npm install oracledb".
Below is the program to connect NodeJS to Oracle Database 12c EE orcl instance.
IMPORTANT NOTE on SOURCE CODE: only source code that are acceptable by the youtube description box will be displayed.
In this program I have replaced the angled brackets with > or <. once you copy the source code to editor replace it with greater than or less than symbols respectively.
#########################SOURCE CODE STARTS HERE##############################
const oracledb = require('oracledb');
async function run() {
user : "C##Scott",
password : "tiger",
connectString : "localhost:1521/ORCL" // [hostname]:[port]/[DB service name]
});
let query = 'SELECT * from person';
if(err) throw err;
});
}
run();
#########################END OF SOURCE CODE##############################
#nodejs #nodejs14 #nodejstutorial #nodejsoracle #oraclenodejs #nodejsdatabase #nodeoracledb #12c #oracle