Go to file
Anthony Tuininga 2938d07b35 Account for the situation where the directory passed in is the binary diretory
but the libraries are in a parallel directory.
2008-09-26 21:17:20 +00:00
doc Added support for proxy authentication in session pools as requested by Michal 2008-09-15 19:41:54 +00:00
html Preparing to release 4.4. 2008-06-06 15:31:18 +00:00
samples Ensure these files have native line endings on all platforms. 2007-10-02 02:58:33 +00:00
test Added support for proxy authentication in session pools as requested by Michal 2008-09-15 19:41:54 +00:00
Callback.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Connection.c Added support for proxy authentication in session pools as requested by Michal 2008-09-15 19:41:54 +00:00
Cursor.c As requested by Helge Tesdal, allow an output type handler to be specified 2008-08-05 03:32:19 +00:00
CursorVar.c Removed support for Oracle 8i since Oracle support for it was dropped long 2008-06-28 04:44:04 +00:00
DateTimeVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Environment.c Use a cx_Oracle.Error instance rather than a string to hold the error as 2008-09-26 04:52:47 +00:00
Error.c Use a cx_Oracle.Error instance rather than a string to hold the error as 2008-09-26 04:52:47 +00:00
ExternalDateTimeVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
ExternalLobVar.c Added Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS around each blocking 2008-03-21 21:29:13 +00:00
ExternalObjectVar.c Added support for timestamp attributes in objects. 2008-09-12 22:46:08 +00:00
HISTORY.txt Added support for setting CLIENT_DRIVER in V$SESSION_CONNECT_INFO in Oracle 11g 2008-06-04 17:28:43 +00:00
LICENSE.txt Transformed documentation to new format using restructured text. Thanks to 2008-05-22 15:00:39 +00:00
LobVar.c Added Py_BEGIN_ALLOW_THREADS and Py_END_ALLOW_THREADS around each blocking 2008-03-21 21:29:13 +00:00
LongVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
MANIFEST.in Fix support for packaging documentation after switching to reST format. 2008-05-28 20:43:47 +00:00
NumberVar.c Fixed support for native doubles and floats in Oracle 10g; added new type 2007-06-27 14:34:34 +00:00
ObjectType.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
ObjectVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
README.txt Added comments indicating that an Oracle client is required since so many 2008-09-10 20:40:00 +00:00
SessionPool.c Added support for proxy authentication in session pools as requested by Michal 2008-09-15 19:41:54 +00:00
StringVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
TimestampVar.c Added support for timestamp attributes in objects. 2008-09-12 22:46:08 +00:00
Transforms.c Added support for timestamp attributes in objects. 2008-09-12 22:46:08 +00:00
Variable.c Use a cx_Oracle.Error instance rather than a string to hold the error as 2008-09-26 04:52:47 +00:00
cx_Oracle.c Inital cut of support for DRCP and events mode as requested by Christopher 2008-07-06 05:08:01 +00:00
setup.py Account for the situation where the directory passed in is the binary diretory 2008-09-26 21:17:20 +00:00

README.txt

Open Source Python/Oracle Utility - cx_Oracle

cx_Oracle is a Python extension module that allows access to Oracle and 
conforms to the Python database API 2.0 specifications with a few exceptions.

See http://www.python.org/topics/database/DatabaseAPI-2.0.html for more
information on the Python database API specification.

For comments, contact Anthony Tuininga at anthony.tuininga@gmail.com or use the
mailing list at http://lists.sourceforge.net/lists/listinfo/cx-oracle-users

Please note that an Oracle client (or server) installation is required in order
to use cx_Oracle. If you do not require the tools that come with a full client
installation, it is recommended to install the Instant Client which is far
easier to install.


BINARY INSTALL:
Place the file cx_Oracle.pyd or cx_Oracle.so anywhere on your Python path.


SOURCE INSTALL:
This module has been built with Oracle 9.2.0, 10.2.0, 11.1.0 on Linux,
Solaris and Windows. It will likely build on other platforms and other Oracle
versions but I haven't tried them. Use the provided setup.py to build and
install the module which makes use of the distutils module. Note that on
Windows, I have used mingw32 (http://www.mingw.org) and the module will not
build with MSVC without modification. The commands required to build and
install the module are as follows:

	python setup.py build
	python setup.py install


USAGE EXAMPLE:

import cx_Oracle

# connect via SQL*Net string or by each segment in a separate argument
#connection = cx_Oracle.connect("user/password@TNS")
connection = cx_Oracle.connect("user", "password", "TNS")

cursor = connection.cursor()
cursor.arraysize = 50
cursor.execute("""
        select Col1, Col2, Col3
        from SomeTable
        where Col4 = :arg_1
          and Col5 between :arg_2 and :arg_3""",
        arg_1 = "VALUE",
        arg_2 = 5,
        arg_3 = 15)
for column_1, column_2, column_3 in cursor.fetchall():
    print "Values:", column_1, column_2, column_3


For more examples, please see the test suite in the test directory and the
samples in the samples directory. You can also look at the scripts in the
cx_OracleTools (http://cx-oracletools.sourceforge.net) and the modules in the
cx_PyOracleLib (http://cx-pyoraclelib.sourceforge.net) projects.


EXCEPTIONS:
The only exception to the DB API specification is the lack of a nextset()
method which is not supported by Oracle.

Please see the included documentation for additional information.