Oracle AQ: Message not removed from source queue after propagation

Hi.
I have been playing around with a test setup for a "fanning out"-propagation system.
I have created three queues, SRC_Q, DEST_Q and DEST2_Q.
The propagation seems to work fine, the messages that I put on the SRC_Q get propagated to the destination queues. However, after propagation the message does not get removed from the source queue. Could anyone tell me why?
I am using Oracle 10g.
Here is my setup:
--Test payload
CREATE OR REPLACE TYPE test_payload AS OBJECT(
test_id NUMBER,
test_dt DATE);
commit;
DECLARE
subscriber SYS.aq$_agent;
BEGIN
--- Create Originating Queue and start it
DBMS_AQADM.create_queue_table( queue_table => 'SRC_MQT', queue_payload_type => 'Test_Payload',
multiple_consumers => TRUE );
DBMS_AQADM.create_queue( 'SRC_Q', 'SRC_MQT' );
DBMS_AQADM.start_queue( queue_name => 'SRC_Q' );
--- Create Destination Queue and start it
DBMS_AQADM.create_queue_table( queue_table => 'Dest_MQT', queue_payload_type => 'Test_Payload',
multiple_consumers => TRUE );
DBMS_AQADM.create_queue( 'Dest_Q', 'Dest_MQT' );
DBMS_AQADM.start_queue( queue_name => 'Dest_Q' );
--- Create Destination Queue2 and start it
DBMS_AQADM.create_queue_table( queue_table => 'Dest2_MQT', queue_payload_type => 'Test_Payload',
multiple_consumers => TRUE );
DBMS_AQADM.create_queue( 'Dest2_Q', 'Dest2_MQT' );
DBMS_AQADM.start_queue( queue_name => 'Dest2_Q' );
--- Add Subscribers and schedule propagation
subscriber := SYS.aq$_agent( 'test_sub', 'Dest_Q', NULL );
DBMS_AQADM.add_subscriber( queue_name => 'SRC_Q', subscriber => subscriber , queue_to_queue=> TRUE);
subscriber := SYS.aq$_agent( 'test_sub2', 'Dest2_Q', NULL );
DBMS_AQADM.add_subscriber( queue_name => 'SRC_Q', subscriber => subscriber , queue_to_queue=> TRUE );
--Propagation to queues
DBMS_AQADM.schedule_propagation( queue_name => 'SRC_Q', destination_queue => 'Dest_Q' );
DBMS_AQADM.schedule_propagation( queue_name => 'SRC_Q', destination_queue => 'Dest2_Q' );
commit;
END;
--Put something on the queue
DECLARE
message_handle RAW( 16 );
MESSAGE test_payload;
nq_opt dbms_aq.enqueue_options_t;
nq_pro dbms_aq.message_properties_t;
begin
nq_opt.visibility := dbms_aq.immediate;
nq_pro.expiration := dbms_aq.never;
MESSAGE := test_payload( 2, SYSDATE );
DBMS_AQ.enqueue( 'SRC_Q', nq_opt,nq_pro,MESSAGE, message_handle );
COMMIT;
END;
I am really stuck with this problem so I really hope somebody have some advice on what I am doing wrong.

I am also facing a similar issue. I have a multiconsumer queue. The message has been dequeued but the message is still present in the queue table and the message is also present in AQ$<queue_name> and the state is being shown as 'processed'.
This all was working fine few days back and somehow stopped working all of sudden. The DB version which I am using is - 11.1.0.7.0. Any help related to this will be greatly appreciated
-AA

