in reply to Install_driver(Oracle) failed: Can't load ? Please help

Your environment in your cron job is not the same as it is in your shell session. You need to set the Oracle-specific environment variables in your cron job as well. A common way is to use a wrapper shell script that also loads your .profile before launching Perl:

#!/usr/bin/ksh . ~/.profile exec /opt/perl/bin/perl -w /home/vaish/bin/myscript.pl ...

Replies are listed 'Best First'.
Re: Install_driver(Oracle) failed: Can't load ? Please help
by Vaish (Initiate) on Jul 01, 2008 at 08:13 UTC
    Thanks Corion. It is working fine now.
Re^2: Install_driver(Oracle) failed: Can't load ? Please help
by Anonymous Monk on Aug 13, 2009 at 10:11 UTC
    Even I am facing the same issue.NOt sure how to take it forward..I cant modify my PERL script since it is there in the production..Any other way through which I can stop getting this erro.

      How did your script get into production if it doesn't work?

      But if you cannot modify your Perl script, modify the program calling your Perl script. See my above code.