DEQUEUE with FOREVER wait time hangs Oracle when there is no entry to be dequeued

I am using a multiconsumer queue and whenever I try to get the next message from the queue with the FOREVER wait time or a wait time greater than 0 and there is not entry in the queue to be dequeued, Oracle seems to hang for a couple of seconds. This time can go from 2 seconds and more than 30 seconds.
During that hang time, I cannot even create a new connection to Oracle, run a query in another session. Everything seems to be hanging. At the same time the machine is mostly idle during that time.
This hang time comes and goes until a message is available to be dequeued or the dequeue call returns when its wait time has elapsed.
Here is the code I use to dequeue the next message with wait time FOREVER from the default.
=============================================
DECLARE
msg_queue_msgid msg_queue_tab.msgid%TYPE;
q_opts DBMS_AQ.dequeue_options_t;
msg_opts DBMS_AQ.message_properties_t;
data msg_queue_t;
BEGIN
q_opts.consumer_name := 'ROUTER';
DBMS_AQ.DEQUEUE (queue_name => 'msg_queue',
dequeue_options => q_opts, message_properties => msg_opts,
payload => data,
msgid => msg_queue_msgid);
END;
=============================================
Is this related to Oracle configuration or anything special has to be done to use AQ?
null

In which mode your database server is running? Probably if its in dedicated mode it will hang u can check it by changing the database mode.
null

