Monitoring OAQ using mgw_gateway gives an odd result?

When we submit the following query:
select  AGENT_STATUS, AGENT_PING, LAST_ERROR_DATE, LAST_ERROR_TIME from mgw_gateway;
We get this result:
SQL> select AGENT_STATUS, AGENT_PING, LAST_ERROR_DATE, LAST_ERROR_TIME from mgw_gateway;
MESSAGING GATEWAY IS NOT ONLINE
AGENT_STATUS         AGENT_PING           LAST_ERROR_DATE     LAST_ERR
RUNNING              UNREACHABLE
SQL> /
MESSAGING GATEWAY IS NOT ONLINE
AGENT_STATUS         AGENT_PING           LAST_ERROR_DATE     LAST_ERR
RUNNING              REACHABLE
SQL>
Those two queries were submitted sequentially.
DB is located on a Redhat Linux server, where we also submit these queries, so there should be no network issues.
The questions are:
Why is AGENT_PING showing two different results?
Why do we get "MESSAGING GATEWAY IS NOT ONLINE" no matter what the status?
We are up and running, data is being retrieved from MQ into the AQ queue tables, we are processing and not losing any data.
The "NOT ONLINE" message is not listed in any docs or online sources I have been able to find.
We are at a loss. How can we diagnose this?

Hi WoG, thanks for the reply.
No, not an "own" view, definitely sys.
Yes, your observation is correct. That "NOT ONLINE" message is separate from the select results and is not a column on the view.
Oracle version is:
     Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
     With the Partitioning option
OS:
     Red Hat Enterprise Linux Server release 5.10 (Tikanga)
View definition as pulled via sqldeveloper:
CREATE OR REPLACE FORCE VIEW "SYS"."MGW_GATEWAY" ("AGENT_STATUS", "AGENT_PING",
  "AGENT_JOB", "AGENT_USER", "AGENT_DATABASE", "LAST_ERROR_DATE",
  "LAST_ERROR_TIME", "LAST_ERROR_MSG", "MAX_CONNECTIONS", "MAX_MEMORY",
  "MAX_THREADS", "AGENT_INSTANCE", "AGENT_START_TIME", "CONNTYPE", "AGENT_NAME"
  , "SERVICE", "INITFILE", "COMMENTS")
AS
  SELECT
    -- agent status
    CASE
      WHEN gw.agent_status = 0
      THEN 'NOT_STARTED'
      WHEN gw.agent_status = 1
      THEN 'START_SCHEDULED'
      WHEN gw.agent_status = 2
      THEN 'STARTING'
      WHEN gw.agent_status = 3
      THEN 'INITIALIZING'
      WHEN gw.agent_status = 4
      THEN 'RUNNING'
      WHEN gw.agent_status = 5
      THEN 'SHUTTING_DOWN'
      WHEN gw.agent_status = 6
      THEN 'BROKEN'
    END AGENT_STATUS,
    -- agent ping status; no ping (delay) if agent not yet started
    CASE
      WHEN gw.agent_status >= 0
      AND gw.agent_status  <=1
      THEN ''
      WHEN mgwi_admin.ping(gw.agent_name,3) = 1
      THEN 'REACHABLE'
      ELSE 'UNREACHABLE'
    END AGENT_PING,
    -- queued job used to start gateway agent
    gw.agent_job AGENT_JOB,
    -- agent user and database (connect string)
    gw.agent_user AGENT_USER,
    gw.agent_database AGENT_DATABASE,
    -- info about last gateway agent error
    gw.error_time LAST_ERROR_DATE,
    SUBSTR(TO_CHAR(gw.error_time, 'HH24:MI:SS'), 1, 8) LAST_ERROR_TIME,
    gw.error_message LAST_ERROR_MSG,
    -- misc config information
    gw.max_connections MAX_CONNECTIONS,
    gw.max_memory MAX_MEMORY,
    gw.max_threads MAX_THREADS,
    gw.agent_instance AGENT_INSTANCE,
    gw.agent_start_time AGENT_START_TIME,
    DECODE(bitand(gw.flags, 1), 0, 'JDBC_OCI', 1, 'JDBC_THIN', NULL) CONNTYPE,
    gw.agent_name AGENT_NAME,
    gw.service SERVICE,
    gw.initfile INITFILE,
    gw.comments COMMENTS
  FROM
    mgw$_gateway gw
WITH READ ONLY;
COMMENT ON TABLE "SYS"."MGW_GATEWAY"
IS
  'Messaging Gateway status and configuration information';

