Skip to content

Commit

Permalink
corrections to bootstrap for node-oracledb section
Browse files Browse the repository at this point in the history
  • Loading branch information
bchr02 authored Jun 27, 2016
1 parent 40d402c commit 2a79d35
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ instantclient-basic-nt-12.1.0.2.0.zip deleted
```

## Bootstrap for node-oracledb
First, using the above instructions, install the instantclient folder to the root folder of your program. Now just add the following lines to your app:
First, using the above instructions, install the instantclient folder to the root folder of your program. Now just add the following lines to your app in the order provided:
```javascript
var path = require('path');
process.env['PATH'] = path.join(__dirname, '../instantclient') + ';' + process.env['PATH'];
process.env['PATH'] = path.join(__dirname, '/instantclient') + ';' + process.env['PATH'];
var oracledb = require('oracledb');
```
The above will work to ensure that the instantclient folder appears first in the PATH environment variable every time node-oracledb is being used, ***however, you must set the OCI_LIB_DIR and OCI_INC_DIR environment variables manually in your environment when first installing node-oracledb. This is because they are needed for the compiling of the module.***
The above will work to ensure that the instantclient folder appears first in the PATH environment variable every time node-oracledb is being used, ***however, you must set the OCI_LIB_DIR and OCI_INC_DIR environment variables manually in your environment when first installing node-oracledb. This is because they are needed for the compiling of the module.***

0 comments on commit 2a79d35

Please sign in to comment.