Skip to content

Commit 531f3fc

Browse files
Documentation improvements.
1 parent 417ec25 commit 531f3fc

File tree

4 files changed

+43
-28
lines changed

4 files changed

+43
-28
lines changed

doc/src/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Database. It conforms to the `Python Database API v2.0 Specification
99
additions and a couple of exclusions.
1010

1111
This module is currently tested with Python 3.6, 3.7, 3.8, 3.9, 3.10 and 3.11
12-
against Oracle Database 23c, 21c, 19c, 18c, 12c, and 11.2.
12+
against Oracle Database 23c, 21c, 19c, 18c, 12c, and 11gR2.
1313

1414
**python-oracledb** is distributed under an open-source
1515
:ref:`license <license>`. Changes in python-oracledb releases can be found in

doc/src/release_notes.rst

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ Thin Mode Changes
4646
#) Fixed bug when an output type handler is used and the value of
4747
cursor.prefetchrows exceeds cursor.arraysize
4848
(`issue 173 <https://github.com/oracle/python-oracledb/issues/173>`__).
49-
#) Fixed bug when an AC replay context is returned during connection to the
50-
database
49+
#) Fixed bug when an Application Continuity replay context is returned during
50+
connection to the database
5151
(`issue 176 <https://github.com/oracle/python-oracledb/issues/176>`__).
5252

5353
Thick Mode Changes
5454
++++++++++++++++++
5555

56-
#) Added function :meth:`SodaCollection.getIndexes()` for geting the indexes
56+
#) Added function :meth:`SodaCollection.getIndexes()` for getting the indexes
5757
on a SODA collection.
58+
#) Relaxed restriction for end-to-end tracing string connection
59+
attributes. These values can now be set to the value ``None`` which will be
60+
treated the same as an empty string.
5861
#) Fixed bug when using external authentication with an Easy Connect
5962
connection string.
60-
#) Relaxed restriction for end-to-end string connection attributes. These
61-
values can be set to the value ``None`` which will be treated the same as
62-
an empty string.
6363
#) Fixed memory leak when accessing objects embedded within other objects.
6464

