Make sure that the task is scheduled under the proper user. Each task in the scheduler can run as a different user. Verify that the user is correct. Also make sure that your script sets up your environment correctly. Your session has the environment set up and running the script doesn't produce any problems. However, the tasks in scheduler don't have environment variables so it is up to the script to define them. Make sure that you have ORACLE_HOME, ORACLE_SID, and PATH set correctly.
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.