ORA-22924: Snapshot Too Old when attempting to propagate from a queue
(Doc ID 1945688.1)
Last updated on MARCH 02, 2020
Applies to:
Oracle Database - Enterprise Edition - Version 11.1.0.7 to 12.1.0.2 [Release 11.1 to 12.1]Information in this document applies to any platform.
Symptoms
AQ propagation reports the following errors
kwqpdest: exception 22924
kwqjpropwin: Exception Occured, Error msg:ORA-22924: snapshot too old
kwqjpropwin: exit}
Propagation Schedule for (<OWNER>.<QUEUE>, <DB_LINK>) encountered following error:
ORA-22924: snapshot too old
kwqjaq: Exception 22924 Occured
ORA-22924: snapshot too old
Customer identified the problem message from analysis and when they attempted to purge just that message the following error was reported
DECLARE
po dbms_aqadm.aq$_purge_options_t;
BEGIN
po.block := FALSE;
DBMS_AQADM.PURGE_QUEUE_TABLE(
queue_table => '<QUEUE_TABLE>'
,purge_condition => 'qtview.queue = ''<QUEUE>'' AND qtview.msg_id=''<MESSAGE_ID>'''
,purge_options => po);
END;
/
DECLARE
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-01502: index '<OWNER>.<INDEX_NAME>' or partition of such index is in unusable state
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 9856
ORA-06512: at "SYS.DBMS_AQADM", line 1366
ORA-06512: at line 5
On rebuild of index :
SQL> alter index <OWNER>.<INDEX_NAME> rebuild ;
Index altered.
ERROR :
SQL> select * from <OWNER>.<QUEUE_TABLE> where rowid = '<ROW_ID>' ;
ERROR:
OCI-01555: Message 1555 not found; product=RDBMS; facility=OCI
Changes
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 |