6565
Common Changes
@@ -76,21 +76,20 @@ Common Changes
7676
Oracle Database instance name associated with the connection. This is the
7777
same value as the SQL expression
7878
``sys_context('userenv', 'instance_name')``.
79-
#) Added support for automatically retrying a query if the error
80-
``ORA-00932: inconsistent data types`` is raised (which can occur if a
81-
table or view is recreated with a data type that is incompatible with
82-
the column's previous data type).
83-
#) Added support for the embedded OIDs found in SODA documents in Oracle
84-
Database 23c.
79+
#) Added support for relational queries on the underlying tables of SODA
80+
collections created in Oracle Database 23c if they contain JSON documents
81+
with embedded OIDs.
82+
#) Automatically retry a query if the error ``ORA-00932: inconsistent data
83+
types`` is raised (which can occur if a table or view is recreated with a
84+
data type that is incompatible with the column's previous data type).
8585
#) The ``repr()`` value of the DbObject class now shows the string "DbObject"
8686
instead of the string "Object" for consistency with the name of the class
8787
and the other ``repr()`` values for DbObjectType and DbObjectAttr.
8888
#) Fixed bug when binding sequences other than lists and tuples
8989
(`issue 205 <https://github.com/oracle/python-oracledb/issues/205>`__).
9090
#) Added support for using the Cython 3.0 release
9191
(`issue 204 <https://github.com/oracle/python-oracledb/issues/204>`__).
92-
#) Improved test suite.
93-
92+
#) Improved test suite and documentation.
9493

9594
oracledb 1.3.2 (June 2023)
9695
--------------------------

doc/src/user_guide/initialization.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,12 @@ parameter.
253253
254254
oracledb.init_oracle_client()
255255
256-
Oracle Client libraries are looked for in the operating system library
257-
search path, such as configured with ``ldconfig`` or set in the environment
258-
variable ``LD_LIBRARY_PATH``. On some UNIX platforms an OS specific
259-
equivalent, such as ``LIBPATH`` or ``SHLIB_PATH``, is used instead of
260-
``LD_LIBRARY_PATH``.
256+
Oracle Client libraries are looked for in the operating system library search
257+
path, such as configured with ``ldconfig`` or set in the environment variable
258+
``LD_LIBRARY_PATH``. Web servers and other daemons commonly reset environment
259+
variables so using ``ldconfig`` is generally preferred instead. On some UNIX
260+
platforms an OS specific equivalent, such as ``LIBPATH`` or ``SHLIB_PATH``, is
261+
used instead of ``LD_LIBRARY_PATH``.
261262

262263
If libraries are not found in the system library search path, then libraries
263264
in ``$ORACLE_HOME/lib`` will be used. Note that the environment variable

doc/src/user_guide/installation.rst

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,12 @@ To use python-oracledb Thick mode with Oracle Instant Client zip files:
259259
- `x86 32-bit <https://www.oracle.com/database/technologies/instant-client/linux-x86-32-downloads.html>`__
260260
- `ARM (aarch64) 64-bit <https://www.oracle.com/database/technologies/instant-client/linux-arm-aarch64-downloads.html>`__
261261

262-
The latest version is recommended. Oracle Instant Client 21 will connect to
263-
Oracle Database 12.1 or later.
262+
Oracle Database 19c is a Long Term Support Release whereas Oracle Database
263+
21c is an Innovation Release. It is recommended to keep up to date with the
264+
latest Oracle Instant Client release updates of your desired major version.
265+
266+
Oracle Instant Client 19c will connect to Oracle Database 11.2 or later.
267+
Oracle Instant Client 21c will connect to Oracle Database 12.1 or later.
264268

265269
2. Unzip the package into a single directory that is accessible to your
266270
application. For example:
@@ -299,6 +303,10 @@ To use python-oracledb Thick mode with Oracle Instant Client zip files:
299303

300304
export LD_LIBRARY_PATH=/opt/oracle/instantclient_21_6:$LD_LIBRARY_PATH
301305

306+
Make sure this is set in each shell that invokes Python. Web servers and
307+
other daemons commonly reset environment variables so using ``ldconfig`` is
308+
generally preferred instead.
309+
302310
5. If you use optional Oracle configuration files such as ``tnsnames.ora``,
303311
``sqlnet.ora``, or ``oraaccess.xml`` with Instant Client, then put the files
304312
in an accessible directory, for example in
@@ -340,8 +348,12 @@ To use python-oracledb with Oracle Instant Client RPMs:
340348
- `Instant Client RPMs for Oracle Linux ARM (aarch64) 8 <https://yum.oracle.com/repo/OracleLinux/OL8/oracle/instantclient/aarch64/index.html>`__
341349
- `Instant Client RPMs for Oracle Linux ARM (aarch64) 7 <https://yum.oracle.com/repo/OracleLinux/OL7/oracle/instantclient/aarch64/index.html>`__
342350

343-
The latest version is recommended. Oracle Instant Client 21 will connect to
344-
Oracle Database 12.1 or later.
351+
Oracle Database 19c is a Long Term Support Release whereas Oracle Database
352+
21c is an Innovation Release. It is recommended to keep up to date with the
353+
latest Oracle Instant Client release updates of your desired major version.
354+
355+
Oracle Instant Client 19c will connect to Oracle Database 11.2 or later.
356+
Oracle Instant Client 21c will connect to Oracle Database 12.1 or later.
345357

346358
2. Install the downloaded RPM with sudo or as the root user. For example:
347359

@@ -373,6 +385,9 @@ To use python-oracledb with Oracle Instant Client RPMs:
373385

374386
export LD_LIBRARY_PATH=/usr/lib/oracle/18.5/client64/lib:$LD_LIBRARY_PATH
375387

388+
Web servers and other daemons commonly reset environment variables so using
389+
``ldconfig`` is generally preferred instead.
390+
376391
4. If you use optional Oracle configuration files such as ``tnsnames.ora``,
377392
``sqlnet.ora`` or ``oraaccess.xml`` with Instant Client, then put the files
378393
in an accessible directory, for example in
@@ -938,10 +953,10 @@ If using python-oracledb fails:
938953

939954
- On Linux, check if the ``LD_LIBRARY_PATH`` environment variable contains
940955
the Oracle Client library directory. Some environments such as web servers
941-
reset environment variables. If you are using Oracle Instant Client, a
942-
preferred alternative to ``LD_LIBRARY_PATH`` is to ensure that a file in
943-
the ``/etc/ld.so.conf.d`` directory contains the path to the Instant Client
944-
directory, and then run ``ldconfig``.
956+
and daemons reset environment variables. If you are using Oracle Instant
957+
Client, a preferred alternative to ``LD_LIBRARY_PATH`` is to ensure that a
958+
file in the ``/etc/ld.so.conf.d`` directory contains the path to the
959+
Instant Client directory, and then run ``ldconfig``.
945960

946961
- If you get the error ``DPY-3010: connections to this database server
947962
version are not supported by python-oracledb in thin mode`` when

0 commit comments

Comments
 (0)