--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
--
On Apr 21, 9:39 am, kamal sharma <kamalp.sha...@gmail.com> wrote:Right, it's not possible to create hard links across file systems.
> 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: ./libclntsh.so.10.1 is on a different file system
Create a soft link instead using "ln -s" (soft links are usually
preferable anyway).
Is this in your .cshrc file or the WSGI user's .cshrc? And are you
> Also set this in .cshrc file
>
> setenv LD_LIBRARY_PATH "$ORACLE_HOME/lib32:$ORACLE_HOME/lib"
> setenv LD_LIBRARY_PATH /usr/X11R6/lib:/usr/local/lib
>
> echo $LD_LIBRARY_PATH
> /usr/X11R6/lib:/usr/local/lib
> echo $ORACLE_HOME/
> /opt/app/oracle/products/11.2.0/
sure it's using csh and not bash?
| Exception Value: | Error while trying to retrieve text for error ORA-01804 |
|---|
| Exception Value: |
|---|
Error while trying to retrieve text for error ORA-01804 |
--
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 ORACLE_HOME=/usr/local/oracle/instantclient_11_2
python setup.py install
and tested:
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/oracle/instantclient_11_2
$ python
Python 2.5.2 (r252:60911, Jan 20 2010, 21:48:48)
[GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import cx_Oracle
>>> cx_Oracle.version
'5.0.3'
Then I added the LD_LIBRARY_PATH to /etc/profile so it'd be used by
all users, including the Apache process.
The error you're getting is most likely caused by ORACLE_HOME not
being set during cx_Oracle installation. To be extra sure, consider
adding it to /etc/profile too.
HTH
Jirka
| Exception Type: | DatabaseError |
|---|
| Exception Value: | Error while trying to retrieve text for error ORA-01804 |
|---|
--
--
.profile of which user? Yours or the one running webserver? Have you
confirmed that these are set (e.g. by writing those to a file at the
beginning of your views.py)?
Cheers
Jirka
--
Kamal, this is exactly the same error you were getting before. Are you
sure that you have ORACLE_HOME properly set on your new client and in
the right environment?
Cheers
Jirka