Oracle AQ - why I don't see processed messages in global view?
-
Does anyone have an idea on why I see PROCESSED messages here: select 'MFS_MISSION' as queue_name, CONSUMER_NAME, MSG_STATE, count(*) from aq$MFS_MISSION_QTAB group by consumer_name, MSG_STATE QUEUE_NAME CONSUMER_NAME MSG_STATE COUNT(*) ------------- ---------------- ------------ ----------- MFS_MISSION T1 PROCESSED 143216 MFS_MISSION S1 PROCESSED 377208 but not here: select dq.queue_table, dq.queue_type, dq.name, v$aq.waiting, V$AQ.ready, V$AQ.expired, V$AQ.total_wait, V$AQ.average_wait from V$AQ, dba_queues dq where dq.qid=v$aq.qid and dq.name like '%MISSION%' QUEUE_TABLE QUEUE_TYPE NAME WAITING READY EXPIRED TOTAL_WAIT AVERAGE_WAIT ---------------- --------------- ---------------------- ---------- -------- ---------- ------------- --------------- MFS_MISSION_QTAB EXCEPTION_QUEUE AQ$_MFS_MISSION_QTAB_E 0 0 0 0 0 MFS_MISSION_QTAB NORMAL_QUEUE MFS_MISSION_QUEUE 0 539002 0 0 0 MFS_MISSION_QTAB EXCEPTION_QUEUE AQ$_MFS_MISSION_QTAB_E 0 0 0 0 0 MFS_MISSION_QTAB NORMAL_QUEUE MFS_MISSION_QUEUE 0 480333 0 0 0 The queue has retention of 0, so messages should either be PROCESSED or disappear altogether as soon as they are committed. The count of messages tells me they have accumulated over course of months. I'll be glad for any pointers, esperience or insights. Edit: Oracle Database 10g Release 10.2.0.3.0
-
Answer:
In a multiple consumer queue, messages remain in the queue until all subscribers have consumed the message. I would seem like the discrepancy between v$aq and aq$MFS_MISSION_QTAB would indicate that there are messages being shown in v$aq that are still waiting for all of the subscribers to consume so they can be marked as processed. Also, you have 2 entries in aq$MFS_MISSION_QTAB for you MFS_MISSION_QUEUE. Do these have different Owners are are you using RAC?
slovon at Server Fault Visit the source
Related Q & A:
- Why Photos Don't Open with E-Mail?Best solution by Yahoo! Answers
- Why I can't send messages from yahoo messenger?
- Is there any way I can get my MSN password back if I don't know the secret question that it asks?Best solution by Yahoo! Answers
- How should I deal with people I don't like at work?Best solution by time.com
- How do I find a certain tv channel if I don't know what number it is?Best solution by timewarnercable.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.