[DB-SIG] DCOracle question

Bert M. Schuldes bert@roedding.de
Thu, 25 May 2000 01:57:10 +0200


Hallo.

I got DcOracle to compile under Linux; running the test gave
a 

Import succeeded
Connect succeeded

But when trying this script:

  #!/usr/bin/python
  import Buffer, oci_, sys
  print 'Import succeeded'
  dbc=oci_.Connect('bms/bms@ORAC')
  print 'Connect succeeded'

  print dbc
  cur = dbc.cursor()

I received the following:

Import succeeded
Connect succeeded
<Connection object at 80e1e70>
Traceback (innermost last):
  File "./mytest.py", line 8, in ?
    cur = dbc.cursor()
AttributeError: 'Connection' object has no attribute 'cursor'


Any hints for a python/dcoracle newbie?

Thank you, 
Bert.