Improve documentation.

This commit is contained in:
Anthony Tuininga 2018-06-19 11:05:44 -06:00
parent 787fc5b33c
commit 4e53b9074b
2 changed files with 24 additions and 4 deletions

View File

@ -86,7 +86,8 @@ Dequeue Options
This attribute specifies the transactional behavior of the dequeue request.
It should be one of the values :data:`~cx_Oracle.DEQ_ON_COMMIT` (default)
or :data:`~cx_Oracle.DEQ_IMMEDIATE`. This attribute is ignored when using
the :data:`~cx_Oracle.DEQ_BROWSE` mode.
the :data:`~cx_Oracle.DEQ_BROWSE` mode. Note the value of
:attr:`~Connection.autocommit` is always ignored.
.. attribute:: DeqOptions.wait
@ -130,7 +131,8 @@ Enqueue Options
This attribute specifies the transactional behavior of the enqueue request.
It should be one of the values :data:`~cx_Oracle.ENQ_ON_COMMIT` (default)
or :data:`~cx_Oracle.ENQ_IMMEDIATE`.
or :data:`~cx_Oracle.ENQ_IMMEDIATE`. Note the value of
:attr:`~Connection.autocommit` is ignored.
.. _msgproperties:

View File

@ -176,11 +176,16 @@ combination may result in runtime errors. These include:
Installing cx_Oracle on Linux
=============================
This section discusses the generic installation method on Linux.
Using Python and cx_Oracle RPM packages on Oracle Linux is discussed
in :ref:`oraclelinux`.
Install cx_Oracle
-----------------
Use Python's `Pip <http://pip.readthedocs.io/en/latest/installing/>`__
package to install cx_Oracle from `PyPI
The generic way to install cx_Oracle on Linux is to use Python's `Pip
<http://pip.readthedocs.io/en/latest/installing/>`__ package to
install cx_Oracle from `PyPI
<https://pypi.python.org/pypi/cx_Oracle>`__::
python -m pip install cx_Oracle --upgrade
@ -335,6 +340,19 @@ Python architecture.
``TNS_ADMIN`` to that directory name.
.. _oraclelinux:
Installing cx_Oracle on Oracle Linux
====================================
Python packages are available for Oracle Linux from Oracle's `public
yum repository <http://yum.oracle.com/>`__. Various versions
of Python are easily installed. Packages for cx_Oracle are also
available, making it easy to keep up to date.
Installation instructions are at `Oracle Linux for Python
Developers <https://yum.oracle.com/oracle-linux-python.html>`__.
Installing cx_Oracle on Windows
===============================