Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python.announce > #2596
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Anthony Tuininga <anthony.tuininga@gmail.com> |
| Newsgroups | comp.lang.python.announce |
| Subject | cx_Oracle 6.0 |
| Date | Mon, 14 Aug 2017 16:33:03 -0600 |
| Lines | 154 |
| Approved | python-announce-list@python.org |
| Message-ID | <mailman.41.1502810140.2689.python-announce-list@python.org> (permalink) |
| References | <CAE1XR-7VV66mg99NaS0mT-CLK0rsAkoZRMjC-39PzFbTbhLgcg@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| X-Trace | news.uni-berlin.de o3E2TrrhWne2944/MAeggQlVnWM8p/ccSPTIWkOoLLyQ== |
| Return-Path | <anthony.tuininga@gmail.com> |
| X-Original-To | python-announce@python.org |
| Delivered-To | python-announce-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'api.': 0.05; 'cache': 0.05; 'handler': 0.05; 'schema': 0.05; 'url:github': 0.05; 'attributes': 0.07; 'deprecated': 0.07; 'desired.': 0.07; 'float': 0.07; 'objects,': 0.07; 'properly.': 0.07; 'pypi': 0.07; 'scripts': 0.08; 'python': 0.09; 'abstraction': 0.09; 'adjusted': 0.09; 'collections': 0.09; 'created,': 0.09; 'cursor': 0.09; 'leaks': 0.09; 'objects.': 0.09; 'prevents': 0.09; 'skip:d 60': 0.09; 'specifying': 0.09; 'statements': 0.09; 'url:issues': 0.09; 'api': 0.10; '2.7': 0.11; 'exception': 0.13; 'encoding': 0.15; 'interpreter': 0.15; '6.0': 0.16; 'acted': 0.16; 'caching': 0.16; 'columns': 0.16; 'conforms': 0.16; 'crashes': 0.16; 'detected;': 0.16; 'enhancements': 0.16; 'highlighted': 0.16; 'install.': 0.16; 'stub': 0.16; 'to:addr:lists.sourceforge.net': 0.16; '\xc2\xa0-': 0.16; '(in': 0.16; 'string': 0.17; 'attribute': 0.18; 'context': 0.18; 'linux,': 0.18; 'method.': 0.18; 'suggested': 0.18; 'appropriate': 0.18; 'windows': 0.20; 'library': 0.20; 'platforms': 0.20; 'changes': 0.20; '8bit%:3': 0.20; 'extension': 0.20; '3.x': 0.22; 'bytes': 0.22; 'dropped': 0.22; 'element': 0.22; 'variables.': 0.22; 'consistent': 0.23; 'instead.': 0.23; "python's": 0.23; 'url:io': 0.23; 'module': 0.24; 'output': 0.24; 'summary': 0.24; 'message-id:@mail.gmail.com': 0.24; 'missing': 0.25; 'testing': 0.25; 'installation': 0.26; 'linux': 0.26; 'values': 0.26; 'define': 0.27; 'disk': 0.27; 'processed': 0.27; 'specified': 0.27; '2.x': 0.29; 'i/o': 0.29; 'parameter': 0.29; 'objects': 0.29; 'skip:( 20': 0.29; 'error': 0.29; 'classes': 0.30; 'connection': 0.30; 'code': 0.30; 'getting': 0.30; '2.0': 0.30; 'connections': 0.30; 'parameters': 0.30; 'raw': 0.30; 'url:en': 0.31; 'install': 0.31; 'received:google.com': 0.32; 'creating': 0.32; 'handling': 0.32; 'prevent': 0.32; 'statement': 0.32; 'possible': 0.33; 'environment': 0.33; 'facilitate': 0.33; 'instead,': 0.33; 'passwords': 0.33; 'raised': 0.33; 'scope': 0.33; 'skip:h 60': 0.33; 'specify': 0.33; 'values.': 0.33; 'supported': 0.34; 'allows': 0.34; 'another': 0.34; 'instead': 0.35; 'version': 0.35; 'easiest': 0.35; 'unicode': 0.35; 'file': 0.35; 'well.': 0.36; 'skip:& 10': 0.36; 'there': 0.36; 'should': 0.37; 'received:209.85': 0.37; 'certain': 0.37; 'here:': 0.63; 'skip:n 10': 0.63; 'different': 0.63; 'layer': 0.66; 'url:20': 0.66; 'complete': 0.66; 'to:no real name:2**2': 0.66; 'avoid': 0.72; 'below:': 0.73; 'url:4': 0.75; 'improved': 0.76; 'permit': 0.76; 'url:10': 0.76; '*data': 0.84; 'blob': 0.84; 'manages': 0.84; 'pools': 0.84; 'removals': 0.84; 'to:addr:python-announce': 0.84; 'edition': 0.87; '5.3': 0.91; 'to:addr:db-sig': 0.91; 'monitored.': 0.93; 'url:23': 0.93; 'instant': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Wl6P8pL1DdS9csP5knDxOpRn1dARRLS0AYuVerradyU=; b=OEo7UMCZUygE6XGEE0QFWvIvwcaOQPoAbHfSeYSQM+AHxk4XU50LtwWY1+dho6CczG wSrjmwGatTLv+auPiyHs2EE6wZPGIzqv8SzaHNWgEAij0WlHoZyQQusu1UWHDMDvlMvd O0P/fHUC2/i/F78yFm7zemHCbTLR6pxo5ZDRRWAkWTycNPCUAe296AChMt09pyaLiVzu SD8QbdQi6joe6USOlXXscmaQnKooLY4OiXkHXz+z/8EnV7RHu8J7ATO3VA2Ei5ctdDCM ay7tZnZgwEUyEf4apVMf/G78Quh4aaN25bIGTax3aWEc5yhBIRVvf7ZUT7XdXq0D2tIQ AUUg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Wl6P8pL1DdS9csP5knDxOpRn1dARRLS0AYuVerradyU=; b=OgSlaw0YZK0gcCfQCzFPUUGipKDj50jROyN18tx7p9A4v+gX19JAmw07FWlNHUOqvQ 7bIkaMq37WkMhjUjeTm7AAsyZ1PQDX6zfqHfxrLUpvFHGB2hbe8UTarv9z9wo5XW7hcn GTQezE1OgM6MRnI6VrUQjCz8DmXeSk5E7kvv2Cw5DG0gcu9eshUNFksbQAgQRhfUCifT PoDeDoculQPONJI3vs/EcdB7cTHdPXNKKzSuVyUxjBSBOWhAAUSjedBw/Yk1ue4wmY1T XRlZlNbepi7wC265LHBSz8K/Dts+/Xsb7zsmt0nnp6R7JjP12eFYEkfKG9f3yBF+dbKD VLiQ== |
| X-Gm-Message-State | AHYfb5hmHkQels7cqkvKyxvUpYzymqRLL4HHJRBsq2pSXvWGIltx5B+/ XjzASMWAzbN/QbKf93EN66LAeU2RUliG |
| X-Received | by 10.36.162.72 with SMTP id o8mr435648iti.56.1502749984366; Mon, 14 Aug 2017 15:33:04 -0700 (PDT) |
| X-Mailman-Approved-At | Tue, 15 Aug 2017 11:15:38 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.24 |
| X-BeenThere | python-announce-list@python.org |
| X-Mailman-Version | 2.1.24 |
| Precedence | list |
| List-Id | Announcement-only list for the Python programming language <python-announce-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-announce-list/> |
| List-Post | <mailto:python-announce-list@python.org> |
| List-Help | <mailto:python-announce-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAE1XR-7VV66mg99NaS0mT-CLK0rsAkoZRMjC-39PzFbTbhLgcg@mail.gmail.com> |
| Xref | csiph.com comp.lang.python.announce:2596 |
Show key headers only | View raw
What is cx_Oracle?
cx_Oracle is a Python extension module that enables access to Oracle
Database for Python 3.x and 2.x and conforms to the Python database API 2.0
specifications with a number of enhancements.
Where do I get it?
https://oracle.github.io/python-cx_Oracle
The easiest method to install cx_Oracle 6.0 is via pip as in
python -m pip install cx_Oracle --upgrade
What's new since 5.3?
This is the first production release of version 6.0. The complete release
notes can be found here: http://cx-oracle.readthe
docs.io/en/latest/releasenotes.html#version-6-0-august-2017.
A summary of the changes compared to version 5.3 is found below:
*Highlighted Enhancements*
- Has been re-implemented to use the new ODPI-C (
https://oracle.github.io/odpi) abstraction layer for Oracle Database. The
cx_Oracle API is unchanged. The cx_Oracle design, build and linking process
has improved because of ODPI-C.
- Now has Python Wheels available for install. This is made possible by the
ODPI-C architecture. Windows installers and Linux RPMs are no longer
produced since PyPI no longer supports them.
- Has less code in Python's Global Interpreter Lock, giving better
scalability.
- Added support for universal rowids.
- Added support for DML returning of multiple rows.
- Now associates LOB locators to LOB objects so they are not overwritten on
database round trips.
*Installation Changes*
- On Linux, cx_Oracle 6 no longer uses instant client RPMs automatically.
You must set LD_LIBRARY_PATH or use ldconfig to locate the Oracle Client
library.
- On platforms other than Windows, if ORACLE_HOME is set (in a database or
full client installation), remove requirement to set LD_LIBRARY_PATH in
order to locate the Oracle Client library (https://github.com/oracle/odp
i/issues/20).
*Connection Management Enhancements*
- Prevent closing the connection when there are any open statements or LOBs
and add new error "DPI-1054: connection cannot be closed when open
statements or LOBs exist" when this situation is detected; this is needed
to prevent crashes under certain conditions when statements or LOBs are
being acted upon while at the same time (in another thread) a connection is
being closed; it also prevents leaks of statements and LOBs when a
connection is returned to a session pool.
- Added attribute SessionPool.stmtcachesize to support getting and setting
the default statement cache size for connections in the pool.
- Added attribute Connection.dbop to support setting the database operation
that is to be monitored.
- Added attribute Connection.handle to facilitate testing the creation of a
connection using a OCI service context handle.
- Added parameters tag and matchanytag to the cx_Oracle.connect and
SessionPool.acquire methods and added parameters tag and retag to the
SessionPool.release method in order to support session tagging.
- Added parameter edition to the cx_Oracle.SessionPool method.
- Added parameters region, sharding_key and super_sharding_key to the
cx_Oracle.makedsn() method to support connecting to a sharded database (new
in Oracle Database 12.2).
- Removed requirement that encoding and nencoding both be specified when
creating a connection or session pool. The missing value is set to its
default value if one of the values is set and the other is not (
https://github.com/oracle/python-cx_Oracle/issues/36).
- Permit use of both string and unicode for Python 2.7 for creating
session pools and for changing passwords (https://github.com/oracle/pyt
hon-cx_Oracle/issues/23).
*Data Type and Data Handling Enhancements*
- Added attributes Variable.actualElements and Variable.values to
variables.
- Added support for smallint and float data types in Oracle objects, as
requested (https://github.com/oracle/python-cx_Oracle/issues/4).
- Added support for getting/setting attributes of objects or element values
in collections that contain LOBs, BINARY_FLOAT values, BINARY_DOUBLE values
and NCHAR and NVARCHAR2 values. The error message for any types that are
not supported has been improved as well.
- An exception is no longer raised when a collection is empty for methods
Object.first() and Object.last(). Instead, the value None is returned to be
consistent with the methods Object.next() and Object.prev().
- Removed requirement for specifying a maximum size when fetching LONG or
LONG raw columns. This also allows CLOB, NCLOB, BLOB and BFILE columns to
be fetched as strings or bytes without needing to specify a maximum size.
The method Cursor.setoutputsize no longer does anything, since ODPI-C
automatically manages buffer sizes of LONG and LONG RAW columns.
- Enable temporary LOB caching in order to avoid disk I/O as suggested (
https://github.com/oracle/odpi/issues/10).
*Error Handling Enhancements*
- Provide improved error message when OCI environment cannot be created,
such as when the oraaccess.xml file cannot be processed properly.
- Define exception classes on the connection object in addition to at
module scope in order to simplify error handling in multi-connection
environments, as specified in the Python DB API.
*Test Enhancements*
- Reworked test suite and samples so that they are independent of each
other and so that the SQL scripts used to create/drop schemas are easily
adjusted to use different schema names, if desired.
- Updated DB API test suite stub to support Python 3.
*Removals*
- Dropped deprecated parameter twophase from the cx_Oracle.connect method.
Applications should set the Connection.internal_name and
Connection.external_name attributes instead to a value appropriate to the
application.
- Dropped deprecated parameters action, module and clientinfo from the
cx_Oracle.connect method. The appcontext parameter should be used instead.
- Dropped deprecated attribute numbersAsString from cursor objects. Use an
output type handler instead.
- Dropped deprecated attributes cqqos and rowids from subscription objects.
Use the qos attribute instead.
- Dropped deprecated parameters cqqos and rowids from the
Connection.subscribe() method. Use the qos parameter instead.
Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread
cx_Oracle 6.0 Anthony Tuininga <anthony.tuininga@gmail.com> - 2017-08-14 16:33 -0600
csiph-web