OCI-c: OL7 and default cron shell

I had found out that, on some on my compute running OL7 on OCI-C, the cron job did not source the proper .bashrc environment file as I would have expected, where all ORACLE variables were set.

Workaround is to add the 1 or 2 last of the following lines into the cronjob:

CRON_TZ=Europe/London
SHELL=/bin/bash
BASH_ENV=/home/oracle/.bashrc
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s