My Oracle Support Banner

Dequeue by msgid of a message in WAIT state does not work properly in 11.2 (Doc ID 1365655.1)

Last updated on MARCH 11, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.3 [Release 11.2]
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

Dequeue via msgid does not work in 11.2 when the message is in a WAIT state.

The same dequeue via msgid works correctly in 10.2 and 11.1.

On 10.2 and 11.1 after dequeue the following is observed


SQL> select queue, msg_id, msg_state, enq_user_id, CONSUMER_NAME from aqadm.aq$MESSAGE_QUEUE;

QUEUE MSG_ID MSG_STATE
------------------------------ --------------------------------
----------------
ENQ_USER_ID CONSUMER_NAME
------------------------------ ------------------------------
MESSAGE 98B428FE4D434EADE040007F010038F2 PROCESSED
AQADM MESSAGE

MESSAGE 98B428FE4D444EADE040007F010038F2 PROCESSED
AQADM MESSAGE


while in 11.2.0.* after dequeue the following is observed


SQL> select queue, msg_id, msg_state, enq_user_id, CONSUMER_NAME from aqadm.aq$MESSAGE_QUEUE;

QUEUE MSG_ID MSG_STATE
------------------------------ --------------------------------
----------------
ENQ_USER_ID CONSUMER_NAME
------------------------------ ------------------------------
MESSAGE 98B42C6586F48228E040DC0AA7130BA6 PROCESSED
AQADM MESSAGE

MESSAGE 98B42C6586F38228E040DC0AA7130BA6 WAIT
AQADM MESSAGE

Changes

Upgrade to 11.2 with no changes made to the Advanced Queueing code.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.