[DB-SIG] DCOracle -- Need help and examples

Dave Cinege dcinege@psychosis.com
Tue, 25 Jan 2000 18:56:05 -0500


I'm a python novice and trying get this module going with little luck.
Maybe it's not installed right?
(The 2 .so's and all the .py's I put in site-packages/)

dbc = oci_.Connect(user/pass) 

Works without error.

Anything else I try to do error's. Even trying to close it.

#!/usr/local/bin/python 
import sys, os
import Buffer, oci_ 

dbc = oci_.Connect(user/pass)
dbc.close()

$ ./dbtest.py
Traceback (innermost last):
  File "./dbtest.py", line 14, in ?
    dbc.close()
AttributeError: 'Connection' object has no attribute 'close'  


If someone could throw me a pile of example code it would help me greatly.




$ v /usr/local/lib/python1.5/site-packages/
total 6496
-r-xr-xr-x   1 root     other       31864 Jan 25 18:12 Buffer.so
-rw-r--r--   1 root     other        2620 Jan 25 18:05 __init__.py
-rw-r--r--   1 root     other        3973 Jan 25 18:05 dbi.py
-rw-r--r--   1 root     other       11965 Jan 25 18:05 ociBind.py
-rw-r--r--   1 root     other       13813 Jan 25 18:05 ociCurs.py
-rw-r--r--   1 root     other       11327 Jan 25 18:05 ociProc.py
-rw-r--r--   1 root     other        2424 Jan 25 18:05 ociUtil.py
-r-xr-xr-x   1 root     other     6547188 Jan 25 18:12 oci_.so
-rw-r--r--   1 root     other        4893 Jan 25 18:05 ocidb.py
-rw-r--r--   1 root     other        2808 Jan 25 18:05 ocitypes.py