getting error on a script when running from cron
Code:
error while loading shared libraries: libclntsh.so.11.1: cannot open shared object file: No such file or directory
I do not get the error when i run it from command line.
So I do locate command on the library and found it:
Code:
locate - /export/home/orahome/11.2/lib/libclntsh.so.11.1
and add it to the path in the script, but still get an error.
Code:
#!/bin/bash
export PATH=/opt/OV/bin/OpC:/usr/local/sqlite3.6.23.1/bin:/production/java/jdk32/bin:/usr/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/svn/bin:/orahome/current/bin:/production/
fo/bin:/production/fo/scr:/production/fo/tools:/export/home/orahome/11.2/lib/
/production/bin/userStats -c /production/cfg/userStats.cfg > /production/log/userStats.log 2>&1
but still get an error in the logs
Code:
casper@casperbox:/production/fo> ls -ltr /production/log/userStats.log
-rw-r--r-- 1 casper casper 145 Oct 24 16:24 /production/log/userStats.log
icapfo@usprvauth01s:/production/fo> more /production/log/userStats.log
/production/bin/userStats: error while loading shared libraries: libclntsh.so.11.1:
cannot open shared object file: No such file or directory