Skip to content

Commit c82ae68

Browse files
Update doc for the latest Instant Client releases.
1 parent 3ab21c9 commit c82ae68

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

doc/src/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Welcome to cx_Oracle's documentation!
44

55
**cx_Oracle** is a module that enables access to Oracle Database and conforms
66
to the Python database API specification. This module is currently tested
7-
against Oracle Client 11.2, 12.1, 12.2 and 18.3 and Python 2.7, 3.5, 3.6 and
7+
against Oracle Client 19, 18, 12, and 11.2, and Python 2.7, 3.5, 3.6 and
88
3.7.
99

1010
**cx_Oracle** is distributed under an open-source :ref:`license <license>`

doc/src/installation.rst

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To use cx_Oracle 7 with Python and Oracle Database you need:
1818
Client
1919
<http://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.html>`__,
2020
or those included in Oracle Database if Python is on the same
21-
machine as the database. Oracle client libraries versions 18, 12,
21+
machine as the database. Oracle client libraries versions 19, 18, 12,
2222
and 11.2 are supported on Linux, Windows and macOS. Users have
2323
also reported success with other platforms.
2424

@@ -42,7 +42,7 @@ Quick Start cx_Oracle Installation
4242
the source package will be downloaded instead. This will be compiled
4343
and the resulting binary installed.
4444

45-
- Add Oracle 18, 12 or 11.2 client libraries to your operating
45+
- Add Oracle 19, 18, 12 or 11.2 client libraries to your operating
4646
system library search path such as ``PATH`` on Windows or
4747
``LD_LIBRARY_PATH`` on Linux. On macOS move the files to ``~/lib``
4848
or ``/usr/local/lib``.
@@ -64,7 +64,7 @@ Quick Start cx_Oracle Installation
6464
<https://www.oracle.com/database/technologies/appdev/xe.html>`__
6565
release.
6666

67-
Version 18 and 12.2 client libraries can connect to Oracle Database 11.2 or
67+
Version 19, 18 and 12.2 client libraries can connect to Oracle Database 11.2 or
6868
greater. Version 12.1 client libraries can connect to Oracle Database
6969
10.2 or greater. Version 11.2 client libraries can connect to Oracle
7070
Database 9.2 or greater.
@@ -132,7 +132,7 @@ connections between different versions of Oracle Client libraries and
132132
Oracle Database. For certified configurations see Oracle Support's
133133
`Doc ID 207303.1
134134
<https://support.oracle.com/epmos/faces/DocumentDisplay?id=207303.1>`__.
135-
In summary, Oracle Client 18 and 12.2 can connect to Oracle Database 11.2 or
135+
In summary, Oracle Client 19, 18 and 12.2 can connect to Oracle Database 11.2 or
136136
greater. Oracle Client 12.1 can connect to Oracle Database 10.2 or
137137
greater. Oracle Client 11.2 can connect to Oracle Database 9.2 or
138138
greater. The technical restrictions on creating connections may be
@@ -202,7 +202,7 @@ Install Oracle Client
202202

203203
Using cx_Oracle requires Oracle Client libraries to be installed.
204204
These provide the necessary network connectivity allowing cx_Oracle
205-
to access an Oracle Database instance. Oracle Client versions 18,
205+
to access an Oracle Database instance. Oracle Client versions 19, 18,
206206
12 and 11.2 are supported.
207207

208208
- If your database is on a remote computer, then download the free `Oracle
@@ -222,7 +222,7 @@ Oracle Instant Client Zip Files
222222

223223
To use cx_Oracle with Oracle Instant Client zip files:
224224

225-
1. Download an Oracle 18, 12, or 11.2 "Basic" or "Basic Light" zip file: `64-bit
225+
1. Download an Oracle 19, 18, 12, or 11.2 "Basic" or "Basic Light" zip file: `64-bit
226226
<http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html>`__
227227
or `32-bit
228228
<http://www.oracle.com/technetwork/topics/linuxsoft-082809.html>`__, matching your
@@ -233,7 +233,7 @@ To use cx_Oracle with Oracle Instant Client zip files:
233233

234234
mkdir -p /opt/oracle
235235
cd /opt/oracle
236-
unzip instantclient-basic-linux.x64-18.3.0.0.0dbru.zip
236+
unzip instantclient-basic-linux.x64-19.3.0.0.0dbru.zip
237237

238238
3. Install the ``libaio`` package with sudo or as the root user. For example::
239239

@@ -245,14 +245,14 @@ To use cx_Oracle with Oracle Instant Client zip files:
245245
impacted, permanently add Instant Client to the runtime link
246246
path. For example, with sudo or as the root user::
247247

248-
sudo sh -c "echo /opt/oracle/instantclient_18_3 > /etc/ld.so.conf.d/oracle-instantclient.conf"
248+
sudo sh -c "echo /opt/oracle/instantclient_19_3 > /etc/ld.so.conf.d/oracle-instantclient.conf"
249249
sudo ldconfig
250250

251251
Alternatively, set the environment variable ``LD_LIBRARY_PATH`` to
252252
the appropriate directory for the Instant Client version. For
253253
example::
254254

255-
export LD_LIBRARY_PATH=/opt/oracle/instantclient_18_3:$LD_LIBRARY_PATH
255+
export LD_LIBRARY_PATH=/opt/oracle/instantclient_19_3:$LD_LIBRARY_PATH
256256

