09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

queue_name => ’q1def’,<br />

destination => ’another_db.world’);<br />

/* Disable propagation from queue q1def to other queues in another database<br />

reached by the database link another_db.world */<br />

EXECUTE DBMS_AQADM.DISABLE_PROPAGATION_SCHEDULE(<br />

queue_name => ’q1def’,<br />

destination => ’another_db.world’);<br />

Propagation<br />

/* Alter schedule from queue q1def to other queues in another database reached<br />

by the database link another_db.world */<br />

EXECUTE DBMS_AQADM.ALTER_PROPAGATION_SCHEDULE(<br />

queue_name => ’q1def’,<br />

destination => ’another_db.world’,<br />

duration => ’2000’,<br />

next_time => ’SYSDATE + 3600/86400’,<br />

latency => ’32’);<br />

/* Enable propagation from queue q1def to other queues in another database<br />

reached by the database link another_db.world */<br />

EXECUTE DBMS_AQADM.ENABLE_PROPAGATION_SCHEDULE(<br />

queue_name => ’q1def’,<br />

destination => ’another_db.world’);<br />

/* Unschedule propagation from queue q1def to other queues in another database<br />

reached by the database link another_db.world */<br />

EXECUTE DBMS_AQADM.UNSCHEDULE_PROPAGATION(<br />

queue_name => ’q1def’,<br />

destination => ’another_db.world’);<br />

Unscheduling Propagation Using PL/SQL<br />

/* Unschedule propagation from msg_queue_multiple to the destination another_<br />

db.world */<br />

EXECUTE DBMS_AQADM.UNSCHEDULE_PROPAGATION(<br />

queue_name => ’msg_queue_multiple’,<br />

destination => ’another_db.world’);<br />

<strong>Oracle</strong> <strong>Advanced</strong> <strong>Queuing</strong> by Example A-65

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!