Checks to do in the database
If a job does not run, check the enabled state of the job, the chain, and the program(s) it uses. Jobs can become invalid during normal object invalidation actions such as changing objects on which the job depends.
Check the chain definition. In dbms_scheduler
, there is now a procedure that analyzes a chain, and then deposits the results in a pl_sql
table and server output. This can be very useful and some example code is shown as follows:
--/ declare rl sys.scheduler$_rule_list := sys.scheduler$_rule_list(); stl sys.scheduler$_step_type_list := sys.scheduler$_step_type_list(); spl sys.scheduler$_chain_link_list:= sys.scheduler$_chain_link_list(); begin select SYS.SCHEDULER$_RULE(rule_name, condition, action) bulk collect into rl from user_scheduler_chain_rules where chain_name = 'YOUR_CHAIN_TO_CHECK'; select SYS.SCHEDULER$_step_type(step_name, step_type) bulk collect into stl from user_scheduler_chain_steps where chain_name = 'YOUR_CHAIN_TO_CHECK'; dbms_scheduler...