Similar Messages

  • Firefox keeps freezing and using 50% cpu and memory usage shoots up most of the time it's when there's an auto update of anything addon, plugin or ff!

    Firefox keeps freezing and using 50% cpu and memory usage shoots up real fast and carries on going till it uses up all there is left. Most of the time it's when there's an auto update of anything addon, plugin or ff but not just neccessarily then! I find out it's happened when there's been an update after i restart and an extra webpage comes up with the particular addon/plugin/ff update. I have to restart most of time because nothing sorts it out. I'm using windows xp with the latest update of ff 13.0.1 it's not this version because it's been happening for a while. And it never started when i added a particular addon or plugin or when i added a new app to my pc either. Any idea as to what this may be or how i'd sort it out?
    Cheers

    Maybe disable hardware acceleration? This article should help: https://support.mozilla.org/en-US/kb/firefox-uses-too-much-memory-ram

  • Response time too slow when there is competition in the same connector PCo

    Dear all, I'm having a problem with using PCo 2.1.
    I created all the conections in PCo with OSIsoft PI and when I create a TagQuery
    on MII to get the values of a tag is not occur problem in response time.
    But when I have another TagQuery or Transaction, which is collecting data at the same
    time, sharing the same connector, the time response is very slow.
    Using the UDS this problem does not happen.
    So problem is that when there is competition in the same connector, the response time is extremely slow.
    Has anyone experienced this?
    Regards!

    Hi Udayan,
    Thanks again for attention,
    I found this problem on the two MII versions, 12.0 and 12.1.
    The UDS and PCo are on different servers and using different ports too.
    I didn't find errors on netweaver about this, but I'll verify one more time.
    On true, on version 12.0 of MII there is two connections with PI, one PCo and another UDS, that are using the same port. But this does not happen on the MII version 12.1, there I'm using different ports.
    Thank you very much!

  • Why do SQL sample programs work when there is no entry for the data sources in the ODBC Data Source Administrator that are used by the sample program?

    Hi,
    I am trying to understand how to access an SQL database from CVI.  
    I don't understand how the sample programs shipped with the toolkit can access the database they use if it is not listed in the ODBC Data Source Administrator.
    In the code, I see the line:
    hdbc = DBConnect ("DSN=CVI SQL Samples");
    However, there is not an entry that I can find in the ODBC Administrator for "CVI SQL Samples."
    The SQL help suggests there should be a User DSN named, "CVI32_Samples", but I don't see that entry in the ODBC Administrator on my win-7 system.
    I believe the sample program is accessing a database file named, "C:\Users\Public\Documents\National Instruments\CVI\Samples\sql\samples.mdb".
    Exactly how is the call to DBConnect() translated to the file, "samples.MDB", if there is no entry in the ODBC Administrator?
    Regards,
    Mark 

    I figured it out.  There is a 32 bit ODBC administrator and a 64 bit ODBC administrator.  The ODBC administrator I run through the control panel is the 64 bit ODBC administrator. To access the 32 bit administrator I need to run, "C:\Windows\SysWOW64\odbcad32.exe".
    I am running the samples in 32 bit mode, so I need to use the 32 bit ODBC administrator.
    Best,
    Mark

  • How can I uninstall the CS6 beta when there is no entry in W7 Programs & Features?

    I checked the FAQs and found general instructions which presume there is an entry in W7 Programs & Features.  There is no entry in my system, and I found no Uninstall app in any Adobe CS6 folder.
    Should I just run the Cleanup tool?  Thanks...

    Instructions are prominntly displayed in the announcement at the top of the forum index page:
    Announcement: How to uninstall Photoshop CS6 beta prior to installing the final version.
    Show Details
    Hide Details
    Instructions for How to uninstall Photoshop CS6 beta prior to installing the final version:
    http://forums.adobe.com/message/4361731#4361731
    Important: Do not attempt to manually uninstall or remove Photoshop CS6 beta by dragging folders to the Recycle Bin (Windows) or Trash (Mac OS). Doing so can cause problems with uninstallation, and installation in the future.
    With the Photoshop CS6 beta coming to a close and the 60 day trial period expiring, you'll be looking to uninstall the beta software from your system.
    It is recommended that you uninstall the Photoshop CS6 beta prior to installing the official release of Photoshop CS6.
    Uninstallation is easy, and can be done in just a couple steps depending on your Operating System.
    by Jeffrey Tranberry (May 6, 2012)                          

  • Why does face time hang up when i try to answer a call?

    When someone calls, It is my face on the screen. I hear the ring and I have a choice to either click the "decline" button or the "accept" button. I click accept. There is a two second pause, then three tones in a row (not the same tone as the phone ring tone) and the two buttons disappear. I never see the other person's face and it reverts to what the screen looked like before the call came in. I have previsouly had chats with this same person on face time so I can't figure out what is wrong. Thanks, David

    Hello David,
    The article linked below provides some useful troubleshooting steps that can help stabilize FaceTime on your Mac.
    FaceTime for Mac: Troubleshooting FaceTime
    http://support.apple.com/kb/TS4185
    Cheers,
    Allen

  • Why won't a 2.99gb .mp4 movie sync with my 7th gen iPod Nano when there is 4.13 gb free?

    Please help! Thanks!

    If it's that big of a file, it is probably "HD."  That is too high a resolution for the screen on the iPod nano, so iTunes will not sync it.  The "SD" version of the movie should work.
    FYI - The specs
    http://www.apple.com/ipod-nano/specs.html
    say the max resolution for the 7th gen nano is 720 x 576.  You can see what the resolution of the video is by doing a Get Info on the video in iTunes.

  • Can we create two "TS17900100" tasks in one WF to update IT with Wait time

    Hello Folks ,
                  I have scenario in which I have to update two infotypes but with some wait time .  I have created to form scenarios and attached those scenarios in my WF  binding one by one .
    I have two WF TS17900100 task * first one has scenario update_1  and has wait time and also has approval in between .
    For my other WF TS17900100 task  , I have scenario update_2  as well as approval .
    What is the issue .
    It is update Infotype but creating 2 records because of the reason I am executing u201CTS17900100u201D task twice. But my question is it has the different form scenario inside  with different set of fields which I selected back in u201CDesign time u201C .
    Any idea how to get  rid of double entries .  Note: per my requirement I need a wait time in between  process .
    Thanks.
    Khan

    I am doing it already !!
    Thanks .
    Khan
    Check out http://www.aspirehr.com/dynamicforms/

  • Courtesy Callback & Reporting Impacts on Wait Time/Average Speed of Answer

    Hello,
    With CVP Courtesy callback, if a caller selects to be called back and then hangs up, will that period of time be also considered in the Skill Group's wait times and average speed of answer?  Or is wait time only considered when the caller is physically waiting on the phone?
    Thanks,
    Mike

    Mike,
    The caller is still considered "queued" for the duration. The CVP app that does the callback is run as a non-interruptable script, and keeps the ICM call active until the decision is made to call back the caller. ICM does not see this as any different from a regular queued call.
    -Jameson

  • Is there a way to set up a 'dial string' with a 'wait' function?

    I'm trying to set up calling my work voicemail. On the blackberry i could set up a dial string with a wait function. So when i dialed the voicemail #, once it answered I could hit a button on the phone and it would send the next set of characters (in this case, my extension #), then wait again, and once I got my password prompt, i could again send the next characters (now my password). I can find the way to put in a pause...but it isn't enough and doesn't do what i want it to do. How can i do this on my iPhone?
    It really is important in that i don't want to have to enter these characters while i'm driving.

    Thanks for the reply....i've tried that and it's not doing what i want it to. Our VM sometimes has delays, so its impossible to predict home many pauses i need....really need a wait function.
    Thanks

  • How to create an infocube with a different time reference characteristics

    I need to create a similiar cube with a different time characteristic.
    When I copy from inventory cube, the time reference characteristic is 0CALDAY. I tried to change it but not possible,
    How then can I create a similiar cube with 0CALMONTH as the reference time characteristics?
    Thanks
    bye

    Hi Colin,
    If you want your time reference characteristic to be 0CALMONTH, then you must ensure that all other time characteristics in the cube can be derived from this characteristic. the infocube by default chooses the most refined time charactersistics as its time reference characteristic.
    That is in the cube you could then have characteristics lik 0CALQUARTER, 0CALYEAR...You cannot have 0CALWEEK or 0CALDAY since these cannot be defined from a value in 0CALMONTH.
    Please check below the SAP help for your reference.
    http://help.sap.com/saphelp_nw70/helpdata/EN/80/1a62ebe07211d2acb80000e829fbfe/frameset.htm
    Hope it helps,
    Best regards,
    Sunmit.

  • High roll wait time

    For my below crm transaction for a perticular user the response time is ~18000 ms out of which 15130 is roll time. Memory used is 16 MB.
    "BSPWDWCC_SLS_HOME  SAPMHTTP  /sap/bc/bsp/sap/CRM_UI_PORTAL/B"
    Roll time
    Out                 5  ms
    In                  5  ms
    Wait           15,130  ms
    Where is causing this roll wait ? What memory is not sufficient ? What to look at ?
    In st02
    roll buffer max used is 25% ,
    page buffer max used is 10%.
    EM max used 50%.
    No swaps for above.
    My user memory settings are as below:
    ztta/roll_area                              9000000
    ztta/roll_first                             1
    ztta/roll_extension                         4000000000
    thank you
    Laxmi

    Thank you Shyam,Krishna.
    I checked another similar instance again today with high wait time.  Most of the time was wait time. There were NO RFC RECORD. just http record with most of it being on the server (Remote exec. time ~ 16 534 ms).
    Now i assume calling time = gate way time + remote exec time. So as most of it was on the server I can rule out network.
    I checked st03 and rfc times were really small. Also we have plenty of wps .. ~ 90. So not sure why still the high wait time. Also stad does not give any RFC record. If this was rfc will it now show up ?
    I have given below the details. Am I missing some thing ?
    Response time           16,546 ms
    Wait for work process          5 ms
    Processing time            1,155 ms
    Load time                     28 ms
    Generating time                0 ms
    Roll (in+wait) time       15,016 ms
    Database request time        341 ms
    Enqueue time                   0 ms
    Roll time   Out                 5  ms
                 In                  3  ms
                 Wait           15,013  ms
    NO RFC SUB RECORD
    HTTP Records
    as Server
    Number      Connections                            1
                       Destinations                           1
                       Calls                                       1
    Time     Calling                            16,540   ms
                Remote execution          16,534   ms
                Idle                                 219   ms
    HTTP Server connection record
    Connection-Id          4B7CAADEF5DA00A7E10080000A68F456
    Communication step     Send/Receive
    Timestamp              20100218 155216 EST
    Host                   sappc003
    Port                   8031
    Path                   /sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do
    Status phrase          OK
    Status code              200
    Protocol               HTTP
    Method                 GET

  • I am no longer able to use a keyboard shortcut to close a window when there is only one window open.

    I can use Command+W when there are multiple tabs open to close one window at a time, but not when there is only one window remaining. It's driving me crazy because I have to click on the red dot. It won't close with File > Close either. Nothing changed (that I know of) from last week to this that would cause this. It works fine in safe mode but I can't figure out what's conflicting. Also, I've tried reinstalling Firefox but that did nothing. Help?

    Problem solved! It's the Evernote add-on. They updated something on November 6. I've disabled it until that quirk is fixed. Thanks.

  • Adobe form -Non Interactive - Line across when we have any entry

    Hi,
    In my line items I need a horizontal line separtor based on a field.
    I mean when there is an entry(ITEM A) I need it to be underlined alll through the form horizontally or a horizaontal separator line.
    I have follwoing output
    ITEM A         10.00        20.00
                        40.00        60.00
                        65.00        80.00
    ITEM B         30.00        40.00
                        70.00        45.00
                        23.00        22.00
    ITEM C         32.00        20.00
                        221.00      60.00
                        65.00        80.00
    I need output
    ITEM A         10.00        20.00
                        40.00        60.00
                        65.00        80.00
    ITEM B         30.00        40.00
                        70.00        45.00
                        23.00        22.00
    ITEM C         32.00        20.00
                        221.00      60.00
                        65.00        80.00
    I am expecting we should do this via javascript.
    Any ideas?
    Rgds
    Vara
    Edited by: Vara K on Apr 20, 2009 4:57 PM
    Edited by: Vara K on Apr 20, 2009 5:11 PM

    Petr,
    I am following you now.
    I have created a group section with both rows.I went into edit alternatives .
    Now I have 2 rows with DATA(0)  and DATA(1).
    Basically I have to use underlined DATA(0) one  when field has no value
    and other DATA(0) when field has value.
    So basically my pop -up box has javascript
    Name: DATA[0]      Binding : DATA
    Expression:
    PHCODE.value == ""
    Name: DATA[1]      Binding : DATA
    Expression:
    PHCODE.value != ""
    Do i need to write something else in expression for this?
    Although I don't have value for that rows Now I am getting bottom lines for every row.
    If i use null like below I am only getting rows with bottom lines and remaining are disappearing.
    Expression:
    PHCODE.value == null
    Name: DATA[1]      Binding : DATA
    Expression:
    PHCODE.value != null
    Is my expression correct?
    What is operator for checking not equal to in javascript? is it !=? or !==?
    Rgds
    Vara
    Edited by: Vara K on Apr 23, 2009 6:05 AM

  • Dequeue with wait=10 hangs forever

    I created a queue on 9i with
    EXEC DBMS_AQADM.CREATE_QUEUE_TABLE (queue_table => 're2_t', queue_payload_type => 'SYS.AQ$_JMS_TEXT_MESSAGE', multiple_consumers => FALSE);
    EXEC DBMS_AQADM.CREATE_QUEUE (queue_name => 're2', queue_table => 're2_t', max_retries => 2147483647);
    EXEC DBMS_AQADM.START_QUEUE (queue_name => 're2');
    if i execute
    declare
    do dbms_aq.dequeue_options_t ;
    mp dbms_aq.message_properties_t ;
    mhandle RAW(16);
    message sys.aq$_jms_text_message;
    begin
    do.wait:=10;
    do.navigation:= DBMS_AQ.NEXT_MESSAGE;
    dbms_aq.dequeue(
    queue_name=>'re2',
    dequeue_options=>do,
    message_properties=>mp,
    payload=>message,
    msgid=>mhandle);
    end;
    then the dequeue will not wait for 10s. It will just wait forever.
    I have set the aq_tm_processes=1 and job_queue_processes=1...
    Any solutions/hints?

    In which mode your database server is running? Probably if its in dedicated mode it will hang u can check it by changing the database mode.
    null

