AQ message with delay problem!!

Hi,
I am having problem a problem with posting an AQ message to a queue using the AQMessageProperty.setDelay(val)
function. If val is 0, everything is fine, the message gets through. When the delay is > 0, it looks like oracle adds a number to the delay (currently amounting to 15-16 minutes). The amount added seems to increase over time.
I can see this in the AQ queue table: The message is inserted immediately, but the DATE in the columns DELAY, TIME_MANAGER_INFO, and ENQ_TIME all have a value 16 minutes after SYSDATE.
I have double-checked that the parameters passed in are correct.
Has anyone seen this problem, and found a solution to it?
Thanks in advance,
Trond Hvoslef

To follow up, here is some more info about the environment:
- AQ is accessed from Java
- Oracle version is 9.2.0.3
- Restarting the application does not help
- Dropping and recreating the queue tables does not help
- Restarting queue manager does not help
What does help is to restart the Oracle instance.
However I suppose the problem will appear again after running the instance for a few weeks.
As far as I can understand this must be a bug in Oracle.
I am interested to hear from other people using this feature.
Thanks,
Trond Hvoslef

Similar Messages

  • How to dequeue/delete/remove a message with delay?

    I've enqueued a message with dbms_aq.enqueue
    using
    l_message_properties.delay := 24*60*60*x
    where x is calculated so that the message should normally be dequeued on a given date, but not before next midnight. So that if nothing happens, the message can be consumed by another system in the right time. But now, when "something happens", i'd like to cancel the message, to delete it from the queue, as if it weren't there
    dbms_aq.dequeue(
    queue_name => 'MY_QUEUE',
    dequeue_options => dequeue_options,
    message_properties => message_properties,
    payload => my_queue_type_variable,
    msgid => right_msgid
    gives ORA-25228: timeout or end-of-fetch during message dequeue from MY_QUEUE, although documentation says delay is not considered when msgid is given.
    Is there a way to remove this message - should i update the delay date to null and try to dequeue the message? Or can i just delete from the queue table? Or is there a nicer way how things should be done?
    (soon going from 9.2.0.6 => 10.2.0.3)
    Thanks,
    Andres

    Hi Martien,
    thank you very much for your response.
    I am (very) new to AQ. And from your response it seems i have to get used to some new concepts. Can you please confirm.
    A service will be ended .. say 30. september. The decision is made today, on sept 18. I send it right away to AQ for other systems to be consumed, and put the delay date 01 october, so they will receive the message just in time. And ... everything is fine until some one changes its mind and decides (before 01 october) that "no, this service will not be ended". Now i need to cancel the message in AQ. So that the other systems will not be notified about the end of the service. And you say i can't. And, i can't set the expire date at enqueue time, because it is not known, whether the ending of the service will be cancelled or not ( and 99.9% it will not be cancelled, it is a very rare exception. But happens sometimes. Everybody makes mistakes).
    Now, do i have to make my own queue table, log all the ending services there, delete from that table when ending is cancelled and make a job frequently scanning that table to transport all ended dates to the original AQ for other systems to read and consume? Ok, i see, i can make this just another queue, but this one i'll consume myself, and the consuming from this queue means to check whether the actual end date on the service is in place, and when it is, put it to original queue, else just ignore. Right? I have to make two queues (on the same structure) to make this work?
    What does the "Only messages in the READY state are dequeued unless a msgid is specified." mean then (http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96587/qopface.htm#63943)? I do read it in the way that when a msgid is specified, i can dequeue a message even when it's not ready?
    Many thanks,
    Andres

  • Messages with aim problem

    Hi !
    So i have a problem with messages. I create a aim account and login it in messages. I call to my sister who have a same macbook that i i have she also use a aim. When i call to her she don't have a invite to video conference, audio conference etc. On my mac i only see that waiting for accept.  When she call to me i have the same problem,

    When i have a problem with icloud and messages i do these steps:
    If you're not signed in, sign in. If you are signed in, sign out and sign back in. If there's no change, continue as follows.
    Please read this whole message before doing anything.
    Back up all data.
    Quit Messages if it’s running.
    Step 1
    Hold down the option key and select
    Go ▹ Library
    from the Finder menu bar. Move the following items from the Library folder to the Trash (either may not exist):
    Caches/com.apple.Messages
    Caches/com.apple.imfoundation.IMRemoteURLConnectionAgent
    Leave the Library folder open. Log out and log back in. Try Messages again. If it works now, stop here. Close the Library folder.
    Step 2
    If you still have problems, quit Messages again. Go back to the Finder and move the following item from the open Library folder to the Desktop:
    Messages
    Note: you are not moving the Messages application. You’re moving a folder named “Messages.”
    Test. If Messages now works, delete the Messages folder on the Desktop. Otherwise, quit Messages again. Put back the folder you moved, overwriting the newer one that may have been created in its place, and continue.
    Step 3
    In the Preferences subfolder, there may be several files having names that begin with any of the following strings:
    com.apple.iChat
    com.apple.imdsmsrecordstore
    com.apple.imessage
    com.apple.imservice
    Move them all to the Desktop. There may also be a file with the name "com.apple.imagent.plist". Move that to the Trash.
    Also in the Preferences folder, there's a subfolder named "ByHost". Open it and do the same thing.
    Log out and log back in. Test again. This time Messages should perform normally, but your settings will be lost. You may be able to put back some of the files you moved to the Desktop in this step. Relaunch and test after each one. Eventually you should find one or more that causes Messages to malfunction. Delete those files and recreate whatever settings they contained.
    If the issue is still not resolved, quit Messages again and put all the items you moved to the Desktop back where they were. You don’t need to replace the items you moved to the Trash. Stop here and post again.
    If you later decide that you don’t like the results of steps 2 and 3, you can undo them completely by quitting Messages and restoring the items you deleted in those steps from your backup.
    I think taht i deleted some files in these folders. It is may be the cause ?

  • Messages appear with delay on console

              I send message and sometimes I can see it immediately on console, but sometimes
              with delay (5 min), any suggestion to this problem
              I have this code in session bean and I call one function.
              I dont have 'qsession.commit();' on the end of my code, may be it's the reason
              of my problem...
              this is part of my code:
              private QueueConnectionFactory qconFactory;
              private QueueConnection qcon;
              private QueueSession qsession;
              private QueueSender qsender;
              private Queue queue;
              private XMLMessage xmsg;
              InitialContext ctx = getInitialContext(URL);
              qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
              qcon = qconFactory.createQueueConnection();
              qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
              queue = (Queue) ctx.lookup(QUEUE);
              qsender = qsession.createSender(queue);
              xmsg = ((WLQueueSession)qsession).createXMLMessage();
              qcon.start();
              //this part is call few times
              xmsg.setText(message);
              qsender.send(xmsg);
              

              thanks for help
              the problem was: someone set another weblogic into database, both weblogic took
              messages from database and put to their own queues, and from relation of my client
              it looked like delay (really they stole themselves messages from database),
              but when I looked at it closer in weekend I noticed it.
              Sorry for confusion
              Tom Barnes <[email protected]> wrote:
              >Hi Greg,
              >
              >Since you are not using a "transacted" session
              >(the first parm to createQueueSession is false) there
              >is no need to call session.commit. For a discussion
              >of "transacted" vs "user transaction" vs "no-transaction"
              >see the JMS Performance Guide white-paper on dev2dev.bea.com.
              >
              >On to your problem.
              >
              >the administrator or the application code. Post your
              >config.xml plus the actual values of
              >"JMS_FACTORY" and "QUEUE", and I'll take a quick look.
              >
              >Do you know if you're using transactions?
              >Have you made sure that the session and sender are
              >not multi-threaded?
              >
              >Tom
              >
              >
              >Greg wrote:
              >
              >> I send message and sometimes I can see it immediately on console, but
              >sometimes
              >> with delay (5 min), any suggestion to this problem
              >>
              >> I have this code in session bean and I call one function.
              >> I dont have 'qsession.commit();' on the end of my code, may be it's
              >the reason
              >> of my problem...
              >>
              >> this is part of my code:
              >>
              >> private QueueConnectionFactory qconFactory;
              >> private QueueConnection qcon;
              >> private QueueSession qsession;
              >> private QueueSender qsender;
              >> private Queue queue;
              >> private XMLMessage xmsg;
              >>
              >> InitialContext ctx = getInitialContext(URL);
              >> qconFactory = (QueueConnectionFactory) ctx.lookup(JMS_FACTORY);
              >> qcon = qconFactory.createQueueConnection();
              >> qsession = qcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
              >> queue = (Queue) ctx.lookup(QUEUE);
              >> qsender = qsession.createSender(queue);
              >> xmsg = ((WLQueueSession)qsession).createXMLMessage();
              >> qcon.start();
              >>
              >> //this part is call few times
              >>
              >> xmsg.setText(message);
              >> qsender.send(xmsg);
              >>
              >>
              >>
              >
              

  • Delayed messages with New ISP

    I have an odd problem that so far Cisco has not been able to resolve.  We are in the process of migrating from AT&T fiber to Comcast Business Fiber.  All DNS records have been moved over. We currently have both links up. The ASA configuration is setup for tracking (redundancy). All of our outbound traffic is going through the Comcast link (default route) and most of our incoming traffic via DNS has been setup to the new external IP configured on the secondary up-link for Comcast.
    Here is the problem:  When I change our MX records from AT&T to Comcast; messages are delayed. Often times 5-10 times longer than using the AT&T link. On several occasions, the messages are delayed so much, that the sender server drops the connection.  We have a 15 minute timeout configured on the IronPort (ESA C170). but that is the same configuration used by AT&T. 
    At first, the thought was a config problem on our ASA (55xx series). However, after hours of support from the ASA team, it was determined not to be a problem with the ASA. Later as a confirmation, I changed the Comcast IP route to bypass the C170 and emails flow as expected (omit spam detection).
    The ESA simply listens to port 25 traffic, checks for spam and viruses and then pass that information to Exchange 2010.
    Been working with the ESA team for nearly 2 weeks and they cannot seem to find a problem. But again, if I bypass the ESA, there are no issues. The ASA has been configured so that SMTP traffic has priority and confirmed that Port 25 is open.
    What I have done currently is leave our production SMTP (MX) records pointing to our AT&T IP, and configured a temporary domain (xxxxxx.COM) to point to our Comcast IP. I configured both Exchange and the Ironport to accept messages from that domain. I have followed message tracking over and over again, tried and review packet captures and provide every possible log to Cisco.  What I am seeing is that the message(s) stop at the point where it is retrieving the message header.  For example, I have one message that the connection was accepted at 1333hours, it matched SBRS, was accepted via the TLS Protocol. The message connection continues and the last line before the delay is the incoming connection added the recipients email address. After that, there is nearly a 12 minutes delay until the next item which is the message ID header.  With my test domain, the message will eventually be received and forwarded on to our exchange server. The later steps taking just seconds. 
    If I used one of our production domains, messages are dropped. Those same messages, the message tracking does not record a subject line (by way of the message headers). 
    Can anyone shine a light on why this is occurring? I can provide any logs, captures or message tracking details you may need. I just need to get this resolved.
    Recap:
    Email sent from say Live.com (Microsoft Hotmail Servers) to our ATT IP through our ASA firewall then through the IronPort; that email arrives on time.
    Email sent with an attachment from Live.com (Microsoft Hotmail Servers) to our ATT IP through our ASA firewall then through the IronPort; that email arrives on time.
    Email sent from Live.com (Microsoft Hotmail Servers) to our Comcast IP  through our ASA firewall then through the IronPort; that email arrives on time.
    Email sent with an attachment from Live.com (Microsoft Hotmail Servers) to our Comcast IP  through our ASA firewall then through the IronPort; that email is delayed.
    Email sent with an attachment from Live.com (Microsoft Hotmail Servers) to our Comcast IP through our ASA firewall bypassing the IronPort; that email arrives on time.
    The tests messages with attachments vary from 1MB-3MB. The Max message size is 50MB. Our ATT connection is 15Mbps. Our Comcast connection is 50Mbs. Other than the ESA, there is no other gear between the ASA and our Exchange servers.
    Thank you,

    I did, that is what the guy at apple had me do, and also Its been well over 48 hours, thank you though.. any other suggestions..
    and ps the time on the phone was messed up again this morning

  • I have problem with delay in serial port

    I have problem with serial port. I have connected two computers by serial port and I need to create program in Labview for transfer strings using start bits and stop bits. My problem is that my program is working quite well ...when I press start bit it starts to concatenate strings and if i press stop bits it stops...this is the purpose of this program...but problem is that it working only with delay...and need that this program dont need delay, because it can only concatenating data depends on delay from start bit....I wana solved problem with delay...I dont want using delay process in my program, but allways when I try to delete this delay it stop works correct
    here is my program

    Ok this should be simple - if I understand you correctly.
    You have the VISA session initialized with read termination character enabled.  So reading the number of bytes at port is NOT the correct way to read from the port.  Set the read number of bytes to something large (say 4096) and the read will return as soon as a termination character is received (or timeout).
    You'll need to make sure the sending device is configured to send termination character on writes (you can set that with a VISA property node)  and that you are sending the correct termination character.  The default is 0x0A (newline).
    Jeff

  • I have a wireless network at home. I run my iphone and ipad on it with no problems. Just purchased a MacBook Pro, and now my wi-fi keeps disconnecting and i get an error message saying another device is using the same IP address. What does all this mean?

    I have a wireless network at home. I run my iphone and ipad on it with no problems. Just purchased a MacBook Pro, and now my wi-fi keeps disconnecting and i get an error message saying another device is using the same IP address. What does all this mean?

    Hello AKCamus
    To give you some ideas of what to do next, I have provided a few articles that will give some troubleshooting Wi-Fi connections and recommended Wi-Fi settings.
    iOS and OS X: Recommended settings for Wi-Fi routers and access points
    http://support.apple.com/kb/HT4199
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Troubleshooting Wi-Fi issues in OS X Lion and Mac OS X v10.6
    http://support.apple.com/kb/HT4628
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I have a new iPhone 6 plus and all is OK. But the mail shows more than 400 'unread' messages whereas there are none in the mailbox or trash or anywhere else I have looked. I can send and receive with no problem. I'm sure I have no unread messages.

    I have a new iPhone 6 plus and all is OK. But the mail shows more than 400 'unread' messages whereas there are none in the mailbox or trash or anywhere else I have looked. I can send and receive with no problem. I'm sure I have no unread messages.

        jsavage9621,
    It pains me to hear about your experience with the Home Phone Connect.  This device usually works seamlessly and is a great alternative to a landline phone.  It sounds like we've done our fair share of work on your account here.  I'm going to go ahead and send you a Private Message so that we can access your account and review any open tickets for you.  I look forward to speaking with you.
    TrevorC_VZW
    Follow us on Twitter @VZWSupport

  • Had 3G, moved to 3GS.  Backed up 3G and restored 3GS from backup with no problem.  When I want to add songs, I get itunes message that the new iphone is synced to another computer and now wants to erase everything.  How can I add music?

    Had 3G, moved to 3GS.  Backed up 3G and restored 3GS from backup with no problem on a Dell computer.  But now when I want to add songs, I get itunes message of death that the new iphone is synced to another computer and now wants to erase everything.  How can I add music without erasing everything on my new iphone?

    Yes, I was aware of this but the phrase "Any items imported from audio CDs or acquired from other sources will not copy from your device to the iTunes library." is what worries me.  Will this eliminate my Notes, Calendar Events, etc or will it apply mostly just to the music?

  • On closing Photoshop CC, I am getting an error message on screen that read's "Selective Palette error: no element found at line 1. Are you able to assist with this problem?

    Can anyone shed some light on this error message I am getting upon closing Photoshop CC
    I am getting an error message on screen that read's "Selective Palette error: no element found at line 1. Are you able to assist with this problem?

    Same issue here in WI and for me it was at 6:36p CST.
    I'm changed my password, removed iCloud from my phone ... tried 3G and WIFI with no luck. I also cannot check it on my Mac or iPad. I was able to get contacts and calenders back on my phone but no mail yet.
    Did the whole Apple support thing and apparently I'm part of the 1%
    EDIT: Question: are all of you former MobileMe users as well? Just wondering because I know there were going to be some changes as they completely move MobileMe over to iCloud and drop the "extra" services. I just can't remember if it was just a single cut off date or a series of dates. THAT email is stuck in my iCloud folders.

  • Problem connecting wirelessly from iMac to NETGEAR router, get invalid password message with WPA and WPA-2 encryption in place but if I remove them, so no security, can connect without a problem. Help!!

    Problem connecting wirelessly from iMac to NETGEAR router, get invalid password message with WPA and WPA-2 encryption in place but if I remove them, so no security, can connect without a problem. Help!!

    Thank you for your suggestion but I have already had a couple of phone sessions with NETGEAR support and they don't see any problems with the router settings etc. They referred me to Apple support, who helped me discover that it is possible to communicate with the router but only if I turn off the encryption/security software, which I don't want to do. The frustrating thing is that I can connect wirelessly from a laptop running Windows 7 and two Anroid smart phones, with WPA-2 in place, without a problem. Do you have any other ideas?

  • I want to go back to the previous 2014.2 version.  .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    2014 .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    You didn't mention what error(s) you've encountered? A workaround for the most commonly hit problem is here Re: error in Muse : Object UID:U6875 has two (or more) owners: U3633 and U3165
    If you have a copy of your .muse file that has not been saved using 2014.3, you can downgrade by uninstalling Muse and then choose Previous Version in the Filters drop down in the Apps panel of the Creative Cloud desktop app. There will be a popup next to Muse where you can select a prior version to install.

  • I have a Power Mac G4. I have previously burned DVDs with no problem.  Now I get an error message stating it doesn't recognize the disc and an error

    I have a Power Mac G4 with OX 10.4.11.  I have previously burned DVDs with no problem.  Now I've gotten two different sets of messages.  One states that
    the disc is not readable and an error code: 0x8002006D.  The more recent message states the disc is incompatible and an error code: 0x80020025.
    What is going on?  I need to burn discs immediately for a conference next week.

    "The more recent message states the disc is incompatible and an error code: 0x80020025."
    The error (0x80020025) refers to an unsupported drive (not disk).  I've read about relaunching the Finder to correct the problem.  Choose "Force Quit" from the Apple Menu and then choose "Finder." Click "Relaunch" and see if the drive still produces the error.  If there's no change, I'd be tempted to replace the drive.

  • Got a new iPhone today and tried to restore from my old phone using icloud but kept coming up with a message that said problem with my icloud back up please help

    Got a new iPhone today and tried to restore from my old phone using icloud but kept coming up with a message that said problem with my icloud back up please help

    Hi there Clairemcaula,
    You may find the troubleshooting steps in the article below helpful.
    iCloud: Troubleshooting restoring an iCloud backup
    http://support.apple.com/kb/ts4036
    -Griff W. 

  • When I try to send an email I get the message rejected by the server because it does not allow relaying.  I have sent mails for months with no problems. Can anyone help

    When I try to send an email I get the message rejected by the server because it does not allow relaying.  I have sent mails for months with no problems but has started to be recoccuring. Can anyone help please as its pointless having email on my phone otherwise :-(  as i have to wait till i log on at home to respond.
    thanks
    Alison

    https://discussions.apple.com/message/16832350#16832350  follow the link user was having same problem.  Solution was given.

Maybe you are looking for

  • Adding a new choice to a checkbox field in a web app - options renumbered

    Hi all, I have been working on a web app today. (for a change...lol!) I had to add another option to a custom checkbox field in the webapp and I noticed the following: New options in a checkbox field need to be added to the end of the checkbox list,

  • OSB-Weblogic server crashes while starting

    Hi, I am not able to start the weblogic server as it is getting crashed at the time of starting only and i am not able to know the reason also. The command prompt closes and i am not able to check the log as well.(where to check the log??) Nothing is

  • Very dark image on external big screen

    Hi. I've got my 15"MBP attached to a Samsung 40" via miniDV out to VGA. Picture on the big screen is a lot darker than the Computer screen. Settings on the TV don't improve it. Also pretty dim when going through data projectors as well all on VGA. An

  • EMG based DC motor control using labview

    I have a project where i need to use my EMG data to control DC motor using labview.I've already got the EMG signal by using ADinstrument and import the signal to labview. The problem is i don't know how to connect the signal with DC motor. This motor

  • Errors while activating Integration Process in Stack 14

    Hi We recently applied the Stack 14 of XI 3.0 on our development server which was on Stack 11 earlier. After applying the above stack we discovered that when we are trying to activate integration process we are getting the following errors: 'Exceptio