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.

General Questions<br />

How do you associate <strong>Oracle</strong> Parallel Server instance affinities with<br />

queue tables?<br />

In 8.1 you can associate OPS instance affinities with queue tables. If you are using<br />

q1 and q2 in different instances, you can use alter_queue_table (or even create<br />

queue table) on the queue table and set the primary_instance to the appropriate<br />

instance_id.<br />

Can you give me some examples of a subscriber rule containing -<br />

message properties - message data properties.<br />

Yes, here is a simple rule that specifies message properties - rule = 'priority 1';<br />

here are example rules that specify a combination of message properties and data<br />

attributes: rule = 'priority 1 AND tab.userdata.sal 1000' rule =<br />

'((priority between 0 AND 3) OR correlation = ’BACK_ORDERS') AND<br />

tab.userdata.customer_name like ''JOHN DOE'')'<br />

Note that user data properties or attributes apply only to object payloads and must<br />

be prefixed with tab.userdata in all cases. Check documentation for more examples.<br />

Is registration for notification (OCI) the same as starting a listener?<br />

No. Registration is an OCI client call to be used for asynchronous notifications (that<br />

is, push). It provides a notification from the server to the client when a message is<br />

available for dequeue. A client side function (callback) is invoked by the server<br />

when the message is available. Registration for notification is both nonblocking and<br />

nonpolling.<br />

What is the use of non-persistent queues?<br />

To provide a mechanism for notification to all users that are currently connected.<br />

The non-persistent queue mechanism supports the enqueue of a message to a<br />

non-persistent queue and OCI notifications are used to deliver such messages to<br />

users that are currently registered for notification.<br />

Is there a limit on the length of a recipient list? Or on the number of<br />

subscribers for a particular queue?<br />

Yes, 1024 subscribers or recipients for any queue.<br />

How can I clean out a queue with UNDELIVERABLE messages?<br />

You can dequeue these messages by msgid. You can find the msgid by querying<br />

the queue table view. Eventually the messages are moved to the exception queue<br />

Frequently Asked Questions 6-3

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

Saved successfully!

Ooh no, something went wrong!