I want to connect to oracle on different server with Node.js. I'm getting the "Error while trying to retrieve text for error ORA-01804" error. Although I did a lot of research, I could not reach a positive result. I think a few files are missing. But I don't know what files are missing. What is your suggestion as a solution?
const oracledb = require('oracledb') oracledb.getConnection({ user: 'myUser', password: 'myPass', connectString: '192.168.1.162/PRVS' }, function (err, connection) { if (err) { console.error(err.message); return; } else { connection.execute( 'SELECT * from myTable', [12], { maxRows: 1 }, function (err, result) { if (err) { console.error(err.message) doRelease(connection) return; } console.log(results.rows) doRelease(connection) } ) } connection.close( function (err) { if (err) { console.error(err.message); } } ) } )
1.4m articles
1.4m replys
5 comments
56.9k users