Why can't I remove the than us?
Hello world.I used the advanced queue to achieve a spread of message from a database to a different db and it spread the message successly.
But there are a few problems when I want to remove from the queue.
DB version: 10.2.0.4.0
OS: Linux
source:
-create a type for queues
CREATE the AQ type. Message_typ as object)
topic VARCHAR2 (30),
text VARCHAR2 (80));
-create queues
DECLARE
sys.AQ$ _agent of the Subscriber;
BEGIN
-create a queue table
DBMS_AQADM. CREATE_QUEUE_TABLE (queue_table = > 'aq.que_shenshou_tab',)
multiple_consumers = > TRUE,
queue_payload_type = > ' AQ. Message_typ');
-create a queue and start
DBMS_AQADM. CREATE_QUEUE (queue_name = > 'aq.que_shenshou_send',)
queue_table = > 'aq.que_shenshou_tab');
DBMS_AQADM. START_QUEUE (queue_name = > 'aq.que_shenshou_send');
-Add subscribers to the queue
Subscriber: sys.aq = $_agent ('sender', '[email protected]', NULL);
DBMS_AQADM. ADD_SUBSCRIBER (queue_name = > 'que_shenshou_send',)
Subscriber = > Subscriber);
-create calendar spread
DBMS_AQADM. SCHEDULE_PROPAGATION (queue_name = > 'que_shenshou_send',)
destination = > 'busi.lk');
END;
enqueue - the message
DECLARE
enqueue_options DBMS_AQ.enqueue_options_t;
message_properties DBMS_AQ.message_properties_t;
recipients DBMS_AQ.aq$ _recipient_list_t;
message_handle RAW (16);
message aq.message_typ;
number of seq_number;
BEGIN
because loop me in 1.10
Select seq_shenshou.nextval in the double seq_number;
message: = message_typ ("tree:" | ") seq_number,
"This message is waiting for the queue subscribers.");
DBMS_AQ. ENQUEUE (queue_name = > 'que_shenshou_send',)
enqueue_options = > enqueue_options,
message_properties = > message_properties,
payload = > message,.
msgid = > message_handle);
COMMIT;
DBMS_LOCK. Sleep (1);
end loop;
END;
THE REMOTE CONTROL:
CREATE the AQ type. Message_typ as object)
topic VARCHAR2 (30),
text VARCHAR2 (80));
Start
DBMS_AQADM. () CREATE_QUEUE_TABLE
queue_table = > "aq.que_shenshou"
queue_payload_type = > ' AQ. Message_typ',.
multiple_consumers = > TRUE);
end;
Start
DBMS_AQADM. () CREATE_QUEUE
queue_name = > "aq.que_shenshou_rec"
queue_table = > 'aq.que_shenshou');
end;
Start
DBMS_AQADM. () START_QUEUE
queue_name = > 'aq.que_shenshou_rec');
end;
Start
() dbms_aqadm.add_subscriber
queue_name = > "aq.que_shenshou_rec"
Subscriber = > sys.aq$ _agent ('ability to use', null, null)
);
end;
I checked the table of the queue on the remote db and ensure that messages have been propagrated successely.
then I run the codes as follows:
DECLARE
dequeue_options DBMS_AQ.dequeue_options_t;
message_properties DBMS_AQ.message_properties_t;
message_handle RAW (16);
message aq.message_typ;
BEGIN
dequeue_options. Navigation: = DBMS_AQ. FIRST_MESSAGE;
dequeue_options.consumer_name: = 'possibility to USE. "
DBMS_AQ. DEQUEUE (queue_name = > ' AQ.) QUE_SHENSHOU_REC',.
dequeue_options = > dequeue_options,
message_properties = > message_properties,
payload = > message,.
msgid = > message_handle);
DBMS_OUTPUT. Put_line (' subject: ' | message.subject);
DBMS_OUTPUT. Put_line (' text: ' | message.text);
COMMIT;
END;
But I found this code would go along and not finished.
Please tell me is it a mistake I made and what is the right way to remove it from the queue in this situation?
Thank you!
Hello
Subscriber: sys.aq = $_agent ('sender', '[email protected]', NULL);
should be
Subscriber: sys.aq = $_agent ("ability to use ', '[email protected]', NULL");
With your code enqueue the message is communicated to subscribers by default. In its current form the message will be propagated to the target queue and made available to the sender of the consumer.
So, if you change your code dequeue for
dequeue_options.consumer_name: = 'SENDER ';
It will consume the message that has been propagated.
Thank you
Peter
Tags: Database
Similar Questions
-
Why can't I remove the sides of the grey?
A weird thing happened. Some of my songs have the coast star dimmed, see chart below. Tracks 1 and 5 are the stars that I put. But I have not defined the greyed rankings 2 channels 2 3 & 4 stars. I can't remove the greyed sides: all that I can do is to reset to a half star side (I have an app to do this). On these tracks to which I applied a half-note, I can remove it the same way, we can eliminate any level of qualification; But if I do this on a side of greyed, he resets just two-star dimmed.
See Re: manipulation of the gray stars
TT2
-
Why can't I remove the anchor mesh?
Hello
I seem to be able to remove the anchor mesh points when they are on line, but not when they are at the end. For example, this one.
Does anyone know why this might be?
Thank you
Sally
Try using the NET tool to delete this one.
But: if it is one of the 4 points angle that you will not be able to delete.
-
Why can't I remove the error HTTP 404 not found on my screen
I got orange web page then that opened not more so I have been using google and kept getting HTTP 404 not found appear on the screen and blocks access to other sites. I have now installed firefox. don't know what to do at all. my computer keeps going really slow too. It of an old version of advent and has windows vista.
Hi krissy555,
This error looks like your garden variety networking problem.
A few quick questions...
1. When did you start this error appear?
2 can you access any web site or what's with a couple?
3. is there anything to be added or deleted before this started?
4. make the same mistake with different browsers?
Here is a link to troubleshooting for general problems. Let us know what happens.
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-connection-problems
B Eddie -
Why can't I download the update for windows 8
Why can't I download the update for windows 8 as advertised on the site?
Windows 8 will be available for download upgrade of existing PCs in more than 140 markets and 37 languages in earlyhttp://www.windows.com/buy at 12: 00, local time in branches worldwide.
You can read the full announcement here
-
Why can't I find the pages I visited yesterday in Firefox 9.0.1?
Why can I not see the sites I opened yesterday in the history section?
'Today' show only.
The browser is version 9.0.1
OS is XPMake sure that you do not use to clear the history to clear the browsing history when you close Firefox.
- Tools > Options > Privacy: history: [X] clear history of Firefox closing > settings
If you use a software like CCleaner cleaning then check the settings in the Firefox application.
-
Why can't I have the menu bar (XP) and also the figure of firefox?
Under XP, why can't I have the menu bar and the firefox logo is displayed?
You can have the Firefox menu orange button if the menu bar is disabled if it is Firefox logo you want to say and not on the icon on the title bar.
-
Why can I not see the tabs that are on my other computer?
I have synced with another computer and it is said that it is connected and I can see my favorites, but why can't I see the tabs that I frequently use on another computer?
History > 'tabs on other computers.
-
Why can't I download the 9.3 iso upgrade? He always tells me that I am not connected to the Internet and I know that I am.
Apple withdrew temporarily updating iOS 9.3 for devices more old to deal with some issues, what he was creating. Better to wait a few days for them to correct problems.
-
Why can't I see the other video of people on my samsung galexy s5 if they are on a laptop?
Theybsay they can see me, but all I see is myself. I just downloaded Skype 3 days ago so id assume that it is the most recent version.
-
Yosemite zero space. can I just remove the "Recently deleted" - photos and how to find them?
That will help, go to Photos > file > show recently deleted > clear everything up right
Also:
http://pondini.org/OSX/diskspace.html
This app will tell you better that uses storage so you can remove
https://www.OmniGroup.com/more
Make sure that you also empty the trash
-
How can I manually remove the virus "boot.tidserv" from my computer.
Original title:
How can I manually remove the virus "boot.tidserv" from my computer. There is no software available to remove what I can find
How can I manually remove the virus "Boot.tidserv" from my computer. I use windows XP. I have tried many software remover... No luch... Help, please
Hello
1. what anti-virus software is installed on the computer?
You can download and run a full scan of the system using the Microsoft Safety Scanner and check if this helps to eliminate the Virus.
Microsoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx
Note:
The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
You can also consider to download Microsoft Security Essentials, which offers protection in real time for your home or small office PCs.
Reference:
Microsoft Security Essentials
http://Windows.Microsoft.com/en-us/Windows/products/security-essentials
-
Why can't I find the display on the Control Panel icon.
original title: vista Control Panel
Why can't I find the display on the Control Panel icon.
Why can't I find the display on the Control Panel icon.
Control Panel has no icon
topic status, it must be said... Has begun
under Startup Type, it must be said... Automatic
If this isn't what you see, look in the left column, click Start (or restart)For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.
-
My hard drive is currently filled by PC DM files in my folder/Public user folder. How can I safely remove the right files in this folder? Vista Home Premium 64 bit is my os.
Hi templar_39,
DM (Message Delivery) file types are not Windows files, they can be generated by a third-party program.
This particular file type is often associated with audio data and can be hosted on some cell phones to be used as ringtones or multimedia clips. To my knowledge, these files can be generated by your mobile phone.
Note: you can go ahead and remove these files only if you notice that the files do not contain any important information.
If this happens without connect you all devices (like mobile PHONES), this may be a virus or malware activity. You can run a virus scan to get rid of them
Step 1: A scanner online for any threat and try to correct
http://OneCare.live.com/site/en-us/Center/cleanup.htm
Thank you, and in what concerns:
Ajay K
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
-
Why can't I print the word documents that have been previously registered? I never did have any problems before, im no ace with a computer still able to do.
could this laptop have updated the windows version? If yes how to say if in windows 7 or 10? any help is welcome and appreciated
I suggest that you uninstall and reinstall the printer and see if that makes a difference.
Let us know if that helps.
Maybe you are looking for
-
Can you recommend an external case for hard drive of my iMac?
My old A1312 27 "iMac died, but I think the hard drive is good. I want to take it out and use it as an external drive. I don't know what the case of to put in, there is an amazing range of options. Any help would be greatly appreciated. Thank you.
-
Pavilion dv5t-2100 CTO Windows 7 64 bit. Apparently the fix requires correct download software/driver for chipset intel. Problem is how to identify the chipset. Intel does not provide any utility for the chipset for W7 64-bit ID! Catch 22? What
-
corrupted Windows mail store error message, cannot delete messages
Windows Mail has been send me errors when I first open it and now will not let me delete some messages... It is said that he is recovering from... then a box pops up saying that the message store was damaged by an external application to Windows Mail
-
I had 3 BSOD relate to the windows kernel.
Original title: BSOD (s) I had three BSOD on this installation of current w7 and all three of them are different. According to bluescreenviewer, they relate to the windows kernel and a few others. (1) ntoskrnl.exe + 6f880 (03/09/2013) (2) fltmgr.sys
-
HelloWe have IOM works on jrockit - jdk1.6.0_45 - R28.2.7 - 4.1.0when trying to connect to http://Server:14000 / identity -it works wellWhen you try to connect tos-http: //server:14001/identitywith the latest version of FirefoxWe get error"no common