Maven4Champ
Technical User
- Jun 16, 2004
- 154
All,
I have a procedure that is being called in a DBMS_JOB.SUBMIT procedure which refreshes materialized views in sequential order and then closes out. One of the drawbacks to my method is that I look for a failure and if one is encountered, it does NULL (nothing) and if no failures occur, it proceeds with each step in the procedure, refreshing one by one the materialized views and again checking for failures.
Is it possible that if when it gets to the end of the job and encounters one or more failures, it resets the failures (self-healing) to 0 so the job can attempt to run the next day as scheduled without automatically NULL'ing out?
Are there any drawbacks to that method as well or any better solutions to resolve this request? Ultimately, we want to be proactive in the notification of failures, etc. but with that put aside, we need the ability for the job to be smart enough to reset itself after each nightly run.
I have a procedure that is being called in a DBMS_JOB.SUBMIT procedure which refreshes materialized views in sequential order and then closes out. One of the drawbacks to my method is that I look for a failure and if one is encountered, it does NULL (nothing) and if no failures occur, it proceeds with each step in the procedure, refreshing one by one the materialized views and again checking for failures.
Is it possible that if when it gets to the end of the job and encounters one or more failures, it resets the failures (self-healing) to 0 so the job can attempt to run the next day as scheduled without automatically NULL'ing out?
Are there any drawbacks to that method as well or any better solutions to resolve this request? Ultimately, we want to be proactive in the notification of failures, etc. but with that put aside, we need the ability for the job to be smart enough to reset itself after each nightly run.