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.

Importing Queue Table Data<br />

Creating AQ Administrators and Users<br />

Similar to exporting queues, importing queues entails importing the underlying<br />

queue tables and related dictionary data. After the queue table data is imported, the<br />

import utility executes the PL/SQL anonymous blocks in the dump file to write the<br />

metadata to the data dictionary.<br />

Importing Queue Tables with Multiple Recipients<br />

A queue table that supports multiple recipients is associated with the following<br />

tables:<br />

A dequeue IOT<br />

A time-management IOT<br />

A subscriber table (for 8.1-compatible queue tables)<br />

A history IOT (for 8.1-compatible queue tables)<br />

These tables must be imported as well as the queue table itself.<br />

Import IGNORE Parameter<br />

You should not import queue data into a queue table that already contains data. The<br />

IGNORE parameter of the import utility should always be set to NO when importing<br />

queue tables. If the IGNORE parameter is set to YES, and the queue table that<br />

already exists is compatible with the table definition in the dump file, then the rows<br />

will be loaded from the dump file into the existing table. At the same time, the old<br />

queue table definition and the old queue definition will be dropped and re-created.<br />

Hence, queue table and queue definitions prior to the import will be lost, and<br />

duplicate rows will appear in the queue table.<br />

Creating AQ Administrators and Users<br />

Creating a User as an AQ Administrator<br />

To set a user up as an AQ administrator, do the following:<br />

CONNECT system/manager<br />

CREATE USER aqadm IDENTIFIED BY aqadm;<br />

GRANT AQ_ADMINISTRATOR_ROLE TO aqadm;<br />

GRANT CONNECT, RESOURCE TO aqadm;<br />

Additionally, you can grant execute privilege on the AQ packages as follows:<br />

Managing AQ 4-7

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

Saved successfully!

Ooh no, something went wrong!