Skip to content

Commit e3d3764

Browse files
Installation doc improvements.
1 parent 386d6db commit e3d3764

File tree

1 file changed

+22
-13
lines changed

1 file changed

+22
-13
lines changed

doc/src/installation.rst

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -408,23 +408,32 @@ To use cx_Oracle with Oracle Instant Client zip files:
408408
<http://www.oracle.com/technetwork/topics/winsoft-085727.html>`__, matching your
409409
Python architecture.
410410

411-
2. Unzip the package into a single directory that is accessible to your
412-
application, for example ``C:\oracle\instantclient_18_3``.
413-
414-
3. Set the environment variable ``PATH`` to include the path that you
415-
created in step 2. For example, on Windows 7, update ``PATH`` in
416-
Control Panel -> System -> Advanced System Settings -> Advanced ->
417-
Environment Variables -> System Variables -> PATH. Alternatively
418-
use ``SET`` to change your ``PATH`` in each command prompt window
419-
before you run python.
411+
2. Unzip the package into a directory that is accessible to your
412+
application. For example unzip
413+
``instantclient-basic-windows.x64-18.3.0.0.0dbru.zip`` to
414+
``C:\oracle\instantclient_18_3``.
420415

421-
If you have other Oracle software installed, then when you use
422-
Python you will need to make sure that the Instant Client
423-
directory, e.g. ``C:\oracle\instantclient_18_3``, occurs in
424-
``PATH`` before any other Oracle directories.
416+
3. Add this directory to the ``PATH`` environment variable. For
417+
example, on Windows 7, update ``PATH`` in Control Panel -> System
418+
-> Advanced System Settings -> Advanced -> Environment Variables ->
419+
System Variables -> PATH. The Instant Client directory must occur
420+
in ``PATH`` before any other Oracle directories.
425421

426422
Restart any open command prompt windows.
427423

424+
To avoid interfering with existing tools that require other Oracle
425+
Client versions, instead of updating the system-wide ``PATH`` variable, you
426+
may prefer to write a batch file that sets ``PATH``, for example::
427+
428+
REM mypy.bat
429+
SET PATH=C:\oracle\instantclient_18_3;%PATH%
430+
python %*
431+
432+
Invoke this batch file everytime you want to run python.
433+
434+
Alternatively use ``SET`` to change your ``PATH`` in each command
435+
prompt window before you run python.
436+
428437
4. Oracle Instant Client libraries require a Visual Studio redistributable with a 64-bit or 32-bit architecture to match Instant Client's architecture. Each Instant Client version requires a different redistributable version:
429438

430439
- For Instant Client 18 or 12.2 install `VS 2013 <https://support.microsoft.com/en-us/kb/2977003#bookmark-vs2013>`__

0 commit comments

Comments
 (0)