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.

<strong>Oracle</strong> 8.0-Style Queues<br />

5. Check for messages in the source queue with select count(*) from where<br />

q_name = '';<br />

6. Check for messages in the destination queue with the same kind of select.<br />

7. Check to see who is using job queue processes.<br />

Is it possible that the propagation job is being starved of processing time by<br />

other jobs?<br />

8. Check to see that sys.aq$_prop_table_ exists in dba_queue_tables and<br />

that queue aq$_prop_notify_ exists in dba_queues (used for<br />

communication between job queue processes).<br />

9. Check that the consumer attempting to dequeue a message from the destination<br />

queue is a recipient of the propagated messages.<br />

For 8.1-style queues, you can do the following:<br />

select consumer_name, deq_txn_id, deq_time, deq_user_id,<br />

propagated_msgid from aq$<br />

where queue = '';<br />

For 8.0-style queues, you can obtain the same information from the history<br />

column of the queue table:<br />

or<br />

<strong>Oracle</strong> 8.0-Style Queues<br />

select h.consumer, h.transaction_id, h.deq_time, h.deq_user,<br />

h.propagated_msgid from t, table(t.history) h<br />

where t.q_name = '';<br />

select consumer, transaction_id, deq_time, deq_user,<br />

propagated_msgid from<br />

the(select cast(history as sys.aq$_dequeue_history_t)<br />

from where q_name = '');<br />

If you use 8.0-style queues and 8.1 or higher database compatibility, the following<br />

features are not available:<br />

Support for <strong>Oracle</strong> Parallel Server environments<br />

Asynchronous notification<br />

To use these features, you should migrate to 8.1-style or higher queues.<br />

4-14 <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!