472,353 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

How to build/install DCOracle2 on tru64 5.1

I've have some fun getting DCOracle2 (python-to-oracle interface)
going on HP/Compaq Tru64 with Oracle8i Release 3 (oracle 8.1.7). I'd
like to share an answer/bug-fix with you:

After un-tarring the source...
1) edit setup.py. Change the lines:
CFLAGS = ["-fPIC","-DORACLE8i"]
LFLAGS = ["-Wl,-rpath,%s" % string.join(LIB_DIR,",")]

LIBS=['clntsh']

TO READ INSTEAD:
CFLAGS = ["-DORACLE8i"]
LFLAGS = None

LIBS=['clntsh','ocijdbc8']

2) Now run python setup.py build
3) Now, as root (or whatever), run python setup.py install
4) When you test, DO NOT sit in any directory that contains a
"DCOracle2" sub-directory! Get away from the build area and its
parent!

This works for me. The usual technique produces a broken dco2.so,
which cannot resolve "OCILobIsTemporary", due to some brain-damage in
the Oracle8i libraries. The trick of using ocijdbc8 came from
somebody else on the web whose name I now cannot recall, I apologize
to whoever is was.

Best of Luck Tru64 people!
Doug
Jul 18 '05 #1
0 1282

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

Similar topics

0
by: Skip Montanaro | last post by:
Connections to remote Oracle databases doesn't seem possible with DCOracle2. I have no problem making remote connections using Perl's DBI::Oracle...
2
by: Timo Virkkala | last post by:
I'm having some trouble with Python2.2 and DCOracle2. I'm successfully executing a query, and getting the result I'm hoping for - with an added...
3
by: Ron Reidy | last post by:
All, I am trying to compile DCOracle2 on RedHat 8.0 and make is giving me the following error: gcc -pthread -fPIC -DNDEBUG -g -O3 -Wall...
0
by: Keana | last post by:
Hi, I am trying to retrieve data from an Oracle DB table. One of the columns is defined as 'Long Raw' data type and contains multi-line string...
1
by: Joe Wong | last post by:
Hi, I have two system running with DCOracle2 library. On one system, the data is returned as 'float' but the other system return the value as...
2
by: jose luis fernandez diaz | last post by:
Hi, When I run the program below on Tru64: #include <string> int main() { char *cad="hola"; string s1 = 1 ? string(cad, 0, 2) : "";
3
by: Nikola Milutinovic | last post by:
Hi guys. I have just had some problems resolved while building PostgreSQL 7.4.2 on Tru64 UNIX 5.1B. File "./src/backend/utils/adt/float.c"...
2
by: Chris | last post by:
Hello I'm using DCOracle2 with Python 2.1 and Oracle 8.1.7 on Solaris and while it's working most of the time, I have random ORA-01084 invalid...
0
by: Yannick | last post by:
Hi, I'm Julien from France, We have recently install a new Web Server for my company The server is composed : - Linux RedHat RHEL4 U4 -...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.