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 | |
|
Re^2: Install_driver(Oracle) failed: Can't load ? Please help
by Anonymous Monk on Aug 13, 2009 at 10:11 UTC | |
by Corion (Patriarch) on Aug 13, 2009 at 10:13 UTC |