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 dbms_aq to ES;<br />

grant execute on dbms_aqadm to ES;<br />

Rem Create an account for Overseas Shipping<br />

create user OS identified by OS;<br />

grant connect, resource to OS;<br />

grant execute on dbms_aq to OS;<br />

grant execute on dbms_aqadm to OS;<br />

Rem Create an account for Customer Billing<br />

Rem Customer Billing, for security reason, has an admin schema that<br />

Rem hosts all the queue tables and an application schema from where<br />

Rem the application runs.<br />

create user CBADM identified by CBADM;<br />

grant connect, resource to CBADM;<br />

grant execute on dbms_aq to CBADM;<br />

grant execute on dbms_aqadm to CBADM;<br />

create user CB identified by CB;<br />

grant connect, resource to CB;<br />

grant execute on dbms_aq to CB;<br />

grant execute on dbms_aqadm to CB;<br />

Rem Create an account for Customer Service<br />

create user CS identified by CS;<br />

grant connect, resource to CS;<br />

grant execute on dbms_aq to CS;<br />

grant execute on dbms_aqadm to CS;<br />

Rem All object types are created in the administrator schema.<br />

Rem All application schemas that host any propagation source<br />

Rem queues are given the ENQUEUE_ANY system level privilege<br />

Rem allowing the application schemas to enqueue to the destination<br />

Rem queue.<br />

Rem<br />

connect BOLADM/BOLADM;<br />

Rem Create objects<br />

create or replace type customer_typ as object (<br />

custno number,<br />

name varchar2(100),<br />

street varchar2(100),<br />

city varchar2(30),<br />

Scripts for Implementing BooksOnLine C-3

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

Saved successfully!

Ooh no, something went wrong!