Sql*Plus Returns Exit Code 0 from Cron Job when the Login Fails
Last updated on AUGUST 24, 2017
Applies to:SQL*Plus - Version: 220.127.116.11
This problem can occur on any platform.
Below SQL*Plus script is run from a cron job.
echo 'status ' $?
When the script is run from the shell prompt, the exit status is 1.
When run as a cron job, the exit status is 0.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms