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.

Creating a Queue Table<br />

A read-only view which is used by AQ applications for querying queue<br />

<br />

data called aq$.<br />

An index for the queue monitor operations called aq$__t.<br />

An index or an index organized table (IOT) in the case of multiple<br />

<br />

consumer queues for dequeue operations called aq$__i.<br />

For 8.1-compatible multiconsumer queue tables, the following additional<br />

<br />

objects are created:<br />

A table called aq$__s. This table stores<br />

<br />

information about the subscribers.<br />

A table called aq$__r. This table stores<br />

<br />

information about rules on subscriptions.<br />

An index organized table (IOT) called aq$__<br />

<br />

h.This table stores the dequeue history data.<br />

CLOB, BLOB, or BFILE objects are valid in an AQ message. You can propagate<br />

<br />

these object types using AQ propagation with <strong>Oracle</strong> since release 8.1.x. To<br />

enqueue an object type that has an LOB, you must first set the LOB_attribute<br />

to EMPTY_BLOB() and perform the enqueue. You can then select the LOB locator<br />

that was generated from the queue table’s view and use the standard LOB<br />

operations. See the <strong>Oracle</strong>9i Application Developer’s Guide - Large Objects (LOBs)<br />

for more information.<br />

You can specify and modify the primary_instance and secondary_instance only<br />

<br />

in 8.1 compatible mode.<br />

You cannot specify a secondary instance unless there is a primary instance.<br />

When a queue, queue table, or subscriber is created, modified, or dropped, and<br />

<br />

if GLOBAL_TOPIC_ENABLED = TRUE, a corresponding LDAP entry is also<br />

created.<br />

Syntax<br />

See Chapter 3, "AQ Programmatic Environments" for a list of available functions in<br />

each programmatic environment. Use the following syntax references for each<br />

programmatic environment:<br />

PL/SQL (DBMS_AQADM Package): <strong>Oracle</strong>9i Supplied PL/SQL Packages and<br />

<br />

Types Reference, DBMS_AQADM.CREATE_QUEUE_TABLE<br />

9-6 <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!