@@ -487,8 +487,8 @@ To use cx_Oracle with Oracle Instant Client zip files:
487487
4884882. Unzip the package into a directory that is accessible to your
489489 application. For example unzip
490- ``instantclient-basic-windows.x64-19.8 .0.0.0dbru.zip `` to
491- ``C:\oracle\instantclient_19_8 ``.
490+ ``instantclient-basic-windows.x64-19.9 .0.0.0dbru.zip `` to
491+ ``C:\oracle\instantclient_19_9 ``.
492492
4934933. Oracle Instant Client libraries require a Visual Studio redistributable with
494494 a 64-bit or 32-bit architecture to match Instant Client's architecture.
@@ -511,7 +511,7 @@ Configure Oracle Instant Client
511511 .. code-block :: python
512512
513513 import cx_Oracle
514- cx_Oracle.init_oracle_client(lib_dir = r " C:\o racle\i nstantclient_19_8 " )
514+ cx_Oracle.init_oracle_client(lib_dir = r " C:\o racle\i nstantclient_19_9 " )
515515
516516 Note a 'raw' string is used because backslashes occur in the path.
517517
@@ -523,7 +523,7 @@ Configure Oracle Instant Client
523523 is executed, for example::
524524
525525 REM mypy.bat
526- SET PATH=C:\oracle\instantclient_19_8 ;%PATH%
526+ SET PATH=C:\oracle\instantclient_19_9 ;%PATH%
527527 python %*
528528
529529 Invoke this batch file every time you want to run Python.
@@ -536,14 +536,14 @@ Configure Oracle Instant Client
536536 .. code-block :: python
537537
538538 import cx_Oracle
539- cx_Oracle.init_oracle_client(lib_dir = r " C:\o racle\i nstantclient_19_8 " ,
539+ cx_Oracle.init_oracle_client(lib_dir = r " C:\o racle\i nstantclient_19_9 " ,
540540 config_dir = r " C:\o racle\y our_config_dir" )
541541
542542 Or set the environment variable ``TNS_ADMIN `` to that directory name.
543543
544544 Alternatively, put the files in a ``network\admin `` subdirectory of
545545 Instant Client, for example in
546- ``C:\oracle\instantclient_19_8 \network\admin ``. This is the default
546+ ``C:\oracle\instantclient_19_9 \network\admin ``. This is the default
547547 Oracle configuration directory for executables linked with this
548548 Instant Client.
549549
@@ -837,28 +837,48 @@ If using cx_Oracle fails:
837837 - Do you get the error "``DPI-1047: Oracle Client library cannot be
838838 loaded ``"?
839839
840- - Check that Python, cx_Oracle and your Oracle Client libraries
841- are all 64-bit or all 32-bit. The ``DPI-1047 `` message will
842- tell you whether the 64-bit or 32-bit Oracle Client is needed
843- for your Python.
840+ - On Windows and macOS, try using :meth: `~cx_Oracle.init_oracle_client() `.
841+ See :ref: `usinginitoracleclient `.
842+
843+ - Check that Python and your Oracle Client libraries are both 64-bit, or
844+ both 32-bit. The ``DPI-1047 `` message will tell you whether the 64-bit
845+ or 32-bit Oracle Client is needed for your Python.
846+
847+ - Set the environment variable ``DPI_DEBUG_LEVEL `` to 64 and restart
848+ cx_Oracle. The trace messages will show how and where cx_Oracle is
849+ looking for the Oracle Client libraries.
850+
851+ At a Windows command prompt, this could be done with::
852+
853+ set DPI_DEBUG_LEVEL=64
854+
855+ On Linux and macOS, you might use::
856+
857+ export DPI_DEBUG_LEVEL=64
858+
844859 - On Windows, if you used :meth: `~cx_Oracle.init_oracle_client() ` and have
845860 a full database installation, make sure this database is the `currently
846861 configured database
847862 <https://www.oracle.com/pls/topic/lookup?ctx=dblatest&id=GUID-33D575DD-47FF-42B1-A82F-049D3F2A8791> `__.
863+
848864 - On Windows, if you are not using
849865 :meth: `~cx_Oracle.init_oracle_client() `, then restart your command prompt
850866 and use ``set PATH `` to check the environment variable has the correct
851867 Oracle Client listed before any other Oracle directories.
868+
852869 - On Windows, use the ``DIR `` command to verify that ``OCI.DLL `` exists in
853870 the directory passed to ``init_oracle_client() `` or set in ``PATH ``.
871+
854872 - On Windows, check that the correct `Windows Redistributables
855873 <https://oracle.github.io/odpi/doc/installation.html#windows> `__ have
856874 been installed.
875+
857876 - On Linux, check the ``LD_LIBRARY_PATH `` environment variable contains
858877 the Oracle Client library directory. If you are using Oracle Instant
859878 Client, a preferred alternative is to ensure a file in the
860879 ``/etc/ld.so.conf.d `` directory contains the path to the Instant Client
861880 directory, and then run ``ldconfig ``.
881+
862882 - On macOS, make sure you are not using the bundled Python (use `Homebrew
863883 <https://brew.sh> `__ or `Python.org
864884 <https://www.python.org/downloads> `__ instead). If you are not using
0 commit comments