Similar Messages

  • Messages not removed from Inbox when deleted on iphone

    My company has an exchange based mail system and they provide imap access for devices like the iphone.
    I set up the iphone to connect to the server and can read messages just fine. I set the Deleted items option in the Settings app for Mail to be the Deleted Items folder on the server.
    When I delete the messages on the iphone this is what happens:
    1) The message disappears from the Inbox on the phone.
    2) The message appears in the Trash on the phone.
    3) The message appears in the Deleted Items folder on the server (as viewed from my normal work computer).
    4) The message stays in the Inbox folder on the server.
    So, in sum, things do what they are supposed to do on the phone. On the server, I wind up with 2 copies of the same message - one in Inbox and one in Deleted Items.
    I will point out that the same behavior occurs when I try to move an item from any folder to any other from the iphone. The message winds up in both the original and the target folders....
    What do I need to do to set it up so that messages are removed from the originating folder on a delete or move?
    Thanks

    Sounds like typical POP behavior.
    Is your mail account POP or IMAP?
    If POP, then your mail activities are normal, that's how POP operates.
    If it's IMAP, contact your server admin, as IMAP should be reflecting all activity across all devices with that specific account on it.

  • Infopath form not removed from central admin after retracting the solution

    I have InfoPath form admin appvoed deployed through Stat machine workflow when I retracting some forms are not removing from Central admin
    when trying to deploying it says
    Error 3 Error occurred in deployment step 'Add Solution': An object of the type Microsoft.Office.InfoPath.Server.Administration.FormTemplate named "urn:schemas-microsoft-com:office:infopath:" already exists under the parent Microsoft.SharePoint.Administration.SPFarm
    named "SharePoint_Config".  Rename your object or delete the existing object.
    I have tried renaming the file as well
    MCTS,ITIL

    Hey shahid
    try to use force command to uninstall/remove solution,then only add solution.
    if this not work out then first uninstall feature using force and manually delete feature folder from file system inside layouts.
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • Dequeued messages not deleted from one queue but other works

    Hi,
    I have a multiconsumer queue with two local subscribers.
    The messages go to the 'PROCESSED' state but do not get
    deleted from the queue table.
    As a test, I created another single consumer queue in a different andqueue table, but the oracle deleted the 'PROCESSED' messages as expected.
    In the multiconsumer queue, the messages are added by a trigger on the table. The enqueued messages varies from 100000 to 10000 per hour.
    aq_tm_processes = 5
    job_queue_processes=4
    What else can I do debug the problem?
    Is there any log file on the database server that I can
    look at any potential problem.
    I would appreicate any responses. This could very well
    be a newbie problem. I have not worked on advanced queues
    before and nor has anyone else in our system.
    Thanx,
    HB.

    I forgot to add that I am using default retention time
    and when I query user_queue the retention time is set to zero for the multiconsumer queue.

  • Deleted message not removed from iPhone Inbox

    Since updating my iPhone 3G to 4.01 I have found that when I delete messages from the inbox the messages are not completely removed from the inbox. I am left with a blank unread message. The only way I can completely delete is to turn the phone off and restart. Is anybody else having this problem? I have also found that I lose service in places I have been able to use the phone.

    theguz4l wrote:
    bump ... any response RIM?
    While VF provided a reply above, such is never expected here...refer to this information posted at the top of every page on this site:
    Also, given VFs reply above, you might want to contact your carrier for formal support.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Oracle Services are not removed from system (10g, on Windows 2003)

    Hi,
    I haven't used Oracle on Windows Os before and not sure what to do.
    Here is what happened
    1- I installed 10g on windows 2003 server, created a database with service name OPER
    2- I was unhappy with the installation and removed it.
    3- then I installed Oracle 10g software again, creating a database again which has name IZROPER
    now, there are two of every oracle service in the services.msci
    service names containing the first db's (OPER) are still showing up in services, how can I remove them?
    ORACLEDBCONSOLEoper
    OracleJobSchedulerOper
    OracleServiceOper
    etc..

    start -- run -- > regedit
    In regedit mode --> HKLM -> SYSTEM -- currentcontrol set --> services --> here Oracle services are avilable , you can delete from here.

  • PO Approval Items Workitems are not removed from the Universal Worklist UWL

    Hi,
    Certain of our purchase orders require approval, they are sent to the relevant approver via workflow to their SAP inbox (SBWP) and universal worklist.
    When the user executes the workitem (Approve or Reject) The workitem should be removed from the universal worklist and SBWP when refreshed.
    The problem we experiencing is that the Workitems are not removed from the UWL after they have been executed. The SBWP is behaving correctly and the items are removed.
    It is not all the workitems that have this problem, only certain ones - but there is no pattern.
    Thanks for the help.

    Hi,
    The user B approved the PR accessing the transaction SBWP or via PR transaction directly?
    If via PR transaction directly, then your workflow needs a Wait Event step.
    Regards,
    Kleber

  • Message Driven bean: message always removed from queue

    We use MDB to dequeue messages from database queue (AQ) and want to handle errors: if the transaction rolls back, message should have retry_count updated and after defined retries should move to exception queue.
    The problem is, that with all combinations of transactions settings, the message is removed from queue before onMessage is called. If I use Container managed transactions with Mandatory transaction attribute, call to setRollbackOnly fails with message "java.lang.IllegalStateException: Cannot call setRollbackOnly() current thread is NOT associated with a transaction."
    How can I write a MDB, which can commit or rollback message depending on whether exception is or is not thrown? I use JDev 10.1.3.
    Thanks,
    Viliam
    Here are my files:
    ejb-jar.xml:
    <?xml version = '1.0' encoding = 'windows-1250'?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
      <enterprise-beans>
        <message-driven>
          <description>Message Driven Bean</description>
          <display-name>SendSMSBean</display-name>
          <ejb-name>SendSMSBean</ejb-name>
          <ejb-class>sk.transacty.cc.ejb.SendSMSBeanBean</ejb-class>
          <transaction-type>Container</transaction-type>
          <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
          <message-driven-destination>
            <destination-type>javax.jms.Queue</destination-type>
          </message-driven-destination>
          <resource-ref>
            <res-ref-name>jdbc/CCDataSource</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
        </message-driven>
      </enterprise-beans>
      <assembly-descriptor>
        <container-transaction>
          <method>
            <ejb-name>SendSMSBean</ejb-name>
            <method-name>*</method-name>
          </method>
          <trans-attribute>Mandatory</trans-attribute>
        </container-transaction>
      </assembly-descriptor>
    </ejb-jar>orion-ejb-jar.xml:
    <?xml version = '1.0' encoding = 'windows-1250'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" "http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd">
    <orion-ejb-jar>
      <enterprise-beans>
        <message-driven-deployment max-instances="1" name="SendSMSBean" connection-factory-location="java:comp/resource/jmsAQ/QueueConnectionFactories/aqQue" destination-location="java:comp/resource/jmsAQ/Queues/msg_queue" listener-threads="1" min-instances="0"/>
      </enterprise-beans>
      <assembly-descriptor>
        <default-method-access>
          <security-role-mapping impliesAll="true" name="<default-ejb-caller-role>"/>
        </default-method-access>
      </assembly-descriptor>
    </orion-ejb-jar>

    As far as I know XMLType JMS messages are not supported when using OJMS. They might be for OC4J 10.1.3, but I thought it's an AQ limitation rather than an OC4J one.. To be sure you might just log a TAR on Metalink.
    hth,
    Bastiaan

  • "Could not read from source" exporting on Mac with CS4

    I'm using Premiere CS4 on a MacBook Pro, trying to export a film and getting the  "could not read from source" message.  I did not have CS3, and I'm not on a pc, so the Windows KB articles and posts don't apply.  I've read all the posts I can find on the forums but none of these solutions is helping to date.
    Are there any troubleshooting steps someone can recommend to figure out what I need to do here?
    Here's the trace, any assistance is MUCH appreciated!
    - Source File: /Users/johnchmaj/Library/Caches/TemporaryItems/circle _6.prproj
    - Output File: /Users/johnchmaj/Documents/Personal + Projects/Living Universe/Snoqualmie Valley/Valley Breezes Premiere/1circle:introitus/Valley Breezes 6-41.m2v
    - Preset Used: NTSC High Quality
    - Video:
    - Audio:
    - Bitrate:
    - Encoding Time: 30:44:29
    Wed Aug 19 16:52:56 2009 : Encoding Failed
    Could not read from the source. Please check if it has moved or been deleted.

    I have been having the same issue on my desktop and laptop, although I have Windows XP Professional.  Originally had CS3 and then installed CS4.  The problem was fixed by uninstalling everything Adobe (even Reader), using the wincs3sclean, and reinstalling the CS4 products.  The first time it did't work on my laptop, so I did it a second time and it worked.  I don't have Creative Suite, but this still works.  Here is the link to wincs3clean:
    http://kb2.adobe.com/cps/401/kb401574.html

  • After deleting users they are not removed from portal30.wwsec_person

    I am building a customized script to carry on users self registration.
    the script is going great and user is created and i can log into portal
    successfully with this new created user.
    I relogin as portal administrator and delete this new user and now if i tried
    to list portal users I cant see the user.
    But when I try to rerun my script to recreate this user again it fails when I
    investigated I found that it fails because the entry of this user is removed
    from portal30_sso.wwsec_person while it still exists in portal30.wwsec_person
    so the script fails as there is duplicate in primary key.
    Is this a bug in portal 309 that when the user is deleted it is not removed
    from portal30.wwsec_person

    This is actually a combination of intended behavior/design and a bug.
    Let me first explain why there is a user in both the PORTAL30_SSO schema as well as the PORTAL30 schema.
    The definition of the user, that can log in, and defines the single sign-on account, is the user's entry in the
    WWSEC_PERSON$ table in the PORTAL30_SSO schema. The SSO server actually just uses a subset of the
    columns in this table -- those defined in the WWSSO_SSO_USER view.
    The same table exists in the PORTAL30 schema, because there is a lot of common infrastructure code
    shared by both applications (Login Server, and Portal). The Security and Session Management code
    is common, and this code includes the dependency on the WWSEC_PERSON$ table.
    Now, assuming that the code was independent (for the sake of argument), why do we still have an entry
    for the user in both schemas? As I mentioned earlier, the user entry in the SSO schema is the "master".
    The SSO server can have multiple partner applications connected to it. Indeed, on my.oracle.com, the
    login server there has at least 4 portals hooked up to it, and a few other non-Portal partner applications,
    such as Oracle Mobile.
    Each partner application may have a local user profile that it uses to store application specific attributes
    of the user. This is stuff that the Login Server is not interested in, and could in no way predetermine for
    all conceivable partner applications. So, it is not unreasonable for each partner application to also have
    a user record which stores additional attributes of the user (not related to user authentication), and which
    can be used to reference other user-related data. For example in the Portal, all the user's privileges
    and group memberships are tied to the Portal's user record (foreign key constraints). So, the Portal
    being just one partner application of the Login Server, it adhere's to this model and has a user entry
    in it's schema corresponding to the user entry in the Login Server.
    When a user logs on and accesses a partner application for the first time, the partner application (read Portal)
    is expected to automatically create a local profile entry for the user on demand. The Portal does this.
    In 3.0.9 and previous versions, to delete a user, you need to delete the user in the Login Server AND the Portal.
    The only way to do this is to first delete the user in the Login Server, using the User Portlet.
    Then type the user's name into the Portal User Profile portlet (they won't be in the LOV anymore since
    you just deleted them from the login server), and click Edit, then Reset To Defaults (this means delete).
    You will then get a User Not Found error, since the page is trying to go back to show the details about this user.
    (All this has been fixed in 9.0.2 v2, by the way).

  • Remove data source queue for datasource

    Hi,
    How to remove data source queue for datasource ?
    Regards,
    Patrick

    Depends on which datasource you are dealing with.
    Normally you can just delete the delta queue from transaction RSA7 in the source system. If you are dealing with logistic datasources it might be different.
    Hope it helps.
    BR
    Stefan

  • Long time ago I trialed elements 9  and could not remove from Programs; still can't

    Long time ago I trialed Elements 9  and could not remove from Programs at the time; still can't?
    I didn't go forward with '9' because of its size and it didn't appear to provide advantages for the cost.
    How do I uninstall it when conventional methods fail. Message received in Windows Installer is, ' The feature you are trying to use is on a network resource that is unavailable.' Elements 9 cannot be used.

    " When I did this, my library showed all the music I have "purchased" from itunes but did not have the music that I downloaded a long time ago through itunes from my old CDs."
    Correct.
    " How can I get that music to show up in my library now on my new computer?  "
    Copy it from your old computer or your backup copy of your old computer.
    The sync is one way - computer to ipod.

  • Message "not downloaded from server. You need to take this account online

    After upgrading to 10.4.9, when I click on any of the old emails in my inbox I get the message "this message not downloaded from server. You need to take this account online in order to download it."
    I can still read all email in any other mailbox.
    I can read all email received after upgrading.
    I appreciate any help.
    G4 17 inch   Mac OS X (10.4.9)   1 gb ram

    You upgraded to 10.4.9 from what?
    If you upgraded from Mac OS X 10.3 or earlier, the problem is that the conversion from Mail 1.x to Mail 2.x is broken. Take a look at the following thread to better understand the problem:
    Help! "You need to take this account online in order to download it."
    More specifically, if this is a POP account, the following procedure should allow you to fix the Inbox problem. A similar procedure should allow you to fix other mailboxes that might also be affected:
    1. Quit Mail if it’s running.
    2. Make a backup copy of the ~/Library/Mail folder, just in case something goes wrong while trying to fix the problem. You can do this in the Finder by dragging the folder to the Desktop while holding the Option (Alt) key down, for example. This is where all your mail is stored.
    3. Create a new folder on the Desktop and name it however you wish (e.g. Inbox Old). It doesn’t need to have an .mbox extension.
    4. In the Finder, go to ~/Library/Mail/POP-username@mailserver/INBOX.mbox/.
    5. Move the files mbox and Incoming_Mail out of INBOX.mbox, into the Inbox Old folder just created on the Desktop. These files contain all the messages that were in the mailbox before the upgrade to Tiger, and maybe even some messages that had been deleted. mbox is the most important. Incoming_Mail may or may not be present.
    6. Move any strangely-named Messages-T0x... folders to the Desktop (not into the Inbox Old folder). These folders are to be deleted after fixing the problem. They are temporary folders created during an import or an indexing process, and Mail should have deleted them when done. Their presence is a clear indication that something didn’t work as expected. If you’ve been using Mail after the conversion and have already tried to fix the problem by rebuilding the mailbox or something like that, they might contain messages that are neither in Messages proper nor in the mbox file, so keep them around until the problem is fixed.
    7. Move everything else within INBOX.mbox, except the Messages folder, to the Trash.
    The result of the above should be that INBOX.mbox contains the proper Messages folder only, and the Inbox Old folder on the Desktop contains the mbox and Incoming_Mail (if it exists) files only. Now, proceed as follows:
    8. Open Mail.
    9. The account’s Inbox should properly display in Mail as many messages as *.emlx files are in ~/Library/Mail/POP-username@mailserver/INBOX.mbox/Messages/. If that’s not the case, select the mailbox in Mail and do Mailbox > Rebuild.
    10. In Mail, do File > Import Mailboxes, choose Other as the data format, and follow the instructions to import the Inbox Old folder that’s on the Desktop.
    As a result of doing the above, some messages may be duplicated now. Andreas Amann’s Mail Scripts has a Remove Duplicates script that you may find useful.
    Do with the imported mail whatever you wish. You may move the messages anywhere you want and get rid of the imported mailboxes afterwards.
    If all is well and you don’t miss anything, the files on the Desktop can be deleted, although you may want to keep them for a while, just in case.
    Take a look at the following article (also referenced in the thread I mentioned at the beginning of this post) to learn what you might have done before upgrading to minimize the risk of this happening, and what you may do after fixing the problem to avoid similar issues from happening in the future. DON’T do now what the article suggests, though, as that would make things worse in the current situation:
    Overstuffed mailbox is unexpectedly empty
    Ask for any clarifications or if you need further assistance.
    Note: For those not familiarized with the ~/ notation, it refers to the user’s home folder, i.e. ~/Library is the Library folder within the user’s home folder.

  • Deleted attachments are not removed from Content Server

    We have setup Content Server to store business documents and create attachments in documents in CO. Both types are stored ok and can be opened without any problems. After deleting them though, they disappear from the Attachment List but when looking in CS, attachments created on the document still exist in CS. Stored business documents on the other hand are removed properly.
    Looking at statistics in CSADMIN shows that the deletion of the created attachment does not increment the "delete" counter.
    Any ideas on why the created attachments are not removed from CS upon deletion?
    Thanks

    We have solved this issue now. By design, the attachments are not removed directly from the content server upon deletion; Instead you will need to run report RSBCS_REORG to completely remove them from the Content Server.
    Edited by: Christian Nordvaller on Jan 26, 2010 3:53 PM

  • Workitem is not removed from User Inbox

    Hi,
    There is requirement, when the PR is created by user, first it has to go his department Head and then to Manager, AGM, GM, etc. There are different departments.
    I'm maintaining organizational structure and giving positions in Release Strategy. Now how can i know who has created and to whom it has to go first. Shall i create different release strategy for that ?? Or is there any other way ??
    And i tried to create custom workflow and using two release steps instead of one. And giving Rule in my first release step. And in second release step i'm using the strategy. When i create the PR and release, it is not removing from User Inbox.
    Do anyone know what could be the problem ??

    Hi,
    From your requirement, its not a good idea to have all department heads assigned to a single position.
    But, you can have different positons for different departments and the association between department and the corresponding position number can be maintained in  ztable. Then have a custom rule based on function module which will make a call to this ztable and find the corresponding postion given the department of user, get this position out and use it as agent assignment in step. However to use above first you should be able to find the Deparment to which a given user belongs to.
    the position that you are talking about in your question, is it a position with relevance to HR structure or is it just that you have created for workflow purpose. In general its a good idea to have bit strong dependency with HR structure rather than going for workflow specific positions. If your position is a HR position then probably with bit of reengineering the HR organization structure with respect to your departments would be good and with a good design of org structure you can also get rid of any new custom table to maintain the relation between department and corresponding position.
    Good Luck !!
    Regards
    Krishna Mohan
    ooops !! many replies came in while drafting this mail itself, i guess rule using custom table already tried !!
    Edited by: Dubbaka Krishna Mohan on Jan 29, 2008 9:20 AM

