 |
|
Oracle Tips by Burleson |
Chapter 4 -
Chaining Oracle Jobs Together
Conditional Job Runs Using Oracle Advanced
Queuing
SQL> exec dbms_scheduler.run_job ('job_chain_aq_task_1');
PL/SQL procedure successfully completed.
job_user@db10g> @job_chain_query.sql
CREATED_TIMESTAMP TASK_NAME
---------------------------
--------------------
07-AUG-2004 18:18:36.136000 TASK_1
1 row selected.
SQL> @job_chain_aq_query.sql
QUEUE MESSAGES
------------------------------ ----------TASK_2_QUEUE 1
1 row selected.
If the run of the second job is forced; the
second task has read a message from its queue, completed its
processing and placed a message on the queue for the third task.
 |
For more details and scripts, see my new book "
Oracle
Tuning: The Definitive Reference", over 900 pages
of BC's favorite tuning tips & scripts.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot. |
|