Using DCOracle

Luca lminuti at eid.it
Mon May 22 12:16:19 EDT 2000


I'm try to use DCOracle. I compiled it, I run DCOracle_test.py and it 
works fine.
Then the readme.txt say:

"To install the extensions, copy them to DCOracle package directory"

So I copy *.so files in the same directory where I store oci*.py.
Than I try a simple script like this:

import Buffer, oci_
print 'Import succeeded'
dbc=oci_.Connect("user/password at connect_string")
print 'Connect succeeded'
cur = dbc.Cursor()

But I receive this message:

Import succeeded
Connect succeeded
Traceback (innermost last):
  File "./prova.py", line 11, in ?
    cur = dbc.Cursor()
AttributeError: 'Connection' object has no attribute 'Cursor'

What's wrong?

Thanks.



More information about the Python-list mailing list