Monitor any record to stay in queue for more than 5 minutes under AQ ADMIN schema

Hi All,
We need to prepare script which monitor/notify us the record which stays in queue for more than 5 minutes under AQADMIN queue tables. Can someone throw light on this?
Regards,
MD

Hi Asif,
We need script to monitor if we have "waiting" status in msg_state column of the below table is waiting for more than 5 minutes.
SQL> desc AQ$TBL;
Name                                      Null?    Type
QUEUE                                              VARCHAR2(30)
MSG_ID                                    NOT NULL RAW(16)
CORR_ID                                            VARCHAR2(128)
MSG_PRIORITY                                       NUMBER
MSG_STATE                                          VARCHAR2(16)
DELAY                                              DATE
DELAY_TIMESTAMP                                    TIMESTAMP(6)
EXPIRATION                                         NUMBER
ENQ_TIME                                           DATE
ENQ_TIMESTAMP                                      TIMESTAMP(6)
ENQ_USER_ID                                        VARCHAR2(30)
ENQ_TXN_ID                                         VARCHAR2(30)
DEQ_TIME                                           DATE
DEQ_TIMESTAMP                                      TIMESTAMP(9)
DEQ_USER_ID                                        VARCHAR2(30)
DEQ_TXN_ID                                         VARCHAR2(30)
RETRY_COUNT                                        NUMBER
EXCEPTION_QUEUE_OWNER                              VARCHAR2(30)
EXCEPTION_QUEUE                                    VARCHAR2(30)
USER_DATA                                          TEST1
PROPAGATED_MSGID                                   RAW(16)
SENDER_NAME                                        VARCHAR2(30)
SENDER_ADDRESS                                     VARCHAR2(1024)
SENDER_PROTOCOL                                    NUMBER
ORIGINAL_MSGID                                     RAW(16)
ORIGINAL_QUEUE_NAME                                VARCHAR2(30)
ORIGINAL_QUEUE_OWNER                               VARCHAR2(30)
EXPIRATION_REASON                                  VARCHAR2(31)
CONSUMER_NAME                                      VARCHAR2(30)
ADDRESS                                            VARCHAR2(1024)
PROTOCOL                                           NUMBER
Regards,
MD

