Skip to content

Commit 3f7db86

Browse files
committed
Update now Oracle Database 12.2 is available on Linux and Solaris
1 parent da1af50 commit 3f7db86

File tree

2 files changed

+30
-26
lines changed

2 files changed

+30
-26
lines changed

INSTALL.md

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Installing node-oracledb
22

3-
*Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.*
3+
*Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.*
44

55
You may not use the identified files except in compliance with the Apache
66
License, Version 2.0 (the "License.")
@@ -44,12 +44,16 @@ still be usable.
4444

4545
### <a name="prerequisites"></a> Prerequisites
4646

47-
Installation requires Oracle 11.2 or 12c client libraries.
48-
These are included in Oracle Instant Client RPMs or ZIPs, a full
49-
Oracle Client, or a database on the same machine. Oracle's standard
50-
client-server network compatibility applies. For example, with Oracle
51-
Client 12c you can connect to Oracle Database 10.2 or greater. Use
52-
Oracle Client 11.2 if you need to connect to Oracle Database 9.2.
47+
Installation requires Oracle 11.2, 12.1 or 12.2 client libraries.
48+
These are included
49+
in
50+
[Oracle Instant Client](http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html) RPMs
51+
or ZIPs, a full Oracle Client, or a database on the same machine.
52+
Oracle's standard client-server network interoperability applies, see
53+
Oracle Support's Doc ID 207303.1. In summary, Oracle Client 12.2 can
54+
connect to Oracle Database 11.2 or greater. Oracle Client 12.1 can
55+
connect to Oracle Database 10.2 or greater. Oracle Client 11.2 can
56+
connect to Oracle Database 9.2 or greater.
5357

