Source

cx_Oracle /

Filename Size Date modified Message
html
test
10.5 KB
38.6 KB
63.9 KB
5.4 KB
7.4 KB
6.8 KB
4.1 KB
8.5 KB
18.0 KB
10.4 KB
25.6 KB
1.6 KB
10.3 KB
5.3 KB
1015 B
17.4 KB
18.0 KB
7.6 KB
413 B
1.9 KB
16.8 KB
10.0 KB
8.2 KB
1.9 KB
40.0 KB
15.1 KB
70 B
3.9 KB
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.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.