How to find MGP current status: running or not

Hi
We have a system that is making automatic changes to publication items/user subscription parameter values/ users access to applications/ applications etc on Mobile Server, based on our system changes.
We have a class that among other is stopping the MGP job, in order to not affect sync processes while making changes to the repository. We found out in time, that this is very sensitive: making changes to repository or parameters while MGP is running can make
Something like:
public const string MGP_JOB_NAME = "MGP_DEFAULT";
public void StopMGP()
consolidatorManager.disableJob(MGPJOB_NAME);*
public void StartMGP()
consolidatorManager.enableJob(MGPJOB_NAME);*
and in main process something like
t*ry*
_mgpManagement.StopMGP();*
*//do whatever changes*
catch
*//some exception handling*
finally
_mgpManagement.StartMGP();*
Our problem, is that stopping the job is not enough. In this way we just prevent MGP to start, if it is stopped. But we cannot find if is running at that moment or not, in order to wait until ends the work.
We already tried to search for the current cycle, in MGPcycles table, but seems that the current cycle is being maintained in the memory until it is finished, and only after that is being written into the table. Another option may be to see if the sequence used for cycle id (if any) has the current value (nextval()) bigger than the history max_value + 1, but this is more a hack, that may not work in all cases.
We tried also to use class MGPStatus, without success.
If you have some information regarding this issue, would be helpful and appreciated.
Thank you
Florin

Hi
My issue is not a matter of job scheduler beeing started or not.
The situation is like this:
- oracle lite server is started and running for some time( days, weeks it does not matter).
- I'm stopping the job for MGP in a certain moment, in order to apply some changes, but, if the MGP is currently running (it can run sometimes for more than 1 hour) I would like to know if it's running or not.
Or, in other words: using the API, how can I see/retrieve the information available in webtogo application in MGP current cycle page.
Thank you

