Re: cx_Oracle error: ImproperlyConfigured

2011-04-29 Thread Jirka Vejrazka
Have you checked permissions? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more

Re: cx_Oracle error: ImproperlyConfigured

2011-04-28 Thread kamal sharma
Yes you are correct, that the reason i have replaced the below line in "app.wsgi", but that does not works. #os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/products/11.2.0/lib" #os.environ["ORACLE_HOME"] = "/opt/app/oracle/products/11.2.0" os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/produc

Re: cx_Oracle error: ImproperlyConfigured

2011-04-28 Thread kamal sharma
Hi Again, I have finished my implementation with the local db, but now stuck in major issue.When i try to login to the local oracle database then it is working perfectly fine.I am able to read the data from the db installed in the same UNIX machine. But when i tried to login a db installed in rem

Re: cx_Oracle error: ImproperlyConfigured

2011-04-26 Thread kamal sharma
Thanks to all for supporting this to fix the issue. So issue is resolved by adding these 2 lines in "app.wsgi" os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/products/11.2.0/lib" os.environ["ORACLE_HOME"] = "/opt/app/oracle/products/11.2.0" Thanks again for helping to fix this issue. Its reall

Re: cx_Oracle error: ImproperlyConfigured

2011-04-24 Thread Ian
On Apr 23, 12:29 pm, kamal sharma wrote: > No it was .profile of mine. Now I have set the LD_LIBRARY_PATH in app.wsgi > as mentioned below and when I print the os.environ in the beginning of > views.py then it shows that newly added value. It's clear that your LD_LIBRARY_PATH is fine at this poin

Re: cx_Oracle error: ImproperlyConfigured

2011-04-23 Thread kamal sharma
No it was .profile of mine. Now I have set the LD_LIBRARY_PATH in app.wsgi as mentioned below and when I print the os.environ in the beginning of views.py then it shows that newly added value. os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/products/11.2.0/lib" Is there any problem in this state

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread kamal sharma
Yes, i am getting this error when i used from the web application. Also all the user have the permission to webserver to read all Oracle client files. Not sure how it got set to LD_LIBRARY_PATH /opt/apache-2.2.16/lib:/usr/local/lib: I have defined the LD_LIBRARY_PATH and ORACLE_HOME as follows in

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread kamal sharma
I think i have done a mistake in my last cx_Oracle installation. Is this a problem? I used one python while build and another while install. ex: [me] ~/install_cx_oracle/cx_Oracle-5.0.3> /usr/local/bin/python setup.py build [me] ~/install_cx_oracle/cx_Oracle-5.0.3> sudo python setup.py insta

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread Jirka Vejrazka
Are you getting this error only when using the app through a web server? Have you verified that the web server does have ORACLE_HOME and LD_LIBRARY_PATH correctly defined? (e.g. by logging it using os.environ). Are you sure that the user that is used to run your webserver has permissions to read a

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread Ian
On Apr 21, 11:40 pm, kamal sharma wrote: > When i try the same code from python Shell then it is working fine. Okay, so it does sound to me like it's your web server blocking access to the entire ORACLE_HOME directory. Is it running under a chroot jail? If so, then you will need to copy your en

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread kamal sharma
Hi Jirka, Thanks for the response. I have installed cx_Oracle in Solaris again and followed this steps but still the error is same: Exception Type:DatabaseErrorException Value: Error while trying to retrieve text for error ORA-01804 Download cx_oracle module: http://sourceforge.net/projects/c

Re: cx_Oracle error: ImproperlyConfigured

2011-04-22 Thread Jirka Vejrazka
Hi Kamal,   checking my install history, this is what I had to do to use cx_Oracle on Ubuntu Server: $ /usr/local/oracle/instantclient_11_2$ ln -s libclntsh.so.11.1 libclntsh.so $ WITH_UNICODE=1 ORACLE_HOME=/usr/local/oracle/instantclient_11_2 python setup.py build $ sudo bash # WITH_UNICODE=1 OR

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
When i try the same code from python Shell then it is working fine. Here is the working output: >>> import cx_Oracle >>> from pprint import pprint >>> connection = cx_Oracle.Connection("%s/%s@%s" % ('foo', 'bar', 'db')) >>> cursor = cx_Oracle.Cursor(connection) >>> sql = "SELECT xyz FROM table_nam

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread Ian
On Apr 21, 11:03 am, kamal sharma wrote: > Error while trying to retrieve text for error ORA-01804 > > Here is my code to fetch the data from database. > > def cases(request, dbname, prnum=None, message=''): > >     connection = cx_Oracle.Connection("%s/%s@%s" % ('foo', 'bar', 'xyz')) >     cursor

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
Thanks a lot. Now that issue is resolved after i execute below command. sudo ln -s /opt/app/oracle/products/11.2.0/lib/libclntsh.so.11.1 But now i am getting databse error. Any pointer please? Exception Value: Error while trying to retrieve text for error ORA-01804 Here is my code to fetch th

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
After creating soft link, still it is giving the same error. Do i need to create soft link for any other files? My response are inline with KS: On Thu, Apr 21, 2011 at 9:21 PM, Ian wrote: > On Apr 21, 9:39 am, kamal sharma wrote: > > Here is the error I am getting now: > > > > cd /usr/local/lib

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread Ian
On Apr 21, 9:39 am, kamal sharma wrote: > Here is the error I am getting now: > > cd /usr/local/lib > > /usr/local/lib> sudo ln > /opt/app/oracle/products/11.2.0/lib/libclntsh.so.10.1 > ln: ./libclntsh.so.10.1 is on a different file system > > /usr/local/lib> cd /usr/lib/ > /usr/lib> sudo ln /opt/

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
Here is the error I am getting now: cd /usr/local/lib /usr/local/lib> sudo ln /opt/app/oracle/products/11.2.0/lib/libclntsh.so.10.1 ln: ./libclntsh.so.10.1 is on a different file system /usr/local/lib> cd /usr/lib/ /usr/lib> sudo ln /opt/app/oracle/products/11.2.0/lib/libclntsh.so.10.1 ln: ./lib

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread brad
This may be related to Oracle's shared libraries not being in the path recognized by your web server. I created hard links to the Oracle shared libraries in /user/local/lib to get cx_oracle working. I have a blog post that outlines what I did, here: http://bradmontgomery.net/blog/gahhh-django-vi

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamal sharma
Thanks David for quick response. I have already tried that option, but it does not work. Here is the diff which i have added. Index: app.wsgi === +os.environ["LD_LIBRARY_PATH"] = "/opt/app/oracle/products/11.2.0/lib" # figure out

Re: cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread David Markey
At the top of the WSGI script, set the LD_LIBRARY_PATH environment variable. On 21 April 2011 11:07, kamalp.sha...@gmail.com wrote: > Hi, > > I have installed cx_Oracle module in one of my Solaris box and then > trying to create a django page to read data from oracle db. But I am > getting follow

cx_Oracle error: ImproperlyConfigured

2011-04-21 Thread kamalp.sha...@gmail.com
Hi, I have installed cx_Oracle module in one of my Solaris box and then trying to create a django page to read data from oracle db. But I am getting following errors. mod_wsgi (pid=2600): Exception occurred processing WSGI script '/opt/ www/ui/foo/web/app.wsgi'. Traceback (most recent call last)