Skip to content

Commit 697436a

Browse files
committed
Update examples to use Oracle Client 18.3
1 parent 70e8bc9 commit 697436a

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

INSTALL.md

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ Download the free **Basic** RPM from [Oracle Technology Network][12] and
314314
[install it][13] with sudo or as the root user:
315315

316316
```
317-
sudo yum install oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
317+
sudo yum install oracle-instantclient18.3-basic-18.3.0.0.0-1.x86_64.rpm
318318
```
319319

320320
This will install the required `libaio` package, if it is not already
@@ -330,24 +330,24 @@ that will be impacted, then permanently add Instant Client to the
330330
run-time link path. For example, with sudo or as the root user:
331331

332332
```
333-
sudo sh -c "echo /usr/lib/oracle/12.2/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
333+
sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
334334
sudo ldconfig
335335
```
336336

337337
Alternatively, every shell running Node.js will need to have the link
338338
path set:
339339

340340
```
341-
export LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib
341+
export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib
342342
```
343343

344344
#### 3.2.5 Optionally create the default Oracle Client configuration directory
345345

346346
If you intend to co-locate optional Oracle configuration files such as
347347
[`tnsnames.ora`][15], [`sqlnet.ora`][16], [`ldap.ora`][17], or
348348
[`oraaccess.xml`][18] with Instant Client, they can be put in a
349-
`network/admin` subdirectory under `lib/`. Create this if needed.
350-
For example:
349+
`network/admin` subdirectory under `lib/`. With Instant Client 12.2
350+
or earlier, create this:
351351

352352
```
353353
sudo mkdir -p /usr/lib/oracle/12.2/client64/lib/network/admin
@@ -453,9 +453,9 @@ and [unzip it][13] into a directory accessible to your application,
453453
for example:
454454

455455
```
456-
unzip instantclient-basic-linux.x64-12.2.0.1.0.zip
456+
unzip instantclient-basic-linux.x64-18.3.0.0.0dbru.zip
457457
mkdir -p /opt/oracle
458-
mv instantclient_12_2 /opt/oracle
458+
mv instantclient_18_3 /opt/oracle
459459
```
460460

461461
You will need the operating system `libaio` package installed. On
@@ -466,23 +466,24 @@ that will be impacted, then permanently add Instant Client to the
466466
run-time link path. For example, with sudo or as the root user:
467467

468468
```
469-
sudo sh -c "echo /opt/oracle/instantclient_12_2 > /etc/ld.so.conf.d/oracle-instantclient.conf"
469+
sudo sh -c "echo /opt/oracle/instantclient_18_3 > /etc/ld.so.conf.d/oracle-instantclient.conf"
470470
sudo ldconfig
471471
```
472472

473473
Alternatively, every shell running Node.js will need to have the link
474474
path set:
475475

476476
```
477-
export LD_LIBRARY_PATH=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH
477+
export LD_LIBRARY_PATH=/opt/oracle/instantclient_18_3:$LD_LIBRARY_PATH
478478
```
479479

480480
#### 3.2.5 Optionally create the default Oracle Client configuration directory
481481

482482
If you intend to co-locate optional Oracle configuration files such as
483483
[`tnsnames.ora`][15], [`sqlnet.ora`][16], [`ldap.ora`][17], or
484484
[`oraaccess.xml`][18] with Instant Client, they can be put in a
485-
`network/admin` subdirectory. Create this if needed. For example:
485+
`network/admin` subdirectory. With Instant Client 12.2 or earlier,
486+
create this:
486487

487488
```
488489
sudo mkdir -p /opt/oracle/instantclient_12_2/network/admin
@@ -715,7 +716,8 @@ cp /opt/oracle/instantclient_11_2/{libclntsh.dylib.11.1,libnnz11.dylib,libociei.
715716
If you intend to co-locate optional Oracle configuration files such as
716717
[`tnsnames.ora`][15], [`sqlnet.ora`][16], [`ldap.ora`][17], or
717718
[`oraaccess.xml`][18] with Instant Client, they can be put in a
718-
`network/admin` subdirectory. Create this if needed. For example:
719+
`network/admin` subdirectory. With Instant Client 12.2 or earlier,
720+
create this:
719721

720722
```
721723
sudo mkdir -p /opt/oracle/instantclient_12_2/network/admin
@@ -807,12 +809,12 @@ Download the free 64-bit Instant Client **Basic** ZIP file from
807809
[Oracle Technology Network][25]. (The 32-bit Instant Client is
808810
[here][26]).
809811

810-
- Extract `instantclient-basic-windows.x64-12.2.0.1.0.zip`
812+
- Extract `instantclient-basic-windows.x64-18.3.0.0.0dbru.zip`
811813

812814
- Add its directory to `PATH`. For example on Windows 7, update
813815
`PATH` in Control Panel -> System -> Advanced System Settings ->
814816
Advanced -> Environment Variables -> System variables -> `PATH` and
815-
add your path, such as `C:\oracle\instantclient_12_2`.
817+
add your path, such as `C:\oracle\instantclient_18_3`.
816818

817819
If you have multiple versions of Oracle libraries installed, make
818820
sure the desired version occurs first in `PATH` before you run
@@ -828,7 +830,7 @@ Download the free 64-bit Instant Client **Basic** ZIP file from
828830
If you intend to co-locate optional Oracle configuration files such as
829831
[`tnsnames.ora`][15], [`sqlnet.ora`][16], [`ldap.ora`][17], or
830832
[`oraaccess.xml`][18] with Instant Client, they can be put in a
831-
`C:\oracle\instantclient_12_2\network\admin` subdirectory. Create
833+
`C:\oracle\instantclient_18_3\network\admin` subdirectory. Create
832834
this if needed.
833835

834836
This is the default Oracle configuration directory for applications
@@ -1533,15 +1535,15 @@ Download the Oracle Instant Client Basic package from [Instant Client
15331535
Downloads for Linux x86-64 (64-bit)][12] and install it:
15341536

15351537
```
1536-
yum install oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
1537-
echo /usr/lib/oracle/12.2/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf
1538+
yum install oracle-instantclient18.3-basic-18.3.0.0.0-1.x86_64.rpm
1539+
echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf
15381540
sudo ldconfig
15391541
```
15401542

1541-
Install the node-oracledb package:
1543+
Install the node-oracledb package, for example:
15421544

15431545
```
1544-
yum install node-oracledb-12c-node8-3.0.0
1546+
yum install node-oracledb-18c-node10-3.0.0
15451547
```
15461548

15471549
Since node-oracledb is installed globally, set `NODE_PATH` before

0 commit comments

Comments
 (0)