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.

Dropping AQ Objects<br />

Dropping AQ Objects<br />

For additional examples of Alter Propagation, Enable Propagation<br />

and Disable Propagation, see:<br />

"Example: Alter a Propagation Schedule Using PL/SQL<br />

<br />

(DBMS_AQADM)" on page 9-76<br />

"Example: Enable a Propagation Using PL/SQL (DBMS_<br />

<br />

AQADM)" on page 9-79<br />

"Example: Disable a Propagation Using PL/SQL (DBMS_<br />

<br />

AQADM)" on page 82<br />

Caution: You may need to create queues or queue tables, or start,<br />

stop, or enable queues, for certain examples to work:<br />

/* Cleans up all objects related to the object type: */<br />

CONNECT aq/aq<br />

EXECUTE DBMS_AQADM.STOP_QUEUE (<br />

queue_name => ’msg_queue’);<br />

EXECUTE DBMS_AQADM.DROP_QUEUE (<br />

queue_name => ’msg_queue’);<br />

EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (<br />

queue_table => ’aq.objmsgs80_qtab’);<br />

/* Cleans up all objects related to the RAW type: */<br />

EXECUTE DBMS_AQADM.STOP_QUEUE (<br />

queue_name => ’raw_msg_queue’);<br />

EXECUTE DBMS_AQADM.DROP_QUEUE (<br />

queue_name => ’raw_msg_queue’);<br />

EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE (<br />

queue_table => ’aq.RawMsgs_qtab’);<br />

/* Cleans up all objects related to the priority queue: */<br />

EXECUTE DBMS_AQADM.STOP_QUEUE (<br />

queue_name => ’priority_msg_queue’);<br />

A-66 <strong>Oracle</strong>9i Application Developer’s Guide - <strong>Advanced</strong> <strong>Queuing</strong>

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

Saved successfully!

Ooh no, something went wrong!