Skip to content

Commit 2a34daf

Browse files
Improve documentation; correct spelling mistakes.
1 parent 2ba66bb commit 2a34daf

File tree

7 files changed

+53
-25
lines changed

7 files changed

+53
-25
lines changed

doc/src/connection.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Connection Object
2323
.. method:: Connection.__exit__()
2424

2525
The exit point for the connection as a context manager. This will close
26-
the connection and roll back any uncomitted transaction.
26+
the connection and roll back any uncommitted transaction.
2727

2828
.. note::
2929

@@ -622,7 +622,7 @@ Connection Object
622622
The subscription can be deregistered in the database by calling the
623623
function :meth:`~Connection.unsubscribe()`. If this method is not
624624
called and the connection that was used to create the subscription is
625-
explictly closed using the function :meth:`~Connection.close()`, the
625+
explicitly closed using the function :meth:`~Connection.close()`, the
626626
subscription will not be deregistered in the database.
627627

628628

doc/src/cursor.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Cursor Object
260260
cursor's arraysize attribute can affect the performance of this operation.
261261

262262
The number of rows to fetch is specified by the parameter. If it is not
263-
given, the cursor's arrysize attribute determines the number of rows to be
263+
given, the cursor's arraysize attribute determines the number of rows to be
264264
fetched. If the number of rows available to be fetched is fewer than the
265265
amount requested, fewer rows will be returned.
266266

@@ -321,7 +321,7 @@ Cursor Object
321321
.. method:: Cursor.getbatcherrors()
322322

323323
Retrieve the exceptions that took place after a call to
324-
:meth:`~Cursor.executemany()` with batcherors enabled. This will return a
324+
:meth:`~Cursor.executemany()` with batcherrors enabled. This will return a
325325
list of Error objects, one error for each iteration that failed. The offset
326326
can be determined by looking at the offset attribute of the error object.
327327

@@ -519,7 +519,7 @@ Cursor Object
519519
.. method:: Cursor.var(dataType, [size, arraysize, inconverter, outconverter, \
520520
typename, encodingErrors])
521521

522-
Create a variable with the specified charactistics. This method was
522+
Create a variable with the specified characteristics. This method was
523523
designed for use with PL/SQL in/out variables where the length or type
524524
cannot be determined automatically from the Python object passed in or for
525525
use in input and output type handlers defined on cursors or connections.

doc/src/installation.rst

Lines changed: 38 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ Quick Start cx_Oracle Installation
4242
the source package will be downloaded instead. This will be compiled
4343
and the resulting binary installed.
4444

45+
If you are behind a proxy, specify your proxy server::
46+
47+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
48+
4549
- Add Oracle 19, 18, 12 or 11.2 client libraries to your operating
4650
system library search path such as ``PATH`` on Windows or
4751
``LD_LIBRARY_PATH`` on Linux. On macOS move the files to ``~/lib``
@@ -64,10 +68,10 @@ Quick Start cx_Oracle Installation
6468
<https://www.oracle.com/database/technologies/appdev/xe.html>`__
6569
release.
6670

67-
Version 19, 18 and 12.2 client libraries can connect to Oracle Database 11.2 or
68-
greater. Version 12.1 client libraries can connect to Oracle Database
69-
10.2 or greater. Version 11.2 client libraries can connect to Oracle
70-
Database 9.2 or greater.
71+
Version 19, 18 and 12.2 client libraries can connect to Oracle Database 11.2
72+
or greater. Version 12.1 client libraries can connect to Oracle Database 10.2
73+
or greater. Version 11.2 client libraries can connect to Oracle Database 9.2
74+
or greater.
7175

7276
The database abstraction layer in cx_Oracle is `ODPI-C
7377
<https://github.com/oracle/odpi>`__, which means that the `ODPI-C
@@ -189,6 +193,10 @@ install cx_Oracle from `PyPI
189193

190194
python -m pip install cx_Oracle --upgrade
191195

