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.

Performance Questions<br />

How do I use agent information stored in an OID?<br />

You can create aliases for an AQ agent in OID. These aliases can be specified while<br />

performing AQ operations-enqueue, dequeue, and notifications. This is specifically<br />

useful while performing AQ operations over the Internet when you do not want to<br />

expose an internal agent name. An alias can be used in an AQ operation (IDAP<br />

request).<br />

Transformation Questions<br />

Performance Questions<br />

What happens to enqueue, dequeue, or propagation if the<br />

transformation mapping raises an error?<br />

Enqueue and dequeue of the message will raise the error to the application. If the<br />

error occurs during the dequeue operation, the retry count of the message is<br />

incremented. If the retry count exceeds max_retries, the message is moved to<br />

the exception queue. If the error occurs during propagation, it is handled in a<br />

manner similar to dequeue; propagation of the message will fail. It will be<br />

attempted again and the message will be moved to the exception queue when retry<br />

count exceeds max_retries for the queue.<br />

How do you do transformation of XML data?<br />

Transformation of XML data can be done in one of the following ways:<br />

Using the extract operator supported on XMLType to return an object of<br />

<br />

XMLType after applying the supplied XPath expression.<br />

Creating a PL/SQL function that transforms the XMLType object by applying an<br />

<br />

XSLT transformation to it, using the package XSLPROCESSOR.<br />

What is the maximum number of queues that a table can have without<br />

affecting performance?<br />

Performance is not affected by the number of queues in a table.<br />

When messages are moved from one queue to another using<br />

propagation, is there any optimization to move the messages in batches,<br />

rather than one at a time?<br />

Yes, if it is optimized, propagation happens in batches.<br />

Frequently Asked Questions 6-19

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

Saved successfully!

Ooh no, something went wrong!