I am new to Automation Designer in Toad and I have some saved SQL scripts that I would like to schedule. However, after setting everything up and running the app I receive the following message prompt after the 1st SQL file is executed
What do I do to make Toad ignore this and not prompt for a response?
Trying to execute two stored SQL files and I get the following message after the first one. I just want the automation to run on through and ignore the errors.
This email contains confidential and proprietary information and is not to be used or disclosed to anyone other than the named recipient of this email, and is to be used only for the intended purpose of this communication.
Trying to execute two stored SQL files and I get the following message after the first one. I just want the automation to run on through and ignore the errors.
You do not get an message but an error!
This is quite a big difference.
What I would do is to copy the content and run in SQLPlus logedin as the same user and databse (like in this example) and return the error (if you cannot fix it by yourself).
After fixing the SQL you will be able to run it…
P.S.
I would suggest to put on the end of script instead of “;” a “/” sign and place one more enter…this may a problem sometimes. If you do not have “;” then this is your problem.
This email contains confidential and proprietary information and is not to be used or disclosed to anyone other than the named recipient of this email, and is to be used only for the intended purpose of this communication.
This email contains confidential and proprietary information and is not to be used or disclosed to anyone other than the named recipient of this email, and is to be used only for the intended purpose of this communication.
The nice thing about the Automation Designer is that you can often times achieve desired results by other means. You can do what you want with the Shell Execute option.
In my example I have two scripts. The first runs with error, the second does not. I have 2 Shell Execute actions in my app, one for each script. I create a BAT file to execute my scripts using SQL*Plus. The bat file contents are…
echo exit | sqlplus user/pwd@db @%1
Each of my shell execute actions calls this BAT file and the parameter of the action specifies the script to execute.
Copy the text below and paste it into your automation designer. You’ll see one of the shell execute actions I created. Look at its properties and you’ll see how it’s called. If you just need to execute the scripts then do as I did and you’re done. If you need the output sent somewhere then you’ll have to do a little more work to spool output, etc., but that shouldn’t take too much work. When run in this way you don’t get any prompt on error and execution proceeds after error.