I have a job which runs a chain. The chain consists of 5 steps. First step is run and if it succeeds, three other steps will be run (independently, in parallel). Only if all three steps succeed, the last step will start. Everything works fine.
I would like to test a case with error. I intentionally provided an error in one of three above-mentioned steps. As a result, my first step succeeded so three steps were run. As I expected, only two of them succeeded and the third one failed. All steps were working for some automatically generated job_name (I checked job_name by querying user_scheduler_job_run_details). I removed the intentional error and ran only the failed step using:
dbms_scheduler.run_chain(chain_name => 'MY_CHAIN', start_steps => 'MY_FAILED_STEP');
Of course, my previously failed step succeeded (because an error was removed). But this step was run with another automatically generated job_name and unfortunately the last step (which was to run after all three mentioned steps succeed) was not run. I would like to run the failed step with specific (previous) job_name, and as a result, the last step should be run automatically.
How can I run a failed step in chain in Oracle using previous, specific job name?