Message in WAIT state after DELAY_TIMESTAMP is in the past

The queue's view DELAY_TIMESTAMP column appears to have the correct time, but when compared to SYSTIMESTAMP, there's an unexpected five hour difference. After the message should have gone to the READY state, it is still in the WAIT state.
For example, a message is enqueued using DBMS_AQ.ENQUEUE with delay of 60 seconds. I wait till well after the message should be dequeued. The message is still in the queue despite attempting to dequeue it with DBMS_AQ.DEQUEUE. Here is what the query looks like.
select delay_timestamp, systimestamp , delay_timestamp - systimestamp
from AQ$THE_QUEUE;
DELAY_TIMESTAMP = 7/1/2009 8:23:05.769546 PM
SYSTIMESTAMP = 7/1/2009 9:06:23.944861 PM +00:00
DELAY_TIMESTAMP-SYSTIMESTAMP +00 04:16:41.824685
The difference should be negative because the time should have expired. However, it's positive, 5 hours less the time since it was enqueued.
This code worked fine until it was re-installed as part of dropping and creating the Oracle user. It works fine on Oracle XE and other Oracle EE databases. The problem is consistent with some change having been done either in Oracle or the Unix operating system. I don't have control over those systems and the administrator says nothing changed. Oracle has been stopped and started since the problem was noticed. The queue table was then dropped and recreated.
Do you have any idea as to what could cause the difference? It looks like a difference between GMT and CDT time zones. It may be related to the session time zone, but when I set my session time zone to +00:00 to match the server, it becomes a one-hour difference instead of a five-hour difference.
It is Oracle 10g 10.2.0.4.0.
Thank you...

Thanks for the reply.
Yes, the five hour difference seems too coincidental. An offset in seconds is supplied to ENQUEUE, not a date, but I suppose AQ could calculate a due date based on the session timezone, but why? I'd think session time zone would be for display purposes. The fact that it's behavior changed without changes to the client environments (both JCBC java clients and PL/SQL clients on different machines) with identical PL/SQL code suggests AQ is responding to some kind of server parameter, either Oracle or Unix. I just don't know what.

