472,096 Members | 2,224 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Python Connecting to ORACLE problem*** Help me plsss

Hi All,

In my python script i use to run some oracle queries for this i require a library to connect to oracle which is cx_Oracle.

When we were using 9i(oracle).. my script was running fine.. and now when we migrated to 10 G its giving problem...

Few lines of my script

Expand|Select|Wrap|Line Numbers
  1. import sys
  2. import cx_Oracle
  3. from datetime import date, timedelta
  4. import mail
  5. import time
when above code runs its throwing error as ...

Expand|Select|Wrap|Line Numbers
  1.    import cx_Oracle
  2. ImportError: ld.so.1: python: fatal: libclntsh.so.9.0: open failed: No such fil\
  3. e or directory
if you see above error is clearly looking old 9i library .. as of now we are in 10 g

And my question is

How do I tell Python which Oracle Home to use?
Jun 29 '09 #1
0 1784

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Emile van Sebille | last post: by
13 posts views Thread by Zeljko Vrba | last post: by
2 posts views Thread by Mahesh.V | last post: by
2 posts views Thread by rcc.gamer | last post: by
reply views Thread by leo001 | last post: by

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.