Maybe you are looking for

  • Solaris 10 x86 infiniband support for connected mode?

    Anyone know when solaris 10 x86 is going to support connected mode infiniband? Large MTU size is what I'm looking for, 65520 as opposed to 2044. Running.... Solaris 10 10/08 s10x_u6wos_07b X86 X4600 with dual port pcie infiniband card. thanks. Edited

  • Good Receipt with Scheduling agreement

    Dear We are creating scheduling agreemant & delivery Schedule. Is there any posiblity to take good receipt with reference to SA perior to delivery date mentioned in the delivery schedule? Schedule line 26.06.2009 Good Receipt 25.06.09 Thanks, SAmir B

  • Currency format - $ replaced by strange character

    Sorry for the duplicate post. I had posted this earlier on the Java Programming forum, but I then I thought this would probably a more appropriate forum for this message. I have a web application in which I have HTML tables that show some amount valu

  • OSB Async Reponse

    Hi , We have a requirement where BPEL is Async Process .OSB calls async BPEL process which works fine for request line.Where as for response from the Async BPEL is not able to catch in OSB Proxy service. we went for Async BPEL since at first instant

  • Wily introscope 8.2.2 : unable to start due to JVM error

    Hi, I'm installing Wily introscope 8.2.2 for my Netweaver Solution Manager 7.01, on server Window 2008 x64. I followed installation guide and I encountered a first "license error" to start Enterprise Manager that I resolved by installing SAP Manageme