ORA-24033: no recipients for message
When we try to enqueue messages on this queue now, we receive an ORA-24033: no recipients for message. This means we need to set up subscribers first. If we enqueue without a recipient list, the message will be made available for all subscribers.
To add a subscriber, we use the dbms_aqadm package and a new object_type: sys.aq$_agent.
This type is defined as an object of name , address and protocol. The last 2 are used in inter-system communication only.
We can just call the following procedure:
DECLARE
V_agent sys.aq$_agent;
BEGIN
V_agent:= sys.aq$_agent('Agent1',NULL,NULL);
DBMS_AQADM.ADD_SUBSCRIBER(queue_name=>'xxx_mc_test_q'
,subscriber=>v_agent);
END;
We can see the subscribers from the view aq$xxx_mc_test_s (or the underlying table: aq$_xxx_mc_test_s):
select * from aq$xxx_mc_test_s;
QUEUE NAME ADDRESS PROTOCOL TRANSFORMATION
————– —— ——- ——– ————–
XXX_MC_TEST_Q AGENT1 0
參考:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1231891/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Message(Message Pool)原始碼分析原始碼
- javascript message事件JavaScript事件
- ActiveMQ - message cursorMQ
- Android Handler機制之Message及Message回收機制Android
- 修改 commit messageMIT
- Flash Message For Laravel 5Laravel
- Android Message解析Android
- 【Exception】:own error messageExceptionError
- Handler、Looper、Message隨筆OOP
- SQL*Net message from clientSQLclient
- Error message: ORA-48913Error
- Git commit message 規範GitMIT
- SMB(Server Message Block) Protocal ResearchServerBloC
- jquery ui Message 簡單使用jQueryUI
- android原始碼解析--MessageAndroid原始碼
- hs message to agent'阻塞會話會話
- WebSphere Message Broker HttpInput 節點WebHTTP
- 關於IPC-Message通訊
- “reliable message”事件引發的思考事件
- Message,MessageQueue,Looper,Handler詳解OOP
- 小知識分享:顯示MESSAGE
- PTP ACS9522 Message rate
- MQTT 遺囑訊息(Will Message)的使用MQQT
- unity 3種message訊息管理使用Unity
- Git Message能引起極度舒適?Git
- Handler,Looper,MessageQueue,Message直接聯絡OOP
- 【等待事件】SQL*Net message from dblink事件SQL
- Fanuc Socket Message通訊第一講
- NoSuchObjectException(message:ods_db.event table not found)ObjectException
- iOS 簡訊攔截 Message Filter ExtensioniOSFilter
- IBM Message Broker筆記系列(九)IBM筆記
- WebSphere Message Broker -JavaCompute元件的使用WebJava元件
- Building a Pub/Sub Message Bus with WCF and MSMQUIMQ
- Android Handler Looper Message 詳細分析AndroidOOP
- 新手求助高手,message例項出錯.
- Tcode:KEPM Message no. KG803
- weblogic jms訊息狀態messageWeb
- IOI D1 T2 message