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.

tkaqdoca.sql: Script to Create Users, Objects, Queue Tables, Queues & Subscribers<br />

subscriber := aq$_agent('BOOKED_ORDER', 'CS.CS_bookedorders_que', null);<br />

dbms_aqadm.add_subscriber(queue_name => 'OE.OE_bookedorders_que',<br />

subscriber => subscriber);<br />

end;<br />

/<br />

connect WS/WS;<br />

declare<br />

subscriber aq$_agent;<br />

begin<br />

/* Subscribe to the WS back orders queue */<br />

subscriber := aq$_agent('BACK_ORDER', 'CS.CS_backorders_que', null);<br />

dbms_aqadm.add_subscriber(queue_name => 'WS.WS_backorders_que',<br />

subscriber => subscriber);<br />

end;<br />

/<br />

declare<br />

subscriber aq$_agent;<br />

begin<br />

/* Subscribe to the WS shipped orders queue */<br />

subscriber := aq$_agent('SHIPPED_ORDER', 'CS.CS_shippedorders_que', null);<br />

dbms_aqadm.add_subscriber(queue_name => 'WS.WS_shippedorders_que',<br />

subscriber => subscriber);<br />

end;<br />

/<br />

connect CBADM/CBADM;<br />

declare<br />

subscriber aq$_agent;<br />

begin<br />

/* Subscribe to the BILLING billed orders queue */<br />

subscriber := aq$_agent('BILLED_ORDER', 'CS.CS_billedorders_que', null);<br />

dbms_aqadm.add_subscriber(queue_name => 'CBADM.CBADM_billedorders_que',<br />

subscriber => subscriber);<br />

end;<br />

/<br />

Rem<br />

Rem BOLADM will Start all the queues<br />

Rem<br />

C-14 <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!