09.12.2012 Views

Advanced Queuing - Oracle

Advanced Queuing - Oracle

Advanced Queuing - Oracle

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

grant execute on order_typ to ES;<br />

grant execute on orderitemlist_vartyp to ES;<br />

grant execute on orderitem_typ to ES;<br />

grant execute on book_typ to ES;<br />

grant execute on customer_typ to ES;<br />

execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY','ES',FALSE);<br />

grant execute on order_typ to OS;<br />

grant execute on orderitemlist_vartyp to OS;<br />

grant execute on orderitem_typ to OS;<br />

grant execute on book_typ to OS;<br />

grant execute on customer_typ to OS;<br />

execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY','OS',FALSE);<br />

grant execute on order_typ to CBADM;<br />

grant execute on orderitemlist_vartyp to CBADM;<br />

grant execute on orderitem_typ to CBADM;<br />

grant execute on book_typ to CBADM;<br />

grant execute on customer_typ to CBADM;<br />

grant execute on order_typ to CB;<br />

grant execute on orderitemlist_vartyp to CB;<br />

grant execute on orderitem_typ to CB;<br />

grant execute on book_typ to CB;<br />

grant execute on customer_typ to CB;<br />

grant execute on order_typ to CS;<br />

grant execute on orderitemlist_vartyp to CS;<br />

grant execute on orderitem_typ to CS;<br />

grant execute on book_typ to CS;<br />

grant execute on customer_typ to CS;<br />

Rem Create queue tables, queues for OE<br />

Rem<br />

connect OE/OE;<br />

begin<br />

dbms_aqadm.create_queue_table(<br />

queue_table => 'OE_orders_sqtab',<br />

comment => 'Order Entry Single Consumer Orders queue table',<br />

queue_payload_type => 'BOLADM.order_typ',<br />

message_grouping => DBMS_AQADM.TRANSACTIONAL,<br />

compatible => '8.1',<br />

primary_instance => 1,<br />

secondary_instance => 2);<br />

Scripts for Implementing BooksOnLine C-5

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

Saved successfully!

Ooh no, something went wrong!