DCOracle problem

Oystein Nerhus oystein at nerhus.no
Mon Aug 7 09:14:17 EDT 2000


On Mon, Aug 07, 2000 at 07:32:31PM +0800, David Yeung wrote:
> Does anyone successfully use DCOracle on Redhat 6.2, Python 1.5.2 and Oracle 8.1.6?
> I can compile the DCOracle v1.3.1b1 (in http://www.zope.org/Products/DCOracle), and
> connect to the oracle database (without error), but the connection Object is simply empty,
> here is an example:
> 
> % python
> Python 1.5.2 (#1, Sep 17 1999, 20:15:36)  [GCC egcs-2.91.66 19990314/Linux (egcs- on linux-i386
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import oci_
> >>> dbc = oci_.Connect("scott/tiger at db2")
> >>> dir(dbc)
> []
> >>> c = dbc.cursor()
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> AttributeError: 'Connection' object has no attribute 'cursor'

try "import DCOracle" and "dbc = DCOracle.Connect" instead.

Øystein




More information about the Python-list mailing list