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.

General Questions<br />

Message retention means the messages are there, but how does the<br />

subscriber access these messages?<br />

Typically we expect the subscriber to access the messages using the dequeue<br />

interface. If, however, you would like to see processed or waiting messages, you can<br />

either dequeue by message id or use SQL.<br />

Can the sort order be changed after the queue table is created?<br />

You cannot change the sort order for messages after you have created the queue<br />

table.<br />

How do I dequeue from an exception queue?<br />

The exception queue for a multiconsumer queue must also be a multiconsumer<br />

queue.<br />

Expired messages in multiconsumer queues cannot be dequeued by the intended<br />

recipients of the message. However, they can be dequeued in the REMOVE mode<br />

once (only once) using a NULL consumer name in dequeue options. Messages can<br />

also be dequeued from an exception queue by specifying the message ID.<br />

Expired messages can be dequeued only by specifying message ID if the<br />

multiconsumer exception queue was created in a queue table without the<br />

compatible parameter or with the compatible parameter set to '8.0'<br />

What does the latency parameter mean in scheduling propagation?<br />

If a latency less than 0 was specified in the propagation schedule, the job is<br />

rescheduled to run after the specified latency. The time at which the job actually<br />

runs depends on other factors, such as the number of ready jobs and the number of<br />

job_queue_processes. It may also be affected by the value for job_queue_<br />

interval. Please refer to the MANAGING JOB QUEUES chapter of the <strong>Oracle</strong>9i<br />

Database Administrator’s Guide for more information on job queues and SNP<br />

background processes.<br />

How can I control the tablespaces in which the queue tables are<br />

created?<br />

You can pick a tablespace for storing the queue table and all its ancillary objects<br />

using the storage_clause parameter in DBMS_AQADM.CREATE_QUEUE_TABLE.<br />

However, once you pick the tablespace, all IOTs and indexes created for that queue<br />

table will go to the specified tablespace. Currently, you do not have a choice to split<br />

them between different tablespaces.<br />

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