196+
If you are behind a proxy, specify your proxy server::
197+
198+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
199+
192200
This will download and install a pre-compiled binary `if one is
193201
available <https://pypi.python.org/pypi/cx_Oracle>`__ for your
194202
architecture. If a pre-compiled binary is not available, the source
@@ -375,6 +383,10 @@ package to install cx_Oracle from `PyPI
375383

376384
python -m pip install cx_Oracle --upgrade
377385

386+
If you are behind a proxy, specify your proxy server::
387+
388+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
389+
378390
This will download and install a pre-compiled binary `if one is
379391
available <https://pypi.python.org/pypi/cx_Oracle>`__ for your
380392
architecture. If a pre-compiled binary is not available, the source
@@ -433,12 +445,14 @@ To use cx_Oracle with Oracle Instant Client zip files:
433445
SET PATH=C:\oracle\instantclient_18_3;%PATH%
434446
python %*
435447

436-
Invoke this batch file everytime you want to run python.
448+
Invoke this batch file every time you want to run python.
437449

438450
Alternatively use ``SET`` to change your ``PATH`` in each command
439451
prompt window before you run python.
440452

441-
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:
453+
4. Oracle Instant Client libraries require a Visual Studio redistributable with
454+
a 64-bit or 32-bit architecture to match Instant Client's architecture.
455+
Each Instant Client version requires a different redistributable version:
442456

443457
- For Instant Client 18 or 12.2 install `VS 2013 <https://support.microsoft.com/en-us/kb/2977003#bookmark-vs2013>`__
444458
- For Instant Client 12.1 install `VS 2010 <https://support.microsoft.com/en-us/kb/2977003#bookmark-vs2010>`__
@@ -505,6 +519,10 @@ package to install cx_Oracle from `PyPI
505519

506520
python -m pip install cx_Oracle --upgrade
507521

522+
If you are behind a proxy, specify your proxy server::
523+
524+
python -m pip install cx_Oracle --proxy=http://proxy.example.com:80 --upgrade
525+
508526
The source will be downloaded, compiled, and the resulting binary
509527
installed.
510528

@@ -650,17 +668,27 @@ If installation fails:
650668
using a different method. **Google anything that looks like an error.**
651669
Try some potential solutions.
652670

653-
- Was there a network connection error? Do you need to see the environment
654-
variables ``http_proxy`` and/or ``https_proxy``?
671+
- Was there a network connection error? Do you need to set the
672+
environment variables ``http_proxy`` and/or ``https_proxy``? Or
673+
try ``pip install --proxy=http://proxy.example.com:80 cx_Oracle
674+
--upgrade``?
675+
676+
- If upgrading gave no errors but the old version is still
677+
installed, try ``pip install cx_Oracle --upgrade
678+
--force-reinstall``
679+
680+
- If you do not have access to modify your system version of
681+
Python, can you use ``pip install cx_Oracle --upgrade --user``
682+
or venv?
655683

656684
- Do you get the error "``No module named pip``"? The pip module is builtin
657685
to Python from version 2.7.9 but is sometimes removed by the OS. Use the
658686
venv module (builtin to Python 3.x) or virtualenv module (Python 2.x)
659687
instead.
660688

661689
- Do you get the error "``fatal error: dpi.h: No such file or directory``"
662-
when building from source code? Ensure that your source installation has a
663-
subdirectory called "odpi" containing files. If missing, review the
690+
when building from source code? Ensure that your source installation has
691+
a subdirectory called "odpi" containing files. If missing, review the
664692
section on `Install Using GitHub`_.
665693

666694
If using cx_Oracle fails:

doc/src/module.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Module Interface
6969
The pool parameter is expected to be a
7070
:ref:`session pool object <sesspool>` and the use of this parameter is the
7171
equivalent of calling :meth:`SessionPool.acquire()`. Parameters not
72-
acecpted by that method are ignored.
72+
accepted by that method are ignored.
7373

7474
The threaded parameter is expected to be a boolean expression which
7575
indicates whether or not Oracle should wrap accesses to connections with a
@@ -78,7 +78,7 @@ Module Interface
7878

7979
The events parameter is expected to be a boolean expression which indicates
8080
whether or not to initialize Oracle in events mode. This is required for
81-
continuous query notification and high availablity event notifications.
81+
continuous query notification and high availability event notifications.
8282

8383
The cclass parameter is expected to be a string and defines the connection
8484
class for database resident connection pooling (DRCP).
@@ -412,7 +412,7 @@ parameter for the :meth:`Connection.deq()` method.
412412
.. data:: DEQ_BROWSE
413413

414414
This constant is used to specify that dequeue should read the message
415-
without acquiring any lock on the message (eqivalent to a select
415+
without acquiring any lock on the message (equivalent to a select
416416
statement).
417417

418418

@@ -1231,7 +1231,7 @@ Exceptions
12311231
.. exception:: OperationalError
12321232

12331233
Exception raised for errors that are related to the operation of the
1234-
database but are not necessarily under the control of the progammer. It is
1234+
database but are not necessarily under the control of the programmer. It is
12351235
a subclass of DatabaseError.
12361236

12371237

doc/src/releasenotes.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Version 6.3.1 (May 2018)
349349
- Ensure that a call to unregister a subscription only occurs if the
350350
subscription is still registered.
351351
- Ensure that before a statement is executed any buffers used for DML
352-
returning statments are reset.
352+
returning statements are reset.
353353

354354
#) Ensure that behavior with cx_Oracle.__future__.dml_ret_array_val not
355355
set or False is the same as the behavior in cx_Oracle 6.2
@@ -548,7 +548,7 @@ Version 6.0.3 (November 2017)
548548
<https://oracle.github.io/odpi/doc/releasenotes.html#
549549
version-2-0-3-november-6-2017>`__.
550550

