1
- # Installing node-oracledb
1
+ Installing node-oracledb
2
2
3
3
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.*
4
4
@@ -131,8 +131,8 @@ Node-oracledb will automatically be configured to use the highest version
131
131
Instant Client RPMs installed. To use a different version, follow the
132
132
instructions to
133
133
[ install on Linux with Instant Client ZIP files] ( #instzip ) instead,
134
- setting ` OCI_LIB_DIR ` and ` OCI_INC_DIR ` to the appropriate
135
- directories.
134
+ setting the install-time variables ` OCI_LIB_DIR ` and ` OCI_INC_DIR ` to
135
+ the appropriate directories.
136
136
137
137
If you have other Oracle software installed on the same machine, and
138
138
the runtime linker is configured to find this other software via
@@ -224,6 +224,8 @@ export OCI_LIB_DIR=/opt/oracle/instantclient_12_1
224
224
export OCI_INC_DIR=/opt/oracle/instantclient_12_1/sdk/include
225
225
```
226
226
227
+ These variables are only needed during installation.
228
+
227
229
If Instant Client is in ` /opt/oracle/instantclient ` and you have no
228
230
other Oracle software installed, then these variables are not
229
231
required. See
@@ -310,6 +312,8 @@ export OCI_LIB_DIR=$ORACLE_HOME/lib
310
312
export OCI_INC_DIR=$ORACLE_HOME/rdbms/public
311
313
```
312
314
315
+ These variables are only needed during installation.
316
+
313
317
If you are behind a firewall, you may need to set your proxy, for
314
318
example:
315
319
@@ -412,8 +416,10 @@ export OCI_LIB_DIR=/whereever/instantclient
412
416
export OCI_INC_DIR=/whereever/instantclient/sdk/include
413
417
```
414
418
419
+ These variables are only needed during installation.
420
+
415
421
If Instant Client is in ` /opt/oracle/instantclient ` , then these
416
- variables are not needed.
422
+ variables are not needed at all .
417
423
418
424
If you are behind a firewall, you may need to set your proxy, for
419
425
example:
@@ -516,10 +522,12 @@ restart the command shell.
516
522
Tell the installer where to locate the Instant Client:
517
523
518
524
```
519
- set OCI_LIB_DIR=C:\oracle \instantclient_12_1\sdk\lib\msvc
520
- set OCI_INC_DIR=C:\oracle \instantclient_12_1\sdk\include
525
+ set OCI_LIB_DIR=C:\wherever \instantclient_12_1\sdk\lib\msvc
526
+ set OCI_INC_DIR=C:\wherever \instantclient_12_1\sdk\include
521
527
```
522
528
529
+ These variables are only needed during installation.
530
+
523
531
If Instant Client is in ` C:\oracle\instantclient ` (this should
524
532
contain, amongst others, the file ` C:\oracle\instantclient\oci.dll `
525
533
and directory ` C:\oracle\instantclient\sdk ` ), then these variables are
@@ -607,6 +615,7 @@ If you want to use Instant Client RPMs without using rpath, then set
607
615
export OCI_LIB_DIR=/usr/lib/oracle/12.1/client64/lib
608
616
export OCI_INC_DIR=/usr/include/oracle/12.1/client64
609
617
npm install oracledb
618
+ unset OCI_LIB_DIR OCI_INC_DIR
610
619
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib:$LD_LIBRARY_PATH
611
620
node example.js
612
621
```
@@ -628,5 +637,6 @@ to any value. For example:
628
637
export OCI_LIB_DIR=/opt/oracle/instantclient
629
638
export OCI_INC_DIR=/opt/oracle/instantclient/sdk/include
630
639
FORCE_RPATH=1 npm install oracledb
640
+ unset OCI_LIB_DIR OCI_INC_DIR
631
641
node example.js
632
642
```
0 commit comments