Database Administration (MOSC)

MOSC Banner

DBMS_SCHEDULER file watcher and job chains

edited Oct 18, 2018 3:55AM in Database Administration (MOSC) 1 commentAnswered ✓

I am a little confused about how to integrate a file watcher into a job chain.  Per https://docs.oracle.com/database/121/ADMIN/scheduse.htm#ADMIN12459

29.6.5 Adding Rules to a Chain

The subsection "Starting the Chain" states that

at least one rule must have a condition that always evaluates to TRUE so that the change can start when the job chain starts.

So I currently have successfully created a file watcher that invokes a PL/SQL procedure to insert information from the File Watcher payload into a table.  What I want to do is to kick off a Job Chain that checks the return code from the file watcher and then proceeds appropriately; what I don't understand is where I put a call to dbms_scheduler.run_chain to run my chain, but only if I get a good return code from the file watcher?  Or do I have my file watcher as a step in a chain?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center