Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Generic script for setting up correct cron environment?
I had a problem with the cron jobs too (on HP/UX 11i). This was not an
Oracle issue though. It appears that the cron job does not go through
the profiles like a regular interactive login. That leaves the
environment almost uninitialised, especially PATH is not defined. So
the job does not find oraenv, for instance.
One solution is to execute /etc/profile from within the script that you want to run from crontab (. /etc/profile).
Another way is to use the su command in the crontab file, e.g. su - oracle <programnama>. This must be in roots corntab. Received on Thu May 09 2002 - 13:28:37 CDT