@@ -18,7 +18,7 @@ To use cx_Oracle 7 with Python and Oracle Database you need:
18
18
Client
19
19
<http://www.oracle.com/technetwork/database/database-technologies/instant-client/overview/index.html> `__,
20
20
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,
22
22
and 11.2 are supported on Linux, Windows and macOS. Users have
23
23
also reported success with other platforms.
24
24
@@ -42,7 +42,7 @@ Quick Start cx_Oracle Installation
42
42
the source package will be downloaded instead. This will be compiled
43
43
and the resulting binary installed.
44
44
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
46
46
system library search path such as ``PATH `` on Windows or
47
47
``LD_LIBRARY_PATH `` on Linux. On macOS move the files to ``~/lib ``
48
48
or ``/usr/local/lib ``.
@@ -64,7 +64,7 @@ Quick Start cx_Oracle Installation
64
64
<https://www.oracle.com/database/technologies/appdev/xe.html> `__
65
65
release.
66
66
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
68
68
greater. Version 12.1 client libraries can connect to Oracle Database
69
69
10.2 or greater. Version 11.2 client libraries can connect to Oracle
70
70
Database 9.2 or greater.
@@ -132,7 +132,7 @@ connections between different versions of Oracle Client libraries and
132
132
Oracle Database. For certified configurations see Oracle Support's
133
133
`Doc ID 207303.1
134
134
<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
136
136
greater. Oracle Client 12.1 can connect to Oracle Database 10.2 or
137
137
greater. Oracle Client 11.2 can connect to Oracle Database 9.2 or
138
138
greater. The technical restrictions on creating connections may be
@@ -202,7 +202,7 @@ Install Oracle Client
202
202
203
203
Using cx_Oracle requires Oracle Client libraries to be installed.
204
204
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,
206
206
12 and 11.2 are supported.
207
207
208
208
- If your database is on a remote computer, then download the free `Oracle
@@ -222,7 +222,7 @@ Oracle Instant Client Zip Files
222
222
223
223
To use cx_Oracle with Oracle Instant Client zip files:
224
224
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
226
226
<http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html> `__
227
227
or `32-bit
228
228
<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:
233
233
234
234
mkdir -p /opt/oracle
235
235
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
237
237
238
238
3. Install the ``libaio `` package with sudo or as the root user. For example::
239
239
@@ -245,14 +245,14 @@ To use cx_Oracle with Oracle Instant Client zip files:
245
245
impacted, permanently add Instant Client to the runtime link
246
246
path. For example, with sudo or as the root user::
247
247
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"
249
249
sudo ldconfig
250
250
251
251
Alternatively, set the environment variable ``LD_LIBRARY_PATH `` to
252
252
the appropriate directory for the Instant Client version. For
253
253
example::
254
254
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
256
256
257
257
5. If you intend to co-locate optional Oracle configuration files such
258
258
as ``tnsnames.ora ``, ``sqlnet.ora `` or ``oraaccess.xml `` with
@@ -274,7 +274,7 @@ Oracle Instant Client RPMs
274
274
275
275
To use cx_Oracle with Oracle Instant Client RPMs:
276
276
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
278
278
<http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html> `__
279
279
or `32-bit
280
280
<http://www.oracle.com/technetwork/topics/linuxsoft-082809.html> `__, matching your
@@ -288,20 +288,24 @@ To use cx_Oracle with Oracle Instant Client RPMs:
288
288
289
289
2. Install the downloaded RPM with sudo or as the root user. For example::
290
290
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
292
292
293
293
Yum will automatically install required dependencies, such as ``libaio``.
294
294
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
296
299
impacted, permanently add Instant Client to the runtime link
297
300
path. For example, with sudo or as the root user::
298
301
299
302
sudo sh -c "echo /usr/lib/oracle/18.3/client64/lib > /etc/ld.so.conf.d/oracle-instantclient.conf"
300
303
sudo ldconfig
301
304
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::
305
309
306
310
export LD_LIBRARY_PATH=/usr/lib/oracle/18.3/client64/lib:$LD_LIBRARY_PATH
307
311
@@ -323,7 +327,7 @@ To use cx_Oracle with Oracle Instant Client RPMs:
323
327
Local Database or Full Oracle Client
324
328
++++++++++++++++++++++++++++++++++++
325
329
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
327
331
from a local Oracle Database or full Oracle Client installation.
328
332
329
333
The libraries must be either 32-bit or 64-bit, matching your
@@ -473,7 +477,7 @@ Python architecture.
473
477
474
478
2. Optional Oracle configuration files such as ``tnsnames.ora ``,
475
479
``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
477
481
installation.
478
482
479
483
Alternatively, Oracle configuration files can be put in another,
@@ -515,7 +519,7 @@ instance. Oracle Client versions 18, 12 and 11.2 are supported.
515
519
516
520
To use cx_Oracle with Oracle Instant Client zip files:
517
521
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
519
523
<http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html> `__.
520
524
Choose either a 64-bit or 32-bit package, matching your
521
525
Python architecture.
@@ -524,18 +528,18 @@ To use cx_Oracle with Oracle Instant Client zip files:
524
528
application. For example::
525
529
526
530
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
528
532
529
533
3. Add links to ``$HOME/lib `` or ``/usr/local/lib `` to enable
530
534
applications to find the library. For example::
531
535
532
536
mkdir ~/lib
533
- ln -s /opt/oracle/instantclient_12_2 /libclntsh.dylib ~/lib/
537
+ ln -s /opt/oracle/instantclient_18_1 /libclntsh.dylib ~/lib/
534
538
535
539
Alternatively, copy the required OCI libraries. For example::
536
540
537
541
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/
539
543
540
544
For Instant Client 11.2, the OCI libraries must be copied. For example::
541
545
@@ -544,8 +548,8 @@ To use cx_Oracle with Oracle Instant Client zip files:
544
548
545
549
4. If you intend to co-locate optional Oracle configuration files such
546
550
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::
549
553
550
554
mkdir -p /opt/oracle/instantclient_12_2/network/admin
551
555
0 commit comments