257257
5. If you intend to co-locate optional Oracle configuration files such
258258
as ``tnsnames.ora``, ``sqlnet.ora`` or ``oraaccess.xml`` with
@@ -274,7 +274,7 @@ Oracle Instant Client RPMs
274274

275275
To use cx_Oracle with Oracle Instant Client RPMs:
276276

277-
1. Download an Oracle 18, 12, or 11.2 "Basic" or "Basic Light" RPM: `64-bit
277+
1. Download an Oracle 19, 18, 12, or 11.2 "Basic" or "Basic Light" RPM: `64-bit
278278
<http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html>`__
279279
or `32-bit
280280
<http://www.oracle.com/technetwork/topics/linuxsoft-082809.html>`__, matching your
@@ -288,20 +288,24 @@ To use cx_Oracle with Oracle Instant Client RPMs:
288288

289289
2. Install the downloaded RPM with sudo or as the root user. For example::
290290

291-
sudo yum install oracle-instantclient18.3-basic-18.3.0.0.0-1.x86_64.rpm
291+
sudo yum install oracle-instantclient19.3-basic-19.3.0.0.0-1.x86_64.rpm
292292

293293
Yum will automatically install required dependencies, such as ``libaio``.
294294

295-
3. If there is no other Oracle software on the machine that will be
295+
3. For Instant Client 19, the system library search path is
296+
automatically configured during installation.
297+
298+
For older versions, if there is no other Oracle software on the machine that will be
296299
impacted, permanently add Instant Client to the runtime link
297300
path. For example, with sudo or as the root user::
298301

299302
sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
300303
sudo ldconfig
301304

302-
Alternatively, set the environment variable ``LD_LIBRARY_PATH`` to
303-
the appropriate directory for the Instant Client version. For
304-
example::
305+
Alternatively, for version 18 and earlier, every shell running
306+
Python will need to have the environment variable
307+
``LD_LIBRARY_PATH`` set to the appropriate directory for the
308+
Instant Client version. For example::
305309

306310
export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib:$LD_LIBRARY_PATH
307311

@@ -323,7 +327,7 @@ To use cx_Oracle with Oracle Instant Client RPMs:
323327
Local Database or Full Oracle Client
324328
++++++++++++++++++++++++++++++++++++
325329

326-
cx_Oracle applications can use Oracle Client 18, 12, or 11.2 libraries
330+
cx_Oracle applications can use Oracle Client 19, 18, 12, or 11.2 libraries
327331
from a local Oracle Database or full Oracle Client installation.
328332

329333
The libraries must be either 32-bit or 64-bit, matching your
@@ -473,7 +477,7 @@ Python architecture.
473477

474478
2. Optional Oracle configuration files such as ``tnsnames.ora``,
475479
``sqlnet.ora`` or ``oraaccess.xml`` can be placed in the
476-
``network/admin`` subdirectory of the Oracle Database software
480+
``network\admin`` subdirectory of the Oracle Database software
477481
installation.
478482

479483
Alternatively, Oracle configuration files can be put in another,
@@ -515,7 +519,7 @@ instance. Oracle Client versions 18, 12 and 11.2 are supported.
515519

516520
To use cx_Oracle with Oracle Instant Client zip files:
517521

518-
1. Download the Oracle 12 or 11.2 "Basic" or "Basic Light" zip file from `here
522+
1. Download the Oracle 18, 12 or 11.2 "Basic" or "Basic Light" zip file from `here
519523
<http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html>`__.
520524
Choose either a 64-bit or 32-bit package, matching your
521525
Python architecture.
@@ -524,18 +528,18 @@ To use cx_Oracle with Oracle Instant Client zip files:
524528
application. For example::
525529

526530
mkdir -p /opt/oracle
527-
unzip instantclient-basic-macos.x64-12.2.0.1.0.zip
531+
unzip instantclient-basic-macos.x64-18.1.0.0.0.zip
528532

529533
3. Add links to ``$HOME/lib`` or ``/usr/local/lib`` to enable
530534
applications to find the library. For example::
531535

532536
mkdir ~/lib
533-
ln -s /opt/oracle/instantclient_12_2/libclntsh.dylib ~/lib/
537+
ln -s /opt/oracle/instantclient_18_1/libclntsh.dylib ~/lib/
534538

535539
Alternatively, copy the required OCI libraries. For example::
536540

537541
mkdir ~/lib
538-
cp /opt/oracle/instantclient_12_2/{libclntsh.dylib.12.1,libclntshcore.dylib.12.1,libons.dylib,libnnz12.dylib,libociei.dylib} ~/lib/
542+
cp /opt/oracle/instantclient_18_1/{libclntsh.dylib.18.1,libclntshcore.dylib.18.1,libons.dylib,libnnz18.dylib,libociei.dylib} ~/lib/
539543

540544
For Instant Client 11.2, the OCI libraries must be copied. For example::
541545

@@ -544,8 +548,8 @@ To use cx_Oracle with Oracle Instant Client zip files:
544548

545549
4. If you intend to co-locate optional Oracle configuration files such
546550
as ``tnsnames.ora``, ``sqlnet.ora`` or ``oraaccess.xml`` with
547-
Instant Client, then create a ``network/admin`` subdirectory. For
548-
example::
551+
Instant Client, then create a ``network/admin`` subdirectory, if it
552+
does not already exist. For example::
549553

550554
mkdir -p /opt/oracle/instantclient_12_2/network/admin
551555

0 commit comments

Comments
 (0)