Quantcast
Channel: Toad for Oracle
Viewing all articles
Browse latest Browse all 4009

Forum Post: execute script task within an automation seems to not exit and move onto the next task

$
0
0
Hi, We have automations which we schedule in windows scheduler that do very basic work: 1) export data from a database 2) import the data into a table 3) execute a script to manipulate the data Between steps 1 and 2 and between steps 2 and 3 we have a simple execute script which does nothing more than write a log entry to a table that we use to monitor our nightly scheduled automations. The execute scripts are calling a PL/SQL procedure that are passed the task name, the time, and the task status (running or complete). The procedure has embedded commits. Here is the basic PL/SQL that calls the procedure: exec log_data('pta clinical events cqi merge','End Success',sysdate, 0, 'completed'); commit; --commit was added trying to fix this problem -- log_data has commits that are executed. exec log_data('pta driver create','Running',sysdate, 0, null); commit; --commit was added trying to fix this problem -- log_data has commits that are executed. What is happening is the execute script that is responsible for writing the log entry is working fine -- we see the log entry in the table -- but at that point the automation does not go onto the next step. Usually -- but not always - the next step is an import. We are not using data point and this only happens in windows scheduler. We can run the automation manually with 100% success. Some background: we recently moved to windows server 2016 and are running TOAD 12.12.0.39. This has never happened before (i.e., when we were running on windows server 2008 with previous versions on TOAD). This seems to be intermittent. However, when we first migrated over it was happening with every execute script. We found - by accident - a strange workaround where all we had to do was add any valid oracle statement at the end of the execute script (e.g., select * from dual;) and they would not freeze. Though this seemed to work at first, we still see this strange problem seemingly at random. That is, some nights the automations all run fine, and other nights they freeze up. The windows scheduler is not helpful. Though it knows something is amiss - we see an error code 0x1 - we cannot find any good documentation on what this error means nor can we find any error messages or log entries anywhere. We've tried discarding output, failing the action and writing to a log, all to no avail. Its like it simply stops without moving onto to the next action. Any help would be appreciated! Thanks

Viewing all articles
Browse latest Browse all 4009

Trending Articles