Similar Messages

  • Pending message redelivery wait period after server startup

    Hi, I have seen an strange behaviour in the way pending JMS messages are
              redelivered to MDBs at server startup.
              In my unit test I have seen that, killing Weblogic during an MDB code
              execution as expected makes the container to redelivery unconfirmed message
              at server startup. I have also seen that it's redelivered about 4 minutes
              after server is started (more info of this in thread: "Problem with
              persistent messages and MDBs" 25 October 2002)
              After a recent crash we have had on the system in wich there were a lot of
              messages pending to deliver to an MDB we saw that they were being
              redelivered just after the MDBs were deployed while system was starting. Of
              course due to the fact that some components needed by the MDB were not
              deployed by that time, a lot of exceptions were raised making messages to be
              queued again and promptly delivered wich caused more exceptions. Just a big
              mess!
              I'm tring to figure a good work-around about this, what I wanted to know is
              how is implemented the "delay" to send messages after server startup. Is it
              done by comparing timestamp of message (when did it enter the queue and
              thereby persisted on the store) with current system time?. That approach of
              course will fail if any of the messages were sent before that "delay" time.
              If this is the case and there isn't a fix for it this is what I have in
              mind:
              Each MDB will have a private attribute wich will be used to detect when
              system has completely started. By default it will be false and after a
              message is sent to the MDB the first line of the onMessage method will test
              wether system has started or not (by checking weblogic connection port i.e.
              7001. Btw. is there any better way of checking server has finished start-up)
              if not, a runtime exception will be launched that will force message to be
              redelivered (without trying to execute any MDB code), I think setting a
              proper redelivery delay i.e. 30-60 secs. will allow server to startup with
              less problems (in the situation I described above JVM crashed with an 11
              system signal)
              Any other ideas to deal with this?
              Thanks in advance.
              Regards.
              Ignacio.
              

    Hi Ignacio,
              I think you can usually control the order in which ejb's are booted,
              through a combination of console settings and
              meta file entries. I suggest posting to the ejb newsgroup
              to find out how.
              The four minute delay you see is normal for resolving
              interrupted transactions, but I believe that an enhancement
              was put into a 7.0 SP to reduce or eliminate this interval,
              and that 8.1 has no interval. Post to the transaction
              newsgroup for more info, or contact customer support.
              Given that you referenced earlier posts on this issue, you
              probably already know how to tune the interval down to one
              minute even without the enhancements.
              There is no other delay for sending messages at system startup,
              as soon as the MDB is booted it attaches to JMS, and JMS
              starts delivering messages whose transactional state is known.
              Tom
              P.S. I suppose one way to detect end-of-boot is to
              place a startup class last in the boot order.
              P.P.S. For MDBs one alternative is to code a "sleep" in the onMessage if
              an unavailable resource is detected - this
              is hokey, but works as long as you have made sure that
              max-beans-in-free-pool totals do not come near or exceed
              available thread pool size.
              Ignacio G. Dupont wrote:
              > Hi, I have seen an strange behaviour in the way pending JMS messages are
              > redelivered to MDBs at server startup.
              >
              > In my unit test I have seen that, killing Weblogic during an MDB code
              > execution as expected makes the container to redelivery unconfirmed message
              > at server startup. I have also seen that it's redelivered about 4 minutes
              > after server is started (more info of this in thread: "Problem with
              > persistent messages and MDBs" 25 October 2002)
              >
              > After a recent crash we have had on the system in wich there were a lot of
              > messages pending to deliver to an MDB we saw that they were being
              > redelivered just after the MDBs were deployed while system was starting. Of
              > course due to the fact that some components needed by the MDB were not
              > deployed by that time, a lot of exceptions were raised making messages to be
              > queued again and promptly delivered wich caused more exceptions. Just a big
              > mess!
              >
              > I'm tring to figure a good work-around about this, what I wanted to know is
              > how is implemented the "delay" to send messages after server startup. Is it
              > done by comparing timestamp of message (when did it enter the queue and
              > thereby persisted on the store) with current system time?. That approach of
              > course will fail if any of the messages were sent before that "delay" time.
              >
              > If this is the case and there isn't a fix for it this is what I have in
              > mind:
              >
              > Each MDB will have a private attribute wich will be used to detect when
              > system has completely started. By default it will be false and after a
              > message is sent to the MDB the first line of the onMessage method will test
              > wether system has started or not (by checking weblogic connection port i.e.
              > 7001. Btw. is there any better way of checking server has finished start-up)
              > if not, a runtime exception will be launched that will force message to be
              > redelivered (without trying to execute any MDB code), I think setting a
              > proper redelivery delay i.e. 30-60 secs. will allow server to startup with
              > less problems (in the situation I described above JVM crashed with an 11
              > system signal)
              >
              > Any other ideas to deal with this?
              >
              > Thanks in advance.
              >
              > Regards.
              >
              > Ignacio.
              >
              >
              

  • Depends On Resource stay in Waiting state after reconciliation

    Hi,
    I've come up with the following issue (which i though was handled ootb).
    I have resource A which depends on resource B.
    On user creation 1 access policy trigger provisioning of resource A. At the end of the creation, resource A is in waiting state.
    Then we reconcile resource B account which appear in provisioned/enabled state in OIM. But resource A stay in waiting state.
    If i revoke and re assign resource A access policy role, provisioning is fired.
    Is there a way to have reconciliated resource fire provisioning for dependent resource ?
    We are running on OIM11gR1 BP05.
    Ps : i've found this topic about the subject but it's on an older version of OIM. I haven't been able to found anything relevant in patch notes
    OIM - Issue with "Depends On" Objects
    Thanks in advance!

    Got some responses from oracle support on this issue.
    They said that it was working as intended. Anyone already faced similar issues ? What step have you implemented to make it works?
    Thanks!

  • IBooks sit in "waiting" state after sync

    I have synced my device with my computer and all of my iBooks sit in a "waiting" state and will not sync with my computer.
    I have restored the iPad to factory defaults, reloaded and still the same issue.
    I am signed in with the same account that has the iBooks.
    any ideas why?     

    OK. You said that you synced the books - or at least that's what I took from your post. Did you download these to the iPad?
    Really the more information that you post, the easier it might be to suggest some things but for now you can try these basic boilerplate things that I suggest. It now sounds like you were downloading theses books and something went wrong, but I'm still assuming here,
    Swipe across the progress bar and see if you can bring up the delete button. If you can, delete the book and download it again. You will not be charged again as long as you use the same ID that you bought it with.
    Make sure that you do not have a stalled download in iTunes - a song or podcast .... if you have a download in there that did not finish, complete that one first. Only one thing can download at a time on the iPad so that could be what is causing the problem.
    If that doesn't work - sign out of your account, restart the iPad and then sign in again.
    Settings>Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>Store>Sign in and then try to download them again or see if the downloads will resume.

  • Applications in waiting state after iOS 5 update

    At least 10 of my applications are sitting there saying 'Waiting'. I have done the complete upgrade process, waited for it to update apps etc. I have even run the updates from the AppStore on the phone.
    Can anyone advise on what to do - I can't use these apps because they are non responsive whilst in the 'Waiting' state.

    Mine did that as well, so I finally unplugged from computer. Then plugged back in and iTunes said it had discovered an iPhone in recovery mode did I want to restore from backup. I of course chose yes and it restored then updated right to iOS5. Hope it works for you like it did me.

  • Wait statement...

    Hi,
    WAIT UP TO 10 SECONDS. is used in one of the program.
    as suggested by SAP we should not use the WAIT statement.
    what is the replacement statement for the WAIT statement. 
    I understood from the documentation of the program, that statement is using because he is creating and updating the same material using bdc.
    that statement accours after creation of material and before the updation of material.
    give me the correct replacement statement for  WAIT UP TO 1 SECONDS.
    regards,
    sunny

    >
    sunny_143 wrote:
    >  he is creating and updating the same material using bdc.
    >
    > that statement accours after creation of material and before the updation of material.
    if he is updating or creating a material... you check if the change has reflected in the DB table using:  select single matnr from mara where matnr = itab_data-matnr. if sy-subrc eq 0.. then proceeed furture.. use this in a DO ENDDO.. so exit once the sy-subrc from the select is 0.
    DO.
    select single matnr from mara where matnr = itab_data-matnr.
    if sy-subrc eq 0. " this would be 0 only if the update has occured..
    exit.
    endif.
    enddo.

  • Each time I have a message ''please wait while windows configures iTunes''.

    when i start my itunes each time i have a message ''please wait while windows configures iTunes''. i recently Upgrad to 9.0.2. i already uninstall and install.
    pls help me.
    thank you in advance .

    when i start my itunes each time i have a message ''please wait while windows configures iTunes''.
    The iTunes desktop shortcut is an "advertised shortcut". When you click it, the first thing it does is check the iTunes.msi and determines (against the installation database in there) whether or not there's any files and registry entries and whatnot for iTunes missing on your PC. If it finds something missing, it'll do a repair install of iTunes, which is the "configures" message you're seeing.
    As to why it's always doing it in your case, and fixing it ... we'd better first work out if there's real damage to the iTunes stuff on the PC or if the shortcut/itunes.msi/registry machinery is just a bit confused.
    Apart from the "configures" message you're getting every time you launch iTunes, is it working okay? Are you able to sync, play music, use the Store and so forth without any trouble? Or are you getting other problems as well?

  • TS4268 I upgraded from the 4s to the 5s on Tuesday and requested my O2 number be carried over to my new EE contract. Everything has been carried over fine but i have been unable to switch on Imessage and Facetime, Error message shows 'Waiting for Activati

    I upgraded from the 4s to the 5s on Tuesday and requested my O2 number be carried over to my new EE contract. Everything has been carried over fine but i have been unable to switch on Imessage and Facetime, Error message shows 'Waiting for Activation' I've done the the resets and followed the instructions from the Apple Help page but still can't get it to switch on??

    If you say you have done everything in this article: http://support.apple.com/kb/ts4268, then you should probably contact your carrier for their advice.

  • I have updated iOS 6 in my iPhone 4S and it went perfectly fine. Just after that when I opened the message app I found that the sms body of system generated messages was not visible after tapping on them.

    I have updated iOS 6 in my iPhone 4S and it went perfectly fine. Just after that when I opened the message app I found that the sms body of system generated messages was not visible after tapping on them.

    The terms of service of the Apple Support Communities prevent us from helping anyone with a jailbroken phone.
    You're on your own.  Good luck.

  • Show alert after data display from the form

    After query, if date of birth is NULL then display message, but this message must pop up after data displays on the form.
    I try different post triggers, when-new-item-instance, when-validiate-item trigges, they all display message BEFORE the data. Any suggestion?
    Thanks

    hi kathy,
    What you have to do is after the commands to display the data, you give the builtin SYNCHRONIZE; then give message statement. It should work.
    Murthy

  • Error: "Variable State has been used outside the reusable components"

    When I open a query in the ad hoc query designer I get several error messages like "Variable State has been used outside the reusable components."  I don't what this means or how to fix it.
    "State" is one of the variables used.  And there is a error for every variable that is used.
    All the variables are in the free characteristics.
    When I open the query in Query Designer, it is ok.
    Any ideas?

    Hi Fong,
    PLease check the following link:
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/03223c5f00612be10000000a11402f/content.htm
    It states that:
    You cannot integrate variables into the query directly.
    However, you can use variables in reusable structures, or restricted or calculate key figures, which are used in the Ad-hoc Query Designer
    Hope this helps...

  • All of a sudden my login password won't be accepted can any one help but the weird part is after a few min the computer just turns its self on

    All of a sudden my login password won't be accepted can any one help but the weird part is after a few min the computer just turns its self on

    This happened to me, too. I couldn't log in to ANY accounts on the machine. Restarted, failure again, restarted again.
    Solution:  Wait.
    After restarting I let the machine sit for a minute. Then it worked!
    I ran Onyx and repaired permissions. Big mistake, apparently. Now  I have to type my admin password everytime I want to move or save. All my Office docs open as Read-Only.

  • File-File: Message are in Waiting state in Integration Engine

    Hi,
    I am trying to execute File-File integration scenario and the message is in Waiting state in Integration Engine.
    I am getting the following error in sxmb_moni:
    <b><SAP:Code area="MAPPING">JCO_SYSTEM_FAILURE</SAP:Code>
      <SAP:P1>Server repository could not create function template for 'SMPP_CALL_JAVA_RUNTIME</SAP:P1></b>
    I am getting the following error in the Visual Admin Trace:
    <b>com.sap.mw.jco.JCO$Exception: (123) JCO_ERROR_FUNCTION_NOT_FOUND: Server repository could not create function template for 'SMPP_CALL_JAVA_RUNTIME3' caused by: com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: User SAPJSF has no RFC authorization for function group SYST .</b>
    Can any one tell me how to provide RFC authorization to SAPJSF user.
    Thanks in advance,
    Nagarjuna

    hi,
    that is the reason for your problem
    The user entered for LOGON in that does not have the requisite privileges.
    Would sugget you contact your basis team and ask them to make the connection going. Then, this problem will be resolved.
    To add more, SLDAPI and the rest are used for the connection between your ABAP and JAVA Stack. As, your mapping gets executed in the JAVA stack, during the execution, as this connection failed, so did your process.
    Get this onnection up and reunning and it willsolve this issue.
    Regards,
    Bhavesh

  • HT1386 I HAVE A PROBLEM WHEN SYNC CONTACTS IN MY COMPUTER TO IPHONE 4S after update to iOS6. The message are " waiting for change to be applied".

    I HAVE A PROBLEM WHEN SYNC CONTACTS IN MY COMPUTER TO IPHONE 4S after update to iOS6. The message are " waiting for change to be applied".
    PLAESE advise how to solve this problem.

    Hi applerinneedforhelp,
    Thanks for visiting Apple Support Communities.
    If iTunes is asking you to authorize the computer, and you've already done so, the troubleshooting steps in this article can help:
    iTunes repeatedly prompts to authorize computer to play iTunes Store purchases
    http://support.apple.com/kb/ts1389
    Regards,
    Jeremy

  • After trying to update iBook application stays in waiting state

    After Update iBook app, stays in waiting state . Will not open or able to delete.

    Try this first ...tap the "waiting" icon and see if you can pause it. If it does pause, then tap it again and see if it will resume. If that works, repeat the same steps for each "waiting" icon.
    If that didn't work, try this ....Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

Maybe you are looking for

  • How to install the jar files for the cf extensions

    Hi, In adobe labs I saw some extensions you can download for cf/flex. They seem to be a bunch of jar files and a plugins directory. How do I use these. I did not see any documentation? Where do these files go? I think a web-inf dir or something like

  • Why is "Apply to enclosed items" grayed out?

    There is an archived thread on this issue but with no resolution. When I want to change permissions on the contents of a folder, very often the "Apply to enclosed items" button (in the Get Info Permissions panel) is grayed out. Why? What's the fix? I

  • ConvertToClob and byte order mark for UTF-8

    We are converting a blob to a clob. The blob contains the utf-8 byte representation (including the 3-byte byte order mark) of an xml-document. The clob is then passed as parameter to xmlparser.parseClob. This works when the database character set is

  • How do i change the langue on iTunes with being in it ?

    My itunes on my lapton (dell) is saying it will not open beacuse "this version of itunes is not been corectly localized for this langue. please run the english version" how do i do this ?????

  • Swing layout

    in AWT, the layout was control by the GridBag Layout and constraints, how can i control the layout of the button in swing to the layout that i want it to be?