estou tentando me abrir uma conexão pool utilizando o modulo oracledb mas recebo uma exception ao tentar criar a pool
import OracleDB from 'oracledb'
import dotenv from 'dotenv'
OracleDB.outFormat = OracleDB.OUT_FORMAT_OBJECT
dotenv.config()
export class BaseConnection {
public connection: OracleDB.Connection
public connectionPool: OracleDB.Pool
public async openConnection (): Promise<void> {
try {
this.connectionPool = await OracleDB.createPool({
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
connectString: process.env.DB_CONNECTION_STRING
})
this.connection = await this.connectionPool.getConnection()
console.log('Banco de dados conectado com sucesso')
} catch (error) {
console.log(error)
}
}
}
erro
{ Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "Não foi possível encontrar o módulo especificado". See https://oracle.github.io/odpi/doc/installation.html#windows for help
Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html
You must have 64-bit Oracle client libraries in your PATH environment variable.
If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from
http://www.oracle.com/technetwork/topics/winx64soft-089540.html
A Microsoft Visual Studio Redistributable suitable for your Oracle client library version must be available.
at OracleDb.createPool (C:\Proc-evandro\ph\node_modules\oracledb\lib\oracledb.js:180:8)