472,982 Members | 1,620 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,982 software developers and data experts.

Connecting Oracle8i to Python

Hello,
I'm a newbie to Python. In order to get much use out of it at my
site, I must be able to connect it to Oracle8i databases. I'm running
Python 2.2.2 on Tru64 (osf1 V5.1a).

First question:
What do you recommend?
DCOracle2? Note that I am not running Zope or any other web software.
cx_Oracle?
Other?

Second question (important only if you recommend DCOracle2)
I can "make" DCOracle2, but I don't see any hints anywhere on how to
install it on a non-zope system. If I try any obvious thing, like cp
-r to lib/python2.2/site-packages, at BEST I get:
python Python 2.2.2 (#1, May 9 2003, 14:15:51) [C] on osf1V5
Type "help", "copyright", "credits" or "license" for more information.
import DCOracle2

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "DCOracle2/__init__.py", line 37, in ?
from DCOracle2 import *
File "DCOracle2/DCOracle2.py", line 104, in ?
import dco2
ImportError: dlopen: DCOracle2/dco2.so: symbol "OCILobIsTemporary"
unresolved

What is going on here?
I think that OCILobIsTemporary is supposed to be in the Oracle8i
client shared library, so maybe that library isn't getting loaded.
What am I doing wrong? I've tried playing with
LD_LIBRARY_PATH=$ORACLE_HOME/lib but nothing seems to work. I've even
forced src/Makefile to include -rpath $ORACLE_HOME/lib .

I should point out that I have other non-python apps that can use the
oracle client library just fine, and nm libclntsh.so | grep OCILobIsTemporary

OCILobIsTemporary | 0004396966856416 | T |
0000000000000008

Doug
Jul 18 '05 #1
1 3083
do************@tnzi.com (the_rev_dharma_roadkill) wrote in message news:<fb*************************@posting.google.c om>...
Hello,
I'm a newbie to Python. In order to get much use out of it at my
site, I must be able to connect it to Oracle8i databases. I'm running
Python 2.2.2 on Tru64 (osf1 V5.1a).

First question:
What do you recommend?
DCOracle2? Note that I am not running Zope or any other web software.
cx_Oracle?
Other?

Second question (important only if you recommend DCOracle2)
I can "make" DCOracle2, but I don't see any hints anywhere on how to
install it on a non-zope system. If I try any obvious thing, like cp
-r to lib/python2.2/site-packages, at BEST I get:
python

Python 2.2.2 (#1, May 9 2003, 14:15:51) [C] on osf1V5
Type "help", "copyright", "credits" or "license" for more information.
import DCOracle2 Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "DCOracle2/__init__.py", line 37, in ?
from DCOracle2 import *
File "DCOracle2/DCOracle2.py", line 104, in ?
import dco2
ImportError: dlopen: DCOracle2/dco2.so: symbol "OCILobIsTemporary"
unresolved


I actually can get past this now using libocijdbc8 but now I get:
import DCOracle2

Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "DCOracle2/__init__.py", line 91, in ?
import DA
File "DCOracle2/DA.py", line 90, in ?
from db import DB
File "DCOracle2/db.py", line 89, in ?
import DCOracle2, DateTime
ImportError: No module named DateTime
How many other non-standard modules do I need to install to get
DCOracle2 working in a non-zope vanilla environment?
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: christian_stengel | last post by:
Hi *, I have just started to learn python and I am having a problem with an python client connecting to a perl server using ssl (I tried this with pyOpenSSL and with the build in SSL Module). ...
5
by: MJ23 | last post by:
Dear all, I have tried used the download version of oracle8i client and the CD come with oracle8i but after clicking the setup.exe file, it doesn't start and has no response. I have tried to...
1
by: Stephane VUILLIN | last post by:
Hi, I read a lot of threads about Oracle8i Client 8.1.7 installation. I did not succeed to install this product on a Pentium 4 Windows NT workstation. I downloaded the patch number 1507768 from...
1
by: yahibble | last post by:
Now, I am no Python expert but I have dabbled and I have spent a couple of days with another engineer unsuccessfully installing oracle drivers for MS ODBC on the win XP machine. It looked to me...
1
by: John | last post by:
Does anyone have an example of how to connect to an Oracle 8i DB and run a simple select through ODBC? What DLLs should I need? Assume that the PC where the web werver's at only has the .Net...
2
by: python_eager | last post by:
Hi i am connecting my database oracle 9i. While connecting i am getting the following error connection = cx_Oracle.connect("myusername", "mypassword", "python") RuntimeError: Unable to acquire...
2
by: alwajih | last post by:
Dear Msrs; I have problem when i Install Developer6i with Oracle8i. So please i need the steps to How can i Install Developer6i with Oracle8i in my laptop? the windows is XP. Thank you. Abdullah...
1
by: Kunal Nandi | last post by:
can any one give me the code for uploading and retriving image using Blob, with jsp at front end and oracle8i at the back end ??????? i have tried this using long raw datatype i was able to upload...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.