You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/src/installation.rst
+22-13Lines changed: 22 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -408,23 +408,32 @@ To use cx_Oracle with Oracle Instant Client zip files:
408
408
<http://www.oracle.com/technetwork/topics/winsoft-085727.html>`__, matching your
409
409
Python architecture.
410
410
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``.
420
415
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.
425
421
426
422
Restart any open command prompt windows.
427
423
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
+
428
437
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:
429
438
430
439
- For Instant Client 18 or 12.2 install `VS 2013 <https://support.microsoft.com/en-us/kb/2977003#bookmark-vs2013>`__
0 commit comments