Database Administration (MOSC)

MOSC Banner

Time-zone issue while executing scripts from oracle scheduler

edited Feb 14, 2014 12:00PM in Database Administration (MOSC) 10 commentsAnswered

Hi,

We are currently migrating batch jobs in production environment from Tivoli workload scheduler to Oracle scheduler.

We face the issue when running a script containing date function from scheduler, the date output shows UTC timezone instead of the default time zone(ie, EET). The same script if run from Tivoli or directly executed from the shell shows the correct Time-zone. Please find the sample output of the two scenarios.

more ./dummscript.sh

echo $TZ > osran.log

date '+%m/%d/%Y%Z  %H:%M:%S' >> osran.log

THe output when executed directly from server

more osran.log

WET-2WET-3,M3.5.0/03:00:00,M10.5.0/04:00:00

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center