5458
A compiler is required. Use Visual Studio on Windows, GCC on Linux or
5559
Xcode on macOS. **When building with Node 4 onward, the compiler must
@@ -128,8 +132,8 @@ Download the free **Basic** and **SDK** RPMs from [Oracle Technology Network](ht
128132
[install them](http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html#ic_x64_inst) as the root user:
129133

130134
```
131-
rpm -ivh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
132-
rpm -ivh oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
135+
yum install oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
136+
yum install oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
133137
```
134138

135139
If you have a [ULN](https://linux.oracle.com) subscription, you can
@@ -163,7 +167,7 @@ If you have other Oracle software installed on the same machine, and
163167
the run time linker is configured to find this other software via
164168
`LD_LIBRARY_PATH` or `ldconfig`, then update the environment to use
165169
the Instant Client RPM libraries, for example
166-
`/usr/lib/oracle/12.1/client64/lib`.
170+
`/usr/lib/oracle/12.2/client64/lib`.
167171

168172
Note: A compiler supporting C++11 is required when building with
169173
Node.js 4 or later, otherwise the NAN component will fail to build.
@@ -232,9 +236,9 @@ into the same directory:
232236

233237
```
234238
cd /opt/oracle
235-
unzip instantclient-basic-linux.x64-12.1.0.2.0.zip
236-
unzip instantclient-sdk-linux.x64-12.1.0.2.0.zip
237-
mv instantclient_12_1 instantclient
239+
unzip instantclient-basic-linux.x64-12.2.0.1.0.zip
240+
unzip instantclient-sdk-linux.x64-12.2.0.1.0.zip
241+
mv instantclient_12_2 instantclient
238242
cd instantclient
239243
ln -s libclntsh.so.12.1 libclntsh.so
240244
```
@@ -455,8 +459,8 @@ require the node-oracledb installation variables `OCI_LIB_DIR` or
455459
`ldconfig` configuration for run time. Installation is simply:
456460
457461
```
458-
rpm -ivh oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
459-
rpm -ivh oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
462+
yum install oracle-instantclient12.2-basic-12.2.0.1.0-1.x86_64.rpm
463+
yum install oracle-instantclient12.2-devel-12.2.0.1.0-1.x86_64.rpm
460464
npm install oracledb
461465
node example.js
462466
```
@@ -480,11 +484,11 @@ If you want to use Instant Client RPMs without using rpath, then set
480484
`OCI_LIB_DIR` and `OCI_INC_DIR` prior to installation, for example:
481485
482486
```
483-
export OCI_LIB_DIR=/usr/lib/oracle/12.1/client64/lib
484-
export OCI_INC_DIR=/usr/include/oracle/12.1/client64
487+
export OCI_LIB_DIR=/usr/lib/oracle/12.2/client64/lib
488+
export OCI_INC_DIR=/usr/include/oracle/12.2/client64
485489
npm install oracledb
486490
unset OCI_LIB_DIR OCI_INC_DIR
487-
export LD_LIBRARY_PATH=/usr/lib/oracle/12.1/client64/lib:$LD_LIBRARY_PATH
491+
export LD_LIBRARY_PATH=/usr/lib/oracle/12.2/client64/lib:$LD_LIBRARY_PATH
488492
node example.js
489493
```
490494
@@ -895,23 +899,23 @@ and install them into `/opt/oracle`.
895899
896900
```
897901
cd /opt/oracle
898-
unzip instantclient-basic-solaris.x64-12.1.0.2.0.zip
899-
unzip instantclient-sdk-solaris.x64-12.1.0.2.0.zip
902+
unzip instantclient-basic-solaris.x64-12.2.0.1.0.zip
903+
unzip instantclient-sdk-solaris.x64-12.2.0.1.0.zip
900904
```
901905
902906
To run applications, you will need to set the link path:
903907
904908
```
905-
export LD_LIBRARY_PATH_64=/opt/oracle/instantclient_12_1:$LD_LIBRARY_PATH_64
909+
export LD_LIBRARY_PATH_64=/opt/oracle/instantclient_12_2:$LD_LIBRARY_PATH_64
906910
```
907911
908912
### 10.3 Install the add-on
909913
910914
Tell the installer where to find Instant Client:
911915
912916
```
913-
export OCI_LIB_DIR=/opt/oracle/instantclient_12_1
914-
export OCI_INC_DIR=/opt/oracle/instantclient_12_1/sdk/include
917+
export OCI_LIB_DIR=/opt/oracle/instantclient_12_2
918+
export OCI_INC_DIR=/opt/oracle/instantclient_12_2/sdk/include
915919
```
916920
917921
Use absolute paths for the variable values. These variables are only

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ Prerequisites:
4545

4646
- [Python 2.7](https://www.python.org/downloads/)
4747
- C Compiler with support for C++ 11 (Xcode, gcc, Visual Studio or similar)
48-
- Oracle 11.2 or 12c client libraries. Use the small, free [Oracle Instant Client](http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html) "basic" and "SDK" packages if your database is remote. Or use the libraries and headers from a locally installed database such as the free [Oracle XE](http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html) release.
48+
- Oracle 11.2, 12.1 or 12.2 client libraries. Use the small, free [Oracle Instant Client](http://www.oracle.com/technetwork/database/features/instant-client/index-100365.html) "basic" and "SDK" packages if your database is remote. Or use the libraries and headers from a locally installed database such as the free [Oracle XE](http://www.oracle.com/technetwork/database/database-technologies/express-edition/overview/index.html) release.
4949

50-
Oracle's standard client-server network compatibility applies: Oracle Client 12c can connect to Oracle Database 10.2 or greater. Oracle Client 11.2 can connect to Oracle Database 9.2 or greater.
50+
Oracle's standard client-server network compatibility applies: Oracle Client 12.2 can connect to Oracle Database 11.2 or greater. Oracle Client 12.1 can connect to Oracle Database 10.2 or greater. Oracle Client 11.2 can connect to Oracle Database 9.2 or greater.
5151
- Set `OCI_LIB_DIR` and `OCI_INC_DIR` during installation if the Oracle libraries and headers are in a non-default location
5252

5353
Run `npm install oracledb` to install from the [npm registry](https://www.npmjs.com/package/oracledb).
@@ -88,7 +88,7 @@ Oracle gratefully acknowledges the contributions to node-oracledb that have been
8888

8989
## <a name="license"></a> License
9090

91-
Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
91+
Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
9292

9393
You may not use the identified files except in compliance with the Apache
9494
License, Version 2.0 (the "License.")

0 commit comments

Comments
 (0)