@@ -32,11 +32,10 @@ The Oracle Database Node.js driver node-oracledb powers high performance Node.js
32
32
The steps below create a Node.js installation for testing. Adjust the
33
33
steps for your environment.
34
34
35
- This node-oracledb release currently works only with Node.js 0.10. It
36
- has been tested with 0.10.35 on 64-bit Oracle Linux and Windows. The
37
- driver can also build in some Mac OS X, 32-bit Linux, 32-bit Windows,
38
- Solaris and AIX environments, but these architectures have not been fully
39
- tested.
35
+ This node-oracledb release has been tested with Node 0.10 and 0.12 on
36
+ 64-bit Oracle Linux and Windows. The driver can also build in some
37
+ Mac OS X, 32-bit Linux, 32-bit Windows, Solaris and AIX environments,
38
+ but these architectures have not been fully tested.
40
39
41
40
### Prerequisites
42
41
@@ -81,20 +80,18 @@ install Oracle Linux yourself, it is free from
81
80
### 2.1 Install Node.js
82
81
83
82
Download the
84
- [ Node.js 0.10 Linux 64-bit binaries] ( http://nodejs.org/download/ ) and
83
+ [ Node.js Linux 64-bit binaries] ( http://nodejs.org/download/ ) and
85
84
extract the file, for example into ` /opt ` :
86
85
87
86
```
88
87
cd /opt
89
- tar -zxf node-v0.10.38 -linux-x64.tar.gz
88
+ tar -zxf node-v0.12.4 -linux-x64.tar.gz
90
89
```
91
90
92
- This node-oracledb release currently works only with Node.js 0.10.
93
-
94
91
Set PATH to include Node.js:
95
92
96
93
```
97
- export PATH=/opt/node-v0.10.38 -linux-x64/bin:$PATH
94
+ export PATH=/opt/node-v0.12.4 -linux-x64/bin:$PATH
98
95
```
99
96
100
97
### 2.2 Install the free Oracle Instant Client RPMs
@@ -120,13 +117,19 @@ Install node-oracledb from the
120
117
npm install oracledb
121
118
```
122
119
123
- Node-oracledb will automatically configured to use the highest version
120
+ Node-oracledb will automatically be configured to use the highest version
124
121
Instant Client RPMs installed. To use a different version, follow the
125
122
instructions to
126
123
[ install on Linux with Instant Client ZIP files] ( #instzip ) instead,
127
124
setting ` OCI_LIB_DIR ` and ` OCI_INC_DIR ` to the appropriate
128
125
directories.
129
126
127
+ If you have other Oracle software installed on the same machine, and
128
+ the runtime linker is configured to find this other software via
129
+ ` LD_LIBRARY_PATH ` or ` ldconfig ` , then update the environment to use
130
+ the Instant Client RPM libraries, for example
131
+ ` /usr/lib/oracle/12.1/client64/lib ` .
132
+
130
133
### 2.4 Run an example program
131
134
132
135
Download the
@@ -154,20 +157,18 @@ node select1.js
154
157
### 3.1 Install Node.js
155
158
156
159
Download the
157
- [ Node.js 0.10 Linux 64-bit binaries] ( http://nodejs.org/download/ ) and
160
+ [ Node.js Linux 64-bit binaries] ( http://nodejs.org/download/ ) and
158
161
extract the file, for example into ` /opt ` :
159
162
160
163
```
161
164
cd /opt
162
- tar -zxf node-v0.10.38 -linux-x64.tar.gz
165
+ tar -zxf node-v0.12.4 -linux-x64.tar.gz
163
166
```
164
167
165
- This node-oracledb release currently works only with Node.js 0.10.
166
-
167
168
Set PATH to include Node.js:
168
169
169
170
```
170
- export PATH=/opt/node-v0.10.38 -linux-x64/bin:$PATH
171
+ export PATH=/opt/node-v0.12.4 -linux-x64/bin:$PATH
171
172
```
172
173
173
174
### 3.2 Install the free Oracle Instant Client ZIPs
@@ -265,20 +266,18 @@ Oracle Database.
265
266
### 4.1 Install Node.js
266
267
267
268
Download the
268
- [ Node.js Linux 0.10 64-bit binaries] ( http://nodejs.org/download/ ) and
269
+ [ Node.js Linux 64-bit binaries] ( http://nodejs.org/download/ ) and
269
270
extract the file, for example into ` /opt ` :
270
271
271
272
```
272
273
cd /opt
273
- tar -zxf node-v0.10.38 -linux-x64.tar.gz
274
+ tar -zxf node-v0.12.4 -linux-x64.tar.gz
274
275
```
275
276
276
- This node-oracledb release currently works only with Node.js 0.10.
277
-
278
277
Set your PATH variable to include Node.js:
279
278
280
279
```
281
- export PATH=/opt/node-v0.10.38 -linux-x64/bin:$PATH
280
+ export PATH=/opt/node-v0.12.4 -linux-x64/bin:$PATH
282
281
```
283
282
284
283
### 4.2 Install the driver
@@ -342,14 +341,12 @@ Building node-oracledb requires Xcode from the Mac App store.
342
341
343
342
### 5.2 Install Node.js
344
343
345
- Node.js 0.10 can be installed from various sources, such as via * brew* .
344
+ Node.js can be installed from various sources, such as via * brew* .
346
345
347
346
```
348
- brew install node010
347
+ brew install node
349
348
```
350
349
351
- This node-oracledb release currently works only with Node.js 0.10.
352
-
353
350
Set your PATH to include the * node* and * npm* binaries:
354
351
355
352
```
@@ -449,12 +446,10 @@ use a 32-bit stack during build and run time.
449
446
450
447
### 6.2 Install Node.js
451
448
452
- Install the 64-bit Node.js 0.10 MSI (e.g. node-v0.10.38 -x64.msi) from
449
+ Install the 64-bit Node.js MSI (e.g. node-v0.12.4 -x64.msi) from
453
450
[ nodejs.org] ( http://nodejs.org/download/ ) . Make sure the option to
454
451
add the Node and npm directories to the path is selected.
455
452
456
- This node-oracledb release currently works only with Node.js 0.10.
457
-
458
453
### 6.3 Install the free Oracle Instant Client ZIPs
459
454
460
455
Skip this step if you already have Oracle Database or the full Oracle client on your machine.
@@ -476,9 +471,8 @@ version first in the path.
476
471
### 6.4 Install the driver
477
472
478
473
Start Visual Studio and open a Developer Command Prompt within it.
479
-
480
- If you instead decide to use command shell outside Visual Studio, then
481
- run ` vcvars64.bat ` or ` vcvars.bat ` (for 32-bit builds).
474
+ (If you instead decide to use a command shell outside Visual Studio, then
475
+ run ` vcvars64.bat ` for 64-bit builds or ` vcvars.bat ` for 32-bit builds).
482
476
483
477
Use ` set PATH ` in the shell to confirm the Python, Node.js and Oracle
484
478
directories are correctly set. If they are not, then set PATH
0 commit comments