551-
- Prevent use of unitialized data in certain cases (`issue 77
551+
- Prevent use of uninitialized data in certain cases (`issue 77
552552
<https://github.com/oracle/python-cx_Oracle/issues/77>`__).
553553
- Attempting to ping a database earlier than 10g results in error
554554
"ORA-1010: invalid OCI operation", but that implies a response from the
@@ -1252,7 +1252,7 @@ Version 4.3.2 (August 2007)
12521252
NATIVE_FLOAT to allow specification of a variable of that specific type
12531253
where desired. Thanks to D.R. Boxhoorn for pointing out the fact that this
12541254
was not working properly when the arraysize was anything other than 1.
1255-
#) When calling connection.begin(), only create a new tranasction handle if
1255+
#) When calling connection.begin(), only create a new transaction handle if
12561256
one is not already associated with the connection. Thanks to Andreas Mock
12571257
for discovering this and for Amaury Forgeot d'Arc for diagnosing the
12581258
problem and pointing the way to a solution.
@@ -1399,7 +1399,7 @@ Version 4.1.1 (December 2005)
13991399
can drastically affect performance of queries since this seems to be a
14001400
common misunderstanding of first time users of cx_Oracle.
14011401
#) Add a comment indicating that on HP-UX Itanium with Oracle 10g the library
1402-
ttsh10 must alos be linked against. Thanks to Bernard Delmee for the
1402+
ttsh10 must also be linked against. Thanks to Bernard Delmee for the
14031403
information.
14041404

14051405

doc/src/session_pool.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ SessionPool Object
5050
.. method:: SessionPool.close(force=False)
5151

5252
Close the session pool now, rather than when the last reference to it is
53-
released, which makes it unsable for further work.
53+
released, which makes it unusable for further work.
5454

5555
If any connections have been acquired and not released back to the pool
5656
this method will fail unless the force parameter is set to True.

doc/src/soda.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ SODA Collection Object
228228

229229
.. attribute:: SodaCollection.metadata
230230

231-
This read-only attribute returns a dicationary containing the metadata that
231+
This read-only attribute returns a dictionary containing the metadata that
232232
was used to create the collection. See this `collection metadata reference
233233
<https://www.oracle.com/pls/topic/
234234
lookup?ctx=dblatest&id=GUID-49EFF3D3-9FAB-4DA6-BDE2-2650383566A3>`__

0 commit comments

Comments
 (0)