Similar Messages

  • FGA - How to find the current status of  the policy ?

    Hi,
    Version 10204.
    I am quering the views : dba_common_audit_trail AND dba_fga_audit_trail and try to discover what is status (DISABLE/ENABLE) of specific policy.
    Could someone help to findout which coulmn should i query in order to know what is current status of the POLICY_NAME ?
    Thanks.

    Your point is valid but I am not able to find any view which can supplement this.
    SQL> select table_name from dict where table_name like '%POLICY%';
    TABLE_NAME
    DBA_AUDIT_POLICY_COLUMNS
    DBA_JAVA_POLICY
    DBA_POLICY_CONTEXTS
    DBA_POLICY_GROUPS
    ALL_AUDIT_POLICY_COLUMNS
    ALL_POLICY_CONTEXTS
    ALL_POLICY_GROUPS
    USER_AUDIT_POLICY_COLUMNS
    USER_JAVA_POLICY
    USER_POLICY_CONTEXTS
    USER_POLICY_GROUPS
    TABLE_NAME
    V$VPD_POLICY
    GV$VPD_POLICY
    13 rows selected.
    SQL> select table_name from dict where table_name like '%FGA%';
    TABLE_NAME
    DBA_FGA_AUDIT_TRAILAman....

  • How to find a process is running or not.

    Hi All,
    I would like to find out whether a process is running or not. How to find out?
    Thank you,
    Kranthi.

    Process
    public abstract int exitValue()
    Returns the exit value for the subprocess.
    Returns:
    the exit value of the subprocess represented by this Process object.
    By convention, the value 0 indicates normal termination.
    Throws:
    IllegalThreadStateException - if the subprocess represented by this Process object has not yet terminated.
    */

  • How to find the current line in the table control in module pool ?

    How to find the current line in the table control in module pool ?
    This is an urgent requirement? please do help me.

    refer to this example
    REPORT demo_dynpro_tabcont_loop_at.
    CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
    DATA: cols LIKE LINE OF flights-cols,
    lines TYPE i.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    DATA: itab TYPE TABLE OF demo_conn.
          TABLES demo_conn.
    SELECT * FROM spfli INTO CORRESPONDING FIELDS OF TABLE itab.
    LOOP AT flights-cols INTO cols WHERE index GT 2.
      cols-screen-input = '0'.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
    ENDLOOP.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_100'.
    DESCRIBE TABLE itab LINES lines.
    flights-lines = lines.
    ENDMODULE.
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.
    MODULE read_table_control INPUT.
      MODIFY itab FROM demo_conn INDEX<b> flights-current_line.</b>
    ENDMODULE.
    MODULE user_command_0100 INPUT.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'TOGGLE'.
          LOOP AT flights-cols INTO cols WHERE index GT 2.
            IF  cols-screen-input = '0'.
              cols-screen-input = '1'.
            ELSEIF  cols-screen-input = '1'.
              cols-screen-input = '0'.
          ENDIF.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
    ENDLOOP.
        WHEN 'SORT_UP'.
          READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
          IF sy-subrc = 0.
            SORT itab STABLE BY (cols-screen-name+10) ASCENDING.
            cols-selected = ' '.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDIF.
        WHEN 'SORT_DOWN'.
          READ TABLE flights-cols INTO cols WITH KEY selected = 'X'.
          IF sy-subrc = 0.
            SORT itab STABLE BY (cols-screen-name+10) DESCENDING.
            cols-selected = ' '.
      MODIFY flights-cols FROM cols INDEX sy-tabix.
          ENDIF.
        WHEN 'DELETE'.
          READ TABLE flights-cols INTO cols
                                  WITH KEY screen-input = '1'.
          IF sy-subrc = 0.
            LOOP AT itab INTO demo_conn WHERE mark = 'X'.
              DELETE itab.
    ENDLOOP.
          ENDIF.
    ENDCASE.
    ENDMODULE.

  • How to find the NodeManager Status using WLST

    Hi All,
    can anyone please let me know how to find the nodemanager status using wlst, the nodemanager status whether it is 'Reachable' or not.
    Thank you.

    Hi Bob,
    As James pointed, we faced the same. We could not find any mbean to find the Node Manager Stat that we can monitor from Weblogic console.
    The best I can suggest, use the below WLST command after connecting to 'Node Manager:
    nm()
    Currently connected to Node Manager to monitor the domain xxxdomain.Grep for 'connected to Node Manager to monitor the domain <Your WLS domain name>' and if successfull, your node manager is UP & Connected other wise not 'Reachable'.
    Regards,
    qumar

  • How to Find the Current Instance Id in Oracle 10g

    Hi,
    how to find the current instance id in oracle 10g studio,
    I have the below code :
    if (InstanceScreenFlow.processInstance.id.id.indexOf(text : ins.id) < 0) {
    /// do something
    it is saying that "'processInstance' is not a function"
    Thanks,
    Brijesh Kumar Singh.

    Why not just pass in the "id" predefined variable into your screenflow? Once you do that you'll be able to refer to it as "id.id" anywhere inside your screenflow.
    Dan

  • How to find Correct IDoc Status in SAP

    Hi All,
    I need some help on IDoc scenario, I have custom program to create Idoc and as well it will send IDoc to XI. I want to know idoc staus in the program to update custom table whether idoc sent successfully or not but idoc giving status as 03 (Data passed to port OK) irrespective of idoc send or not, actually idoc not sent to xi when I check SM58 showing error.
    Please advice me how to find correct idoc status inside program itself.
    **-----Create IDoc
      CALL FUNCTION 'IDOC_OUTBOUND_WRITE_TO_DB'
        TABLES
          int_edidd      = i_edidd
        CHANGING
          int_edidc      = wa_int_edidc
        EXCEPTIONS
          idoc_not_saved = 1
          OTHERS         = 2.
      COMMIT WORK.
      i_edidc = wa_int_edidc.
      APPEND i_edidc.
      REFRESH i_edidd.
    **-----Send Idoc
      CLEAR i_edidd.
    **-------Send Idoc to XI
      CALL FUNCTION 'EDI_OUTPUT_NEW'
        EXPORTING
          onl_option = 'B'
          error_flag = ' '
        TABLES
          i_edidc    = i_edidc
          i_edidd    = i_edidd.
      COMMIT WORK.
      READ TABLE i_edidc INDEX 1.
    **-----Update Dispatch order status based on Idoc status.
      IF sy-subrc =  0 AND i_edidc-status ='03'.
        znxi01_update c_03 i_edidc-docnum.
        gw_success_record = gw_success_record + 1.
      ELSE.               " Error in Data Transfer
        znxi01_update c_02 i_edidc-docnum.
        gw_fail_record = gw_fail_record + 1.
      ENDIF.

    Hi Anil,
    for setting IDOC Status you can send back a IDOC of type <i>ALEAUD01</i>.
    The function IDOC_INPUT_ALEAUD takes automatically this IDOC and writes the status to the origin IDOC.
    Regards Mario

  • How to find the current SQL

    Dear All,
    My testing engineers are checking the application from front end, i have to find the current SQL (What SQL queries are used in the application) statements in the back end.
    Please let me know how to find the current executing SQL stements.
    Thanks in advance
    Mahi

    You need to join this query with one more table - v$sqlstats. There are many statistics in particular cpu_time, elapsed_time etc stored in that table for each sql statement.
    You can join v$sqlstats by sql_id until you have multiple child cursors for single statement.
    Or you can just join to v$sql and get statistics from there and in this latter case you include child_number column to distinguish child cursors from each other.
    Best Regards,
    Alex

  • Standard report Programs to find the current status of workflows

    Hi Experts,
                       Are there any Standard report Programs to find the current status of workflows or workflows which are pending.
    Regards,
    Hari

    Go to SWI1 t-code
    Give the appropriate Status - Ready or Inprocess or Waiting
    Input the Task - either WF Template or Standard Task.
    Choose the time period and execute the report.
    Regards,
    PR.

  • How to find the current state in web dynpro

    Hi,
       Can any one tell me how to find the current state of system (idle /not idle).
    Thanks,
    Krishna..

    Please explain further.  I don't understand how you are expecting to test for idle.  If ABAP code is being executed, then you know that the application is not idle. Only a server event could trigger code execution. Only a timedTrigger would be able to tell you that a certain amount of time has passed without activitity - although the event of the timer itself will be a server event that constitutes activity.

  • How to find the invoice status

    how to find the invoice status in ap

    Hi,
    Please elaborate your question, what Invoice are your referring? AR, AP...
    Invoice status can be found from both Front end application or from the backend using SQL query. Also provide your enviornment details to better assist you.
    Thanks &
    Best Regards,

  • Can any one let me know how to  find out current internet explorer version

    Can any one let me know how to find out current internet explorer version

    Don;t use annoyed repeated words. Try to explain exactly what is your problem.
    <script LANGUAGE="JavaScript">
    document.write("Your browser Name: <B>" + navigator.appName + "</B>.<br>")
    //Detect IE Version Only
    if (navigator.appVersion.indexOf("MSIE")!=-1){
    var temp=navigator.appVersion.split("MSIE")
    var version=parseFloat(temp[1])
    document.write(" Your Browser version: <B>" + version + "</B>.")
    </script>

  • How to find out current archtecture

    I have installed Oracle Database Express Edition 11g Release 2. APEX 4.0 has been installed automatically. (I didn't configure any servers, just clicked 'next')
    Now I have to upgrade APEX to 4.1 , but I must know, what should I configure - Oracle Application Express Listener, the Embedded PL/SQL Gateway, or Oracle HTTP Server?
    So, how to find out current archtecture of APEX 4.0 ?
    Thank you,
    Kseniya.

    Kseniya wrote:
    I have installed Oracle Database Express Edition 11g Release 2. APEX 4.0 has been installed automatically. (I didn't configure any servers, just clicked 'next')In that case, it should be Embedded PL/SQL Gateway. Is there a port number in the URL? What is it?

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • How i find my i5c is genuine or not

    how i find my i5c is genuine or not?

    See this thread: https://discussions.apple.com/message/23719985#23719985

Maybe you are looking for

  • Lack of customer service/Liars

    I went into a verizon store wanting to add a new line. Everything seemed to go smoothly. He asked if I wanted the 5S or 5C. I decided to go with the 5C. I paid my $145 and he helped me pick out a number. He said to come back at the end of the week to

  • HT1918 How do I delete a credit card on profile

    I'm been trying to remove a credit card on file so that I can use a gift card. It wont let me.

  • Security with mulitple organizations sharing an ONS backbone

    Has anyone ever connected two organization's 15454s together with either a subtend ring or PTP and NOT allowed one another access to each others CTC? We want to use our respective systems to transport another parties traffic, but despite organization

  • FM Transmitter app?

    Is there an FM Transmitter app for the Droid Incredible? Is it even capable? I know that the LG Chocolate 3 has the capabilities and thats a far less advanced phone compared to the DI.

  • Open .lwp and .123 files in Windows 7

    How do I open .lwp and .123 files in Windows 7?