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.

Working with Messaging Gateway<br />

instead of the destination queue. If a subscriber does not have an exception queue<br />

specified, the propagation job stops when message conversion fails.<br />

For outbound propagation, the exception queue must refer to an already existing<br />

AQ queue. The payload type of the source and exception queue must match. The<br />

exception queue must be created as a queue type of NORMAL_QUEUE rather than<br />

EXCEPTION_QUEUE.<br />

For inbound propagation, the exception queue must be a registered non-<strong>Oracle</strong><br />

messaging system queue, and the source and exception queues must use the same<br />

messaging system link.<br />

Monitoring Propagation Jobs<br />

You can use the MGW_SUBSCRIBERS view to check the existing configuration of<br />

subscribers and to monitor the status of propagation jobs. In addition to the<br />

configured information, columns in the view indicate the total number of messages<br />

propagated for the job (since the Messaging Gateway agent started), the number of<br />

propagation failures, the status of the propagation job, and error information.<br />

The subscriber status value of ENABLED indicates that the subscriber is enabled.<br />

(Note that this does not mean that the propagation job is enabled. For a propagation<br />

job to be enabled, both the subscriber and an associated schedule must be enabled).<br />

DELETE_PENDING indicates that subscriber removal is pending. This can occur<br />

when DBMS_MGWADM.REMOVE_SUBSCRIBER is called, but certain cleanup tasks<br />

pertaining to this subscriber are still outstanding. In release 9.2, a subscriber’s status<br />

is always ENABLED unless it is DELETE_PENDING.<br />

Error information includes the number of delivery failures, last error message, the<br />

last error date, and the last error time. If the number of failures reaches 16,<br />

propagation stops. Refer to "Resetting Propagation Jobs" on page 18-22.<br />

Checking Propagated Messages: Example<br />

SQL> select subscriber_id, queue_name, propagated_msgs, exceptionq_msgs from<br />

mgw_subscribers;<br />

SUBSCRIBER_ID QUEUE_NAME PROPAGATED_MSGS EXCEPTIONQ_MSGS<br />

--------------------------------------------------------------------<br />

SUB_AQ2MQ MGWUSER.SRCQ 1014 10<br />

Checking for Errors: Example<br />

SQL> select queue_name, failures, last_error_msg from mgw_subscribers where<br />

subscriber_id = ‘SUB_AQ2MQ’;<br />

Messaging Gateway 18-25

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

Saved successfully!

Ooh no, something went wrong!