1
1
# Open Source Python/Oracle Utility - cx_Oracle
2
2
3
- cx_Oracle is a Python extension module that enables access to Oracle Database
4
- and conforms to the Python database API 2.0 specifications with a considerable
5
- number of additions and a couple of exclusions. The time data type is not
6
- supported by Oracle and is therefore not implemented. The method
7
- cursor.nextset() is not implemented either as the DB API specification assumes
8
- an implementation of cursors that does not fit well with Oracle's
9
- implementation of cursors and implicit results. See the method
10
- cursor.getimplicitresults() for more information.
11
-
12
- See [ PEP 249] [ 1 ] for more information on the Python database API specification.
13
- See the [ documentation] [ 2 ] for a complete description of the module's
14
- capabilities.
3
+ cx_Oracle is a Python extension module that enables access to Oracle Database.
4
+ It conforms to the [ Python database API 2.0 specification] [ 1 ] with a
5
+ considerable number of additions and a couple of exclusions.
15
6
16
- cx_Oracle is licensed under a BSD license which you can find [ here] [ 3 ] .
7
+ cx_Oracle is licensed under a [ BSD license] which you can find [ here] [ 3 ] .
17
8
18
- cx_Oracle has been tested with Python version 2.7, and with versions 3.4 and
9
+ cx_Oracle 6 has been tested with Python version 2.7, and with versions 3.4 and
19
10
higher. You can use cx_Oracle with Oracle 11.2, 12.1 and 12.2 client libraries,
20
11
allowing connection to multiple Oracle Database versions. Oracle's standard
21
12
client-server version interoperability allows connection to both older and
22
- newer databases, for example Oracle 11.2 client libraries can connect to Oracle
23
- Database 10.2 or later.
24
-
25
- Please note that an Oracle client (or server) installation is required in order
26
- to use cx_Oracle. If you do not require the tools that come with a full client
27
- installation, it is recommended to install the [ Instant Client] [ 4 ] .
28
- which is far easier to install.
13
+ newer databases, for example Oracle 12.2 client libraries can connect to Oracle
14
+ Database 11.2 or later.
29
15
30
16
## Help
31
17
@@ -38,35 +24,33 @@ See the [cx_Oracle Documentation][2] and [Release Notes][14].
38
24
39
25
## Installation
40
26
41
- The simplest way to install cx_Oracle 6 Beta is with pip:
27
+ See [ cx_Oracle Installation ] [ 15 ] for detailed instructions.
42
28
43
- python -m pip install cx_Oracle --pre
29
+ - The simplest way to install cx_Oracle 6 RC2 is with pip:
44
30
45
- If a binary wheel package is not available on [ PyPI] [ 6 ] for your
46
- platform, the source package will be used.
31
+ ` python -m pip install cx_Oracle --pre `
47
32
48
- If you prefer, the source package can be downloaded manually from [ PyPI] [ 6 ] and
49
- extracted, after which the following commands should be run:
33
+ If a binary wheel package is not available on [ PyPI] [ 6 ] for your platform, the
34
+ source package will be used.
50
35
51
- python setup.py build
52
- python setup.py install
53
-
54
- Note that if you download a source zip file directly from GitHub that
55
- you will also need to download an [ ODPI-C] [ 10 ] source zip file and
56
- extract it inside a directory called "odpi".
36
+ - After cx_Oracle is installed, Oracle client libraries must also be installed
37
+ and configured. These can be from Oracle Instant Client, from a local Oracle
38
+ Database, or from a full Oracle Client installation.
57
39
58
- After cx_Oracle is installed, Oracle client libraries must also be
59
- installed and configured. If you need the libraries, you can download
60
- and unzip the [ Oracle Instant Client] [ 4 ] 'Basic' package for your
61
- platform and set PATH, LD_LIBRARY_PATH, or similar platform-specific
62
- library path loading environment. See the
63
- [ installation notes for ODPI-C] [ 13 ] for help with installing and configuring an
64
- Oracle client.
40
+ If you need the libraries, download and unzip the [ Oracle Instant Client] [ 4 ]
41
+ 'Basic' package for your platform and set PATH, LD_LIBRARY_PATH, or similar
42
+ platform-specific library path loading environment. See
43
+ the [ installation notes for ODPI-C] [ 13 ] for help.
65
44
66
45
Versions 11.2, 12.1 and 12.2 of the Oracle Client libraries on Linux,
67
46
Windows and macOS are supported. Users have also reported success
68
47
with other platforms.
69
48
49
+ Note that if you download a source zip file directly from GitHub that
50
+ you will also need to download an [ ODPI-C] [ 10 ] source zip file and
51
+ extract it inside the directory called "odpi".
52
+
53
+
70
54
## Usage Example
71
55
72
56
@@ -176,6 +160,13 @@ the modules in the [cx_PyOracleLib][8] projects.
176
160
177
161
- Oracle Database High Availability Features, such as FAN notifications and Transaction Guard support.
178
162
163
+ ** DB API specification exclusions** : The time data type is not
164
+ supported by Oracle and is therefore not implemented. The method
165
+ ` cursor.nextset() ` is not implemented either as the DB API specification assumes
166
+ an implementation of cursors that does not fit well with Oracle's implementation
167
+ of cursors and implicit results. See the method ` cursor.getimplicitresults() `
168
+ for more information.
169
+
179
170
[ 1 ] : https://www.python.org/dev/peps/pep-0249
180
171
[ 2 ] : http://cx-oracle.readthedocs.io
181
172
[ 3 ] : https://github.com/oracle/python-cx_Oracle/blob/master/LICENSE.txt
@@ -190,3 +181,4 @@ the modules in the [cx_PyOracleLib][8] projects.
190
181
[ 12 ] : https://github.com/oracle/python-cx_Oracle/tree/master/samples
191
182
[ 13 ] : https://oracle.github.io/odpi/doc/installation.html
192
183
[ 14 ] : http://cx-oracle.readthedocs.io/en/latest/releasenotes.html
184
+ [ 15 ] : http://cx-oracle.readthedocs.io/en/latest/installation.html
0 commit comments