Similar Messages

  • Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8

    Safari is slowly getting more buggy.  Actions, such as clicking on a field, don't give the expected results.  I may have to click on the red exit button 5 times to get it to work.  I get unwanted dropdown menus.  I have version 5.1.7 on OS 10.6.8.  System is 3 years old.

    Are you running low on RAM..?
    see > Using Activity Monitor
    Is your Hard Drive getting full...?
    see > Freeing space on your Mac OS X startup disk
    Have you tried Repair Disk Permissions after upgrading Safari...?
    see > About Disk Utility's Repair Disk Permissions feature
    Reset Safari...?

  • I have 9" classic ipad. may i connect ipad to separate 21" monitor and use it as main monitor?

    I have 9" classic ipad. may i connect ipad to separate 21" monitor and use it as main monitor?

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    You would need to find a 3rd party dispay extender app to accomplish this. The results may or may not be acceptable to you.
    http://www.macworld.com/article/1156288/imac_second_monitor.html

  • Using SUM BY to limit result of 3 union queries (11g)

    Hey guys,
    First time posting here (btw, I've tried changing my handle name via edit profile here to no success! Ugh!).
    I need to modify a report that's built off of 3 union queries.  Here's a simplified table version of the union result:
    Label
    Year
    Category
    Score
    Ct
    A
    2005
    1a
    4.0
    1
    A
    2005
    2b
    3.5
    1
    A
    2005
    3c
    2.5
    1
    B
    2006
    1a
    2.8
    1
    B
    2006
    2b
    4.0
    1
    Ct is a calculated item where I did a CASE on a field just to get a count of 1 on this column.  I need to limit this result where per label, per year, there are 3 categories.  So, looking at above table, Label A rows will be the only set returned.  To "hopefully" get 3 under the Ct column where there are 3 categories per year, per label, I have tried "SUM(Ct by Year)" but it didn't give the correct result.  I have also tried "SUM(SUM(Ct by Year) by Label)" and that didn't work either (not that I expected it to work).  I also messed around with GROUP BY to no success either.
    Has anyone run into something like this?  Any input/tip is appreciated. THANKS!!
    Twiggy99

    Are you using outer query to get the same?
    btw: What is when you use count instead of sum?

  • Using LIKE operator doesnt return results

    Hi
    I'm very new to SQL and databases in general. I have a vb.NET app in which I'm trying to send a SQL server to a SQL Server 2012 server.
    For testing purposes Im using SQL SErver Management studio. I have one query that works, but when I try to use the exact same query using wildcard in the statement, it returns no results even though I know for a fact that the table contains such values.
    This works:
    SELECT number
    FROM casenumber
    WHERE number = '100510'
    This, for some reason, does NOT work:
    SELECT number
    FROM casenumber
    WHERE number LIKE '100%'
    What am I doing wrong? Help, pretty please? Many thanks in advance!

    When you use WHERE number = '100510' to get your result, it is not right way to do it.
    When you ask Tsql question, you should provide your table DDL (table column and data type...).
    Since your number column is a float numeric type, you don't need to use quotes around it. You cannot use
    a string LIKE search with a number unless you convert the column to string type.
    The final query may give you the result you want but you still don't get the point for this question.
    To operate with the appropriate data type matters a lot in T-SQL. 

  • I use a macbook pro retina. before i upgraded to maverick my windows stayed the way i put them. now after upgrade i have to resize every time i change the window. i use a 32in. monitor and use it full screen.

    I use a macbook pro retina.  I use a 32 in. monitor and use it full screen. I size the screen manually.  Since i upgraded to maverick, I have to resize the screen each time I change windows.Before the upgrade the screen stayed where I put it.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, or by a peripheral device. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Shut down your computer, wait 30 seconds, and then hold down the shift key while pressing the power button.
    When you see the gray Apple logo, release the shift key.
    If you are prompted to log in, type your password, and then hold down the shift key again as you click  Log in.
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, or if the boot volume is a software RAID, you can’t boot in safe mode. Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Multi monitor with splitter only gives mirror image

    i have a mac intel based 10.5.6 (i know i need an update) i ordered a minidvi to vga adapter but i thought that i could use a splitter to move my mouse to the two other monitors but it only gives me a mirror image and i dont know if i could change that. Any ideas?

    The adapter worked but the refresh rate is very fragmented and i cant get a clear movement of pictures and it is also slowing my other monitors down. my guess is that it requires additional software and a load of adapters which i think is messed up. I have 10.5.8 now and do not see much a difference. the first monitor that attached was throught the mini dvi on that back with a vga adapter and it works like a charm on 1920x1080. is there any kinf of mini dvi "hub" or expander to give me one extra port?

  • Reoder point calculation don't give the expected result

    Dear friends,
    We are using CBP to set reorder point (MRP type is VM).
    We've set the planned delivery time, on MRP2 view, as 120 days.
    When we run the forecast, the calculated basic value gives the expected
    result, but the reorder point don't.
    As we've set Planned delivery time as 120 days, we expect that the
    reorder point is "basic value"*4 (4 is the result 120/30). But the result
    of the reorder point is is greater (aprox. "basic value"*4,5).
    Can you please give me a help on this matter?
    Many thanks,
    Afonso Pereira

    you may get your expected result if you would use VB instead of VM.
    Manual Reorder Point Planning
    In manual reorder point planning, you define both the reorder level and the safety stock level manually in the appropriate material master.
    Automatic Reorder Point Planning
    In automatic reorder point planning, both the reorder level and the safety stock level are determined by the integrated forecasting program.
    The system uses past consumption data (historical data) to forecast future requirements. The system then uses these forecast values to calculate the reorder level and the safety stock level, taking the service level, which is specified by the MRP controller, and the material's replenishment lead time into account, and transfers them to the material master.
    Since the forecast is carried out at regular intervals, the reorder level and the safety stock level are continually adapted to the current consumption and delivery situation. This means that a contribution is made towards keeping stock levels low.

  • Monitor percent used memory

    I have a customer that wants to monitor percent used memory. If it exceeds 75% for three samples over 10 minutes alert.
    I am trying to use a composite monitor and I have the script built to get the percentage. I haven't been able to find any examples of using the consolidator to check the three samples to see if there should be an alert. Anyone out there every done
    something like this that can give me a hand?

    Hi,
    Maybe you can use the process monitoring template:
    Process Monitoring Template
    http://technet.microsoft.com/en-us/library/hh457551.aspx
    Alex Zhao
    TechNet Community Support

  • HT2589 We have purchase 5 apple minis and would like them all on one account.  That way we can monitor the use of these units.  they will be used strickly for a business application.  can I use one account in itunes or must i have multiple.

    We have purchased 5 apple minis and would like them all on one account, that way we can monitor the use of these units.  They will be used strickly for a business application.  Can I use one account in itunes or must i have multiple.

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • I just purchased a 28" 4K monitor to use with Premiere Pro CS6 in WIndows 8.1 and the fonts are super tiny.

    No matter what settings I choose, the fonts on the display are impossibly tiny.  The menu fonts at top are readable, but everything else feels like I am taking an eye exam. 
    Is this fixable, or do I need to return the 4K monitor and fuhgedaboutit? 
    Since I am doing some shooting in 4K, I thought this monitor would make sense. 
    If in fact it can't work with PP CS6 on WIn 8.1, what is the best recommended monitor to use with PP CS6?

    Hi Hbrandado,
    hbrandado wrote:
    No matter what settings I choose, the fonts on the display are impossibly tiny.  The menu fonts at top are readable, but everything else feels like I am taking an eye exam. 
    Is this fixable, or do I need to return the 4K monitor and fuhgedaboutit? 
    Since I am doing some shooting in 4K, I thought this monitor would make sense.
    I understand your issue and I don't have a solution for you. Sorry. In Premiere Pro CC 2014, you can increase the size of the fonts in the Project panel, but not in CS6.
    hbrandado wrote:
    If in fact it can't work with PP CS6 on WIn 8.1, what is the best recommended monitor to use with PP CS6?
    You may want to ask this in ourHardware Forum.
    Lots of gear heads that can help you there.
    Thanks,
    Kevin

  • Can I hook my iphone 5 to a touchscreen monitor and use the touchscreen feature of the monitor. Would I have to use the lighting to hdmi?

    Can I hook my iphone 5 to a touchscreen monitor and use the touchscreen feature of the monitor. Would I have to use the lighting to hdmi?

    The connection of the phone to the monitor would allow you to see, but does not have the ability to translate the touch on the monitor to the phone through that cable.

  • I used to give my photo's keywords. Most of the time I have several photo's for the same keyword and it was possible to select all those photo's and give them the keyword in one move. Since of few weeks I can't do that anymore and I find it very annoying.

    I used to give my photo's keywords. Most of the time I have several photo's for the same keyword and it was possible to select all those photo's and give them the keyword in one move. Since of few weeks I can't do that anymore and it's very annoying. What can I do to get back to the former situation?

    . Since of few weeks I can't do that anymore and it's very annoying. What can I do to get back to the former situation?
    Check, if you have the "Primary Only" option enabled. Then keywords will only be applied to the "Primary Image":
    See:                  Keywords or ratings are applied only to one of the selected images - why?
    Uncheck the little square button with the "1".

  • 2nd monitor not using all available pixels

    So am I the only one having this issue? -
    I have a Mac Mini that is running Windows 7 in bootcamp.  I have 2 monitors.  My 2nd monitor is connected with an HDMI to DVI cable.  In Windows, the whole screen of both monitors is used (edge to edge, top  to bottom).  But when I switch over to Yosemite, my second monitor has about a 1 inch bar of black on both sides and a 1/2 inch bar along the top and the bottom.  This is literally unused space.
    I've talked to Apple Support several times but they don't seem to have an answer.  I get transferred to someone but each time I get cut off.  (so I gave up trying to fix this over the phone or on line chat).  There are no features or selections in the Syncmaster to adjust this.  Why does it work perfectly fine in Windows but not when I switch over to Yosemite.
    Maybe this doesn't seem like a big deal but it's so frustrating that I'm actually finding myself not wanting to use the Yosemite side.
    Does anybody have a solutio

    Sorry:
    Display TypeLCD monitor / TFT active matrix
    Diagonal Size20 in
    Aspect RatioWidescreen
    Native Resolution1600 x 900
    Pixel Pitch0.2768 mm
    Brightness300 cd/m2
    Contrast Ratio1000:1 / 15000:1 (dynamic)
    Color Support16.7 million colors
    Response Time5 ms
    Horizontal Viewing Angle170
    Vertical Viewing Angle160
    FeaturesHDCP, MagicBright 3, MagicTune
    Dimensions (WxDxH)19.1 in x 7.9 in x 14.7 in
    Weight9.7 lbs
    ManufacturerSamsung  model 2033SW

  • Blackmagic Intensity Pro......Suggest a good HDMI monitor to use..

    I am looking to buy the Intensity Pro card to go with my Song HC7 ...to allow me to capture the uncompressed HDV....
    I am also looking for a 2nd monitor to use to judge color more accurate...
    Could anybody recomend conecting a LCD monitor with HDMI conection .say a
    Sony or Lg with HDMI conections to the HDMI on the intensity card....will I get anywhere as close as say a analogue
    Sony broadcast monitor.....also will it be able to view HDV and SD via the HDMI port conected via the Intensity pro....
    2nd.... Can you convert SDI to HDMI to get it into th intensity pro....are there such beasts or am I barking up the wrong tree...
    ROB

    Thanks for the quick reply.....
    what Im trying to work out is how much better a analogue monitor like
    http://www.planetdv.net/Content/ByManufacturer/JVC/Video_Output_Monitors/JVC_TM-H150CG_15inch_ColourMonitor.asp
    JVC TM150CG connected via componants out of Intensity card..
    would be over a
    http://uk.lge.com/prodmodeldetail.do?actType=search&page=1&modelCategoryId=0102& categoryId=0102&parentId=01&modelCodeDisplay=19LS4R&model=3
    LG19LSR connected to the Intensity pro via HDMI
    Cheers and I hope the links work

Maybe you are looking for

  • How can I combine originals, modified, and data files?

    I just ran into a huge problem. I have about 33,500 pictures, and my startup disk is beyond full. I all of a sudden realized that I have three copies of every single picture I have. One in the modified folder, one in the originals folder, and another

  • Anyone knows how to implement Decomposition Tree in Oracle BI products? to

    Hello Everybody Recently I'm trying to use Oracle BIEE plus to upgrade our old report service in our product. I'm a newbee to OracleBI products but I have a question that oracle support guys in our region also could figure out a clear answer. If anyb

  • Exporting a Intelligence report having a Pivot in to an excel

    Hello,<BR>I am having report which has a Pivot table in it. When i tried to export this report to an excel sheet, all the parts except the pivot is getting exported. Pivot is exported only if the pivot part of the query is being exported.<BR><BR>Need

  • BAPI for outbound delivery without order reference - VL01NO

    Hi , I need a BAPI to create a outbound delivery without a Order reference ( transaction VL01NO ). Please provide the BAPI. Sample code will be helpful. Thanks, R~

  • Nodes with Only One Lower-Level Node = Hide

    Hi everyone Have anyone present this situation: Iu2019ve a quey to report inventory aging. It has two hierarchies to show data. In Rows I have Major Markets and in Columns a date hierarchy to show aging Ex: from 0 to 8 months, 9+ and 13+. Of course h