Similar Messages

  • How to create Single Queue for more than one interfaces(XI)

    Hi Experts,
    I want to set up a separate queue for 3 interfaces which all are outbound IDOC to FTP.
    Please let me know ' Hhow to create a queue for multiple interfaces with Quality of Service 'EO''.
    Thanks,
    Srinivas P.

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • IOS4 in 3GS hanging for more than 2 minutes!

    My iPhone 3GS is hanging after I press END before, during and afters calls. This never happened in 3.1.3!
    Sometimes it stays like that for more than 2 minutes, than it shows the unable to complete call message.
    It looks like it is losing the carrier signal and tries to reconnect.
    Any ideas to avoid this?
    Alexandre.

    Have you tried restoring the iPhone or hard resetting it by holding the Home and Hold button until it switches off?

  • Setting color codes for more than one photo at a time

    Is there any way to set color codes for more than one photo at a time?

    Hi John,
    I will look at keywords. My issue is speed. Right now I am culling and editing an event shoot that spanned a week with 35 separate events and more than 5000 images. So I use the fastest most convenient method I can and it still takes a long time to have a completed and final shoot. On this shoot I will end up with a final set of around 1500 images. Right now I am finishing processing a show that will hang in the Deutsches Amerikanish Zentrum in Stuttgart.
    As I am sure you are aware by now, having seen enough of my inane questions that over the last two years or since Lightroom version 1.xx if I could not figure out how to do something I skipped it. So many things in Lightroom are buried and unless you have a mind like a steel trap (and think that some of you guys in the forum do) locating how to do something is not obvious.
    For example, I only learned (in the last hour) that I could assign colors as a group of selections by using Shift + number. I found this in a side head in Martin Evenings Lightroom book. I still do not know how to find a way to display the color filter "selection" set in Library mode. Is there a way?
    To top it off, Stuttgart Media University asked me if I would add a Lightroom module to my schedule this year. Now I have a compelling reason to learn all those missing pieces that I have created workarounds for. Hence the number of posts you have been seeing from me over the past few of weeks.
    I tell my class that there are no such things as stupid questions, only questions. Now I am practicing what I have been preaching for the last gazillion years. Guys like you have been great.
    My workflow is
    1. I first separate all images by event. I do that at the time of import.
    2. I do a fast pass rejecting all the obviously bad images
    3. I do a second pass grouping the images by sub-group (speeches, people talking, performances, etc.) This is where I run out of selection methods and your key-wording could work but it would probably take too much time to establish a keyword set for a single event. Where I have more than five subgroups I set up different collection sets with one collection for each sub group. However I would like to keep a single event in one collection.
    4. I then select the images to be used by color code.
    5. Next I process the final images (crop develop etc) by collection.
    6. Last I output the set according to client requirement.
    If you have a better workflow, I am all ears.
    By the way, what is your photo specialty and where are you located?
    Jim

  • Dynamic Filter SAP HANA - For more than one field

    Hi Guys,
        Is their any way we can apply filter for more than one field. Lets take below example  i want to apply filter both on PERNR & DOJ. I am able to apply filter on PERNR but when i try to create filter on more than one field (PERNR & DOJ ) it throws me some error.
    Please let me know how we can achieve this.
    OUT_EMP_SAL = SELECT A.PERNR, A.DOJ, A.FNAME, B.SALARY FROM "SAPH74".EMP_INFO A
    INNER JOIN "SAPH74".EMP_SAL B
    ON A.PERNR = B.PERNR;
    OUT_EMP_SAP = APPLY_FILTER(:OUT_EMP_SAL, :IN_PERNR )

    Hi Lakshmi,
    You may need to use the end while calling, i took the same example from the "Help" in hana.
    CREATE PROCEDURE GET_PROCEDURE_NAME (IN filter NVARCHAR(100), OUT procedures outtype)
    AS
    BEGIN
        temp_procedures = SELECT SCHEMA_NAME, PROCEDURE_NAME FROM SYS.PROCEDURES;
        procedures = APPLY_FILTER(:temp_procedures,:filter);
    END;
    CALL GET_PROCEDURE_NAME(' SCHEMA_NAME = ''SYS'' AND PROCEDURE_NAME like ''TREX%''', ?);
    Regards,
    Krishna Tangudu

  • After installing the 8.1 update the Internet Sharing won't allow any devices to stay connected for more than a few hours.

    Internet sharing is turned "on" and appears to be working, but really isn't. Locking the screen, restarting, or a hard reboot helps, but it is extremely aggravating not to be able to maintain a connection for more than a few hours at a time!

        Thank you so much for the info! I apologize for having asked for your device model as that is the forum you posted to. Also, I know that we've set the expectation that the device will remain connected as long as a demand for signal flows through it, but that may not be entirely the case. After a period of constant use, any device (including the Lumia 822) may require or force itself to stop.
    You've mentioned that the device will freeze after a few hours usage. Is the device also connected to the charger while being used as a hotspot? If so, do you notice the device getting warmer than it normally would be?
    DionM_VZW
    Follow us on Twitter www.twitter.com/vzwsupport

  • Every time my lg g pad 8.3 lte tablet is turned off it reverts the saving email attachment back to internal storage.  Every time I turn on, I change it back to save to SD card.  It stays that way until it is turned off for more than a minute.  If I do a r

    Every time my lg g pad 8.3 lte tablet is turned off it reverts the saving email attachment back to internal storage.  Every time I turn on, I change it back to save to SD card.  It stays that way until it is turned off for more than a minute.  If I do a restart, it holds the setting, but loses it when it is shut down for any period of time.  Does anyone else have this issue?  The setting holds for photos taken with camera storing to SD card.  Only the email attachment setting does not hold.

    I believe that system has a hall sensor on it to detect when the lid is closed so it can put the system to sleep and/or disable the monitor so it can be used with an external monitor only. If the sensor is marginal or has a bad cable, it may intermittently cut the monitor on and off, and may likewise put the system to sleep. One way to check would be to plug in an external monitor and if the laptop's screen cuts off or doesn't show up, start using the trackpad and press on a non-typing key like the shift key. If the external display suddenly pops and becomes active while the laptop display remains black, it's probably a problem with the sensor or the cable/connection. You might be able to fool the sensor into kicking on and off by moving a magnet over it. It's located on the left had side of the base with the unit opened up, and right over the audio output plug.
    I know of some people that put a small magnet right over the hall sensor's location so the laptop display turns off and they use the system with an external monitor, keyboard, and mouse. If fooling with magnets, make sure they're small and don't get them close to the hard drive because a strong magnet can wipe them out.
    I don't know if this will help you much, but it might.

  • Master_detail for more than one record at a time

    Hi,
    How can i display master_detail records for more than one records at a time, for example, i have two tables A and B , A has username and role and B has username and profile. here i wanted to display 10 users at a time on my 6i form with username, role and profile.
    i have created a master-detail relation ship with these tables when i'm executing F8 on blcok A , it displays 10 records on BlockA but, only one at a time on block B, how can i display all corresponding records on block B at a time.
    Thanks for your help.Bcj

    Thanks Roberts, that was realy informative due to some doubts i would like to confirm my requirements , i have two blocks A and B and each master record has only one detail record. but i wanted to display at least 10 master_detail relationships(records) on the form at a time, i would like to know is it possible to do without creating any table or view for example,
    data in table A,
    username role
    AAA R1
    BBB R2
    CCC R3
    data in table B,
    username profile
    AAA P1
    BBB P2
    CCC P3
    i wanted to display it on form like below,
    username role profile
    AAA R1 P1
    BBB R2 P2
    CCC R3 P3
    Also would like to know that how can i select data from dba_users, any restriction is there on forms 6i, i can select it on sqlplus.
    Thanks Again, Bcj

  • HP 3050 will not stay on the wireless network for more than a few minutes at a time.

    My HP DeskJet 3050 J610 is constantly dropping the wireless connection. It won't stay on for more than a few minutes. If I power cycle, it comes right back on, but drops again after a few minutes. It will print fine from a USB. When it drops off, pings time out even though the device shows "ready" in Windows 7, Windows XP and OSX. I've done everything HP suggests - static IP, upgraded firmware, diagnostic tools, etc. I am out of options.
    I can hit print right now, printer shows as ready, then I will get a print error. If I go over and power cycle the printer, my document will print - most of the time. It will remain on the network for a few minutes, then stop working. As soon as I power cycle it, I get a few more minutes before it drops. It has always done this from day one.

    I don't have another wireless network close by that I could test it on. I'm a little isolated. i might be able to work out a time when I could take it by a friend's house, but he's over an hour away.
    I have a Win 7 laptop, a Win XP desktop and an old Mac Powerbook as well as an iPod Touch and iPad 3 that use my wireless network without any problems - besides the fact that hardly any of my devices will talk to the other... But that's an OS issue. They all see the network, and the printer after I cycle the power on it.
    My wireless router is a Netgear WNR2000. I remember monkeying with the channels when I frist got this printer a few months ago, but I don't remember what all I did. Since I did a firmware update on the router, the channel is now set to Auto. If there's a channel you think I should try, let me know what it is. The printer shows up on the list of devices in the router, but that may be because I have its address reserved for the static IP. Interestingly, the router sees the printer, even though my devices cannot. I did a ping just now while checking that, and got this - which is unusual. Normally they all time out.
    Pinging 192.168.1.150 with 32 bytes of data:
    Request timed out.
    Request timed out.
    Reply from 192.168.1.150: bytes=32 time=3223ms TTL=255
    Request timed out.
    Ping statistics for 192.168.1.150:
        Packets: Sent = 4, Received = 1, Lost = 3 (75% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 3223ms, Maximum = 3223ms, Average = 3223ms
    Played around a bit more pinging between devices and got this oddity - without a power cycle just a couple minutes later.
    ping 192.168.1.150 -n 50 -l 500
    Pinging 192.168.1.150 with 500 bytes of data:
    Reply from 192.168.1.150: bytes=500 time=527ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=10ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=12ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=20ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=13ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=11ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=19ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=17ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=15ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=10ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=20ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=19ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=17ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=15ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=11ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=21ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=19ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=17ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=13ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=14ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=20ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=16ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=14ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=13ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=21ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=15ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=15ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=11ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=16ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=14ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=10ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=16ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=14ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=22ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=19ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=16ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=14ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=22ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=20ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=18ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=16ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=14ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=9ms TTL=255
    Reply from 192.168.1.150: bytes=500 time=20ms TTL=255
    Ping statistics for 192.168.1.150:
        Packets: Sent = 50, Received = 50, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 9ms, Maximum = 527ms, Average = 26ms
    Is there a possibility that the printer is going into a standby state and having trouble waking when traffic hits? I don't know if that's possible, just seems like it looking at this.

  • Iphoto won't stay open for more than a second

    My iphoto won't stay open for more than a second. What could be wrong?

    You can see more than any of us here. If there is no other indication beyond what you have described, then it could be anything. We don't even know if you have somehow deleted the application.

  • My iPhone 4 with iOS 6 is making me start to hate Apple. Any App and at any time I open and I can not view it or move for more than 2 minutes, they close themselves. During connections, it also gives this problem and the signal disappears after a few seco

    My iPhone 4 with iOS 6 is making me start to hate Apple. Any App and at any time I open and I can not view it or move for more than 2 minutes, they close themselves. During connections, it also gives this problem and the signal disappears after a few seconds back but often the person on the other end has hung up ... I can not stand it anymore, someone suggests something?
    Besides these problems, there is the battery, which was bad got worse, she is not lasting more than 10 hours, even without using the phone.
    Sometimes it even seems that the problem was solved, but my joy did not last long after I celebrate all the problems return, is incredible ...
    thanks.
    Sorry my bad Inglês.

    Try a reset hold home/sleep buttons until Apple logo appears
    If that does not improve try a restore
    http://support.apple.com/kb/HT4137
    For your information
    We are NOT Apple here we are all users helping other users
    so emotion is ignored

  • My iphoto quites unexpectedly everytime I open it and says closes while using the eOkaoFr.dylib plugin. Does anyone know how to fix this? iphoto won't stay open for more than 1 minute at a time.

    My iphoto quites unexpectedly everytime I open it and says closes while using the eOkaoFr.dylib plugin. Does anyone know how to fix this? iphoto won't stay open for more than 1 minute at a time. Help anyone?

    Is there a crash log? If so post the first 100 or so lines o fit
    Do you know what the ofending plugin is? and where it came from?
    LN

  • I was mid facetime call and my phone turned off and wouldnt turn on until i plugged it in. then the date was wrong,it said no service, and wont let me turn wifi on. also it wont stay on for more than a few minutes at a time

    i was mid facetime call and my phone turned off and wouldnt turn on until i plugged it in. then the date was wrong,it said no service, and wont let me turn wifi on. also it wont stay on for more than a few minutes at a time. Help?

    Sounds like a hardware failure.
    Make an appointment at the genius bar and take it in for them to look at. It will probably need to be replaced.

  • Something went wrong with my apple tv and now it says that it is in retail demo mode. How can i fix it?  I have had it for more than one year without any problem

    something went wrong with my apple tv and now it says that it is in retail demo mode. How can i fix it?  I have had it for more than one year without any problem

    To turn on/off retail mode, go to settings, general, legal.
    Do not open legal, just put the cursor there.
    Then, on the remote, type this sequence : right - right - left - center.
    The AppleTV should reboot.

  • Why will my Mac 8,1 intel desktop not stay in sleep mode for more than 5 seconds?

    Why will my Mac 8,1 intel desktop not stay in sleep mode for more than 5 seconds?
    Have tried repeatedly and end up shutting down instead of "sleeping:.

    Hello, most usually it's some USB device causing that, but...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed. Or an errant process eating up RAM.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

Maybe you are looking for