Node-oracledb: Set node-oracledb working with a custom environement variable ?

Created on 1 Dec 2017  路  3Comments  路  Source: oracle/node-oracledb

I am willing to create an Electron application for Windows working with oracledb. But the target computer already has an instant_client installed for another Oracle application, so I can't change the Path variable.

My question is to know if it is possible to make my application to listen on a custom environement variable so I don't have to touch the Path environnement variable, and if it's possible, what do i need to do.

question

All 3 comments

Just modify path for your app environment by adding the following line to the very top of your main file process.env['PATH'] = 'path to instantclient;' + process.env['PATH'];

you can then bundle instant client within your app

It looks like to work perfectly. Thank you very much !

Was this page helpful?
0 / 5 - 0 ratings