Maybe you are looking for

  • Profile manager shows only one profile but I have two profiles located in the same place and I want to change

    I have had a Firefox crash and uninstalled then reinstalled three times. For some reason Mozbackup won't back up my files. In checking profiles, I have two profiles with different names and both marked default, located in the same place. I would like

  • Shuffle shows in explorer, works on iBook, not in iTunes on XP

    My wife has a shuffle, my iPod photo works/updates etc. on the PC, the shuffle shows up fine in Explorer and I can browse it. I also plugged it into my iBook, shows up fine there too and says it's linked to the other computer and shows it as formatte

  • Windows 8.1 won't load on my i mac

    Hi all i need to run a electrical test cert program on my Mac that requires windows, i have just purchased a new copy of windows 8.1 but my superdrive does not seem to recognise  either the 32 or 64bit CD disk via bootcamp, i also purchased a program

  • Can a dynamic select stmt in a ref cursor be done?

    Hello all! I have a form in which a user can select a number of checkboxes that coorespond to fields in a table. After checking the desired boxes, the user can then click on a button and a variable (v_query) in a "when button pressed" trigger is popu

  • Zram fails to start [SOLVED]

    I installed zramswap in AUR and then activate with # systemctl enable zramswap I restart and not works: ● zramswap.service - Zram-based swap (compressed RAM block devices) Loaded: loaded (/usr/lib/systemd/system/zramswap.service; disabled) Active: fa