Re: ImportError: libclntsh.so.10.1: cannot open shared object file:Permission denied

Discussion in 'Python' started by Bill Scherer, Jul 20, 2006.

  1. Bill Scherer

    Bill Scherer Guest

    gmax2006 wrote:

    >Hi,
    >
    >I am using RedHat Linux 4. and I developed an oracle 10g based
    >application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and
    >Python 2.3.4.
    >
    >When I run the application through direct console connection, It works
    >perfect.
    >
    >But, when I schedule a crontab job to run the application, It logs this
    >error:
    >
    >Traceback (most recent call last):
    > File "/home/nsm1/NSM1/NSM1.py", line 5, in ?
    > import cx_Oracle
    >ImportError: libclntsh.so.10.1: cannot open shared object file:
    >Permission denied
    >
    >
    >

    Did you check the permissions of libclntsh.so.*?

    >How can I fix the problem?
    >
    >Any help would be appreciated,
    >Max
    >
    >BTW:
    >
    >I have the following settings in my /etc/profile file:
    >
    >#-------------------------------------------
    >ORACLE_BASE=/home/oracle/oracle/product
    >ORACLE_HOME=$ORACLE_BASE/10.2.0/db_1
    >LD_LIBRARY_PATH=$ORACLE_HOME/lib
    >PATH=$PATH:$ORACLE_HOME/bin
    >ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
    >export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
    >#-------------------------------------------
    >
    >
    >
    Bill Scherer, Jul 20, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TCMA
    Replies:
    0
    Views:
    1,456
  2. Douglass Turner
    Replies:
    2
    Views:
    2,012
    Manfred Bartz
    Sep 4, 2003
  3. gmax2006
    Replies:
    3
    Views:
    17,117
    Damjan
    Aug 9, 2006
  4. Tim Golden
    Replies:
    0
    Views:
    947
    Tim Golden
    Aug 28, 2008
  5. Tony  Lay
    Replies:
    1
    Views:
    816
    Tony Lay
    Jul 13, 2009
Loading...

Share This Page