Go to file
Anthony Tuininga 3033c3d554 Tweak the building of RPM packages in order to include the Oracle version and
Python version in the name.
2007-09-29 22:07:26 +00:00
doc Ensure that the copyright notices are on different lines. 2007-07-28 22:38:53 +00:00
html Last public release from Computronix. 2007-06-13 21:15:16 +00:00
test Last public release from Computronix. 2007-06-13 21:15:16 +00:00
Callback.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Connection.c Added support for connection.stmtcachesize which allows for both reading and 2007-07-28 05:26:57 +00:00
Cursor.c Added support for connection.stmtcachesize which allows for both reading and 2007-07-28 05:26:57 +00:00
CursorVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
DateTimeVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Environment.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Error.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
ExternalDateTimeVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
ExternalLobVar.c Added methods open(), close(), isopen() and getchunksize() in order to improve 2007-06-13 21:25:26 +00:00
ExternalObjectVar.c Last public release from Computronix. 2007-06-13 21:15:16 +00:00
HISTORY.txt Preparing to release version 4.3.2. 2007-07-28 22:05:10 +00:00
LICENSE.txt Preparing to release version 4.3.2. 2007-07-28 22:05:10 +00:00
LobVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
LongVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
MANIFEST.in Use qualified wildcards as otherwise Windows includes files from the .svn 2007-09-21 13:43:19 +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
PKG-INFO Use SourceForge to host now instead of the starship since it is no longer 2007-08-03 04:23:46 +00:00
README.txt Last public release from Computronix. 2007-06-13 21:15:16 +00:00
SessionPool.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
StringVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
TimestampVar.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Transforms.c Replaced all tabs with spaces. 2007-06-27 14:00:34 +00:00
Variable.c Fixed support for native doubles and floats in Oracle 10g; added new type 2007-06-27 14:34:34 +00:00
cx_Oracle.c Fixed support for native doubles and floats in Oracle 10g; added new type 2007-06-27 14:34:34 +00:00
setup.py Tweak the building of RPM packages in order to include the Oracle version and 2007-09-29 22:07:26 +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


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 8.1.7, 9.2.0 and 10.1.0 on Linux,
Solaris, HP/UX, Tru64 Unix 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


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.