 |
|
Oracle Tips by Burleson |
Chapter 4 -
Chaining Oracle Jobs Together
Conditional Job Runs Using Oracle Advanced
Queuing
job_chain_aq_setup.sql
--
*************************************************
-- Copyright © 2005 by Rampant TechPress
-- This script is free for non-commercial
purposes
-- with no warranties. Use at your own risk.
--
-- To license this script for a commercial
purpose,
-- contact info@rampant.cc
--
*************************************************
-- Grant necessary permissions
conn sys/password as sysdba
-- Create the queue payload
CREATE OR REPLACE TYPE
job_user.job_chain_msg_type AS OBJECT (
message VARCHAR2(10)
)
/
-- Create the queue table and queues
BEGIN
DBMS_AQADM.create_queue_table (
queue_table =>
'job_user.job_chain_queue_tab',
queue_payload_type =>
'job_user.job_chain_msg_type');
 |
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. |
|