ORA-26841: No subscribers are found for queue “string”.”string”.
Cause: No propagation or apply was configured for the specified queue.
Action: Configure propagation or apply for the specified queue.
ORA-26841 是 Oracle AQ 队列管理器的错误代码,它表示没有找到请求的订阅者。
官方解释
ORA-26841: 没有找到认购队列”[schema.queue]”的订阅者。
常见案例
当你试图在一个队列上添加一个订阅者时,但没有成功时,你就可以得到这个错误代码:
BEGIN
DBMS_AQADM.ADD_SUBSCRIBER( queue_name => ‘my_queue’, subscriber => ‘my_subscriber’ );
END;
正常处理步骤
1、首先,列出所有订阅者:
SELECT SUBSCRIBER_NAME FROM USER_AQ_SUBSCRIBERS
2、检查你需要添加的订阅者是否已经存在于队列中:
SELECT * FROM USER_AQ_SUBSCRIBERS
WHERE QUEUE_NAME =’my_queue’
AND SUBSCRIBER_NAME=’my_subscriber’
3、如果没有,则添加订阅者:
BEGIN
DBMS_AQADM.ADD_SUBSCRIBER( queue_name => ‘my_queue’, subscriber => ‘my_subscriber’ );
END;
4、最后,检查订阅者是否已成功添加:
SELECT * FROM USER_AQ_SUBSCRIBERS
WHERE QUEUE_NAME = ‘my_queue’
AND SUBSCRIBER_NAME = ‘my_subscriber’
本文标签:#8221. ORA-26841 No subscribers are found for queue #8220string #8221string
原文链接:
版权说明: 本文由作者上传,本站仅提供存储服务,转载请注明原文链接