Long running job in BW

Hello Gurus,
       which transaction code can be used to show up all long-time running jobs in bw?  how can we identify if a job is running too long?
Many thanks,
frank

Hi,
Please check the below
SM66 - Global Work Process Overview
SM37 - Simple Job Selection ( Only active jobs)
SM50 - Process Overview
Sort them by Time
-Vikram

Similar Messages

  • Re:How to determine the long running jobs in a patch

    Hi ,
    How to determine the long running jobs in a patch .
    Regards

    Hi,
    Check the below MY ORACLE SUPPORT note:
    Note.252422.1 .... Check Completed Long Running Jobs In Oracle Apps.
    Best regards,
    Rafi

  • Prgess indicator on long running jobs

    I have an FX application that is directly linked to my database. The program allows all DML operations as well as user defined actions (action commands and various other methods). I have the same application running in Swing, SWT, Canoo ULC and al works just fine. In each of the other front end types, the application automatically displays a busy indicator when a long running job is executed. Now I need this in FX.
    My application is basically a Rich Client framework which allows the same business logic and forms to have different front ends depending on customer requirements. The application is built by customers in a 4GL style development tool. The application is actually built at run time and the data is provided by the user through various services. Because I am building an FX program for a framework, I don't know when the user may execute a long running job when, for example, a button is pressed. I have full control over the retrieval and modification of data but not user interaction. I am therefore looking for a busy indicator that comes automatically when the main thread is waiting.
    Any help would be great!

    Hi guys and thanks for your answers
    I may have stretched the mark with "long running jobs" by these I mean a database query, a price calculation, order process etc. These are standard jobs that are issued on a Rich Client application. Basically I have a screen which will execute a query, and I want to give the user feedback when the query is executing so that he doesn't think that the application has hung. In Swing I have done this by creating my own event queue with a delay timer:
    public class WaitCursorEventQueue extends EventQueue implements DelayTimerCallback
        private final CursorManager cursorManager;
        private final DelayTimer    waitTimer;
        public WaitCursorEventQueue(int delay)
            this.waitTimer = new DelayTimer(this, delay);
            this.cursorManager = new CursorManager(waitTimer);
        public void close()
            waitTimer.quit();
            pop();
        protected void dispatchEvent(AWTEvent event)
            cursorManager.push(event.getSource());
            waitTimer.startTimer();
            try
                super.dispatchEvent(event);
            finally
                waitTimer.stopTimer();
                cursorManager.pop();
        public AWTEvent getNextEvent() throws InterruptedException
            waitTimer.stopTimer(); // started by pop(), this catches modal dialogs
            // closing that do work afterwards
            return super.getNextEvent();
        public void trigger()
            cursorManager.setCursor();
    }I then implemented this into my application like this:
    _eventQueue = new WaitCursorEventQueue(TIMEOUT);
    Toolkit.getDefaultToolkit().getSystemEventQueue().push(_eventQueue);Now each time the application waits for a specific time, the cursor will become a wait timer. This give s the user a visual feedback so that he knows that the application is working and not just hung. By doing this, I do not need to wrap each user callout in a timer. Much easier like this!
    I would like to implement the same in FX.
    Edited by: EntireJ on Dec 15, 2011 12:34 AM

  • Long Running Jobs based on average time of last 5 run

    Hi Experts,
    I need a query to find out the Long Running Jobs, based on average time of last 5 run.
    Could you please help me.
    Thanks in advance. 
    --------------------------------- Devender Bijania

    SELECT 
        [sJOB].[name] AS [JobName]
        , CASE 
            WHEN [sJOBH].[run_date] IS NULL OR [sJOBH].[run_time] IS NULL THEN NULL
            ELSE CAST(
                    CAST([sJOBH].[run_date] AS CHAR(8))
                    + ' ' 
                    + STUFF(
                        STUFF(RIGHT('000000' + CAST([sJOBH].[run_time] AS VARCHAR(6)),  6)
                            , 3, 0, ':')
                        , 6, 0, ':')
                    AS DATETIME)
          END AS [LastRunDateTime]
        , CASE [sJOBH].[run_status]
            WHEN 0 THEN 'Failed'
            WHEN 1 THEN 'Succeeded'
            WHEN 2 THEN 'Retry'
            WHEN 3 THEN 'Canceled'
            WHEN 4 THEN 'Running' -- In Progress
          END AS [LastRunStatus]
        , STUFF(
                STUFF(RIGHT('000000' + CAST([sJOBH].[run_duration] AS VARCHAR(6)),  6)
                    , 3, 0, ':')
                , 6, 0, ':') 
            AS [LastRunDuration (HH:MM:SS)]
          , CASE [sJOBSCH].[NextRunDate]
            WHEN 0 THEN NULL
            ELSE CAST(
                    CAST([sJOBSCH].[NextRunDate] AS CHAR(8))
                    + ' ' 
                    + STUFF(
                        STUFF(RIGHT('000000' + CAST([sJOBSCH].[NextRunTime] AS VARCHAR(6)),  6)
                            , 3, 0, ':')
                        , 6, 0, ':')
                    AS DATETIME)
          END AS [NextRunDateTime]
    FROM 
        [msdb].[dbo].[sysjobs] AS [sJOB]
        LEFT JOIN (
                    SELECT
                        [job_id]
                        , MIN([next_run_date]) AS [NextRunDate]
                        , MIN([next_run_time]) AS [NextRunTime]
                    FROM [msdb].[dbo].[sysjobschedules]
                    GROUP BY [job_id]
                ) AS [sJOBSCH]
            ON [sJOB].[job_id] = [sJOBSCH].[job_id]
        LEFT JOIN (
                    SELECT 
                        [job_id]
                        , [run_date]
                        , [run_time]
                        , [run_status]
                        , [run_duration]
                        , [message]
                        , ROW_NUMBER() OVER (
                                                PARTITION BY [job_id] 
                                                ORDER BY [run_date] DESC, [run_time] DESC
                          ) AS RowNumber
                    FROM [msdb].[dbo].[sysjobhistory]
                    WHERE [step_id] = 0
                ) AS [sJOBH]
            ON [sJOB].[job_id] = [sJOBH].[job_id]
            AND [sJOBH].[RowNumber] = 1
    ORDER BY [LastRunDateTime] desc,
             [LastRunDuration (HH:MM:SS)] DESC
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Trigger Alert for Long Running Jobs in CPS

    Hello,
    I am currently trying to make a trigger so that I can monitor the long running jobs in the underlying ERP. Can you help me on the APIs to use?
    Im trying to modify my previous alert - Chekcing of failed jobs
      // only check error jobs
      if (jcsPostRunningContext.getNewStatus().equals(JobStatus.Error)) {
        String alertList = "email address ";
        String [] group = alertList.split(",");
        for (int i = 0; i < group.length; i++) {
          JobDefinition jobDefinition = jcsSession.getJobDefinitionByName("System_Mail_Send");
          Job aJob = jobDefinition.prepare();
          aJob.getJobParameterByName("To").setInValueString(group<i>);
          aJob.getJobParameterByName("Subject").setInValueString("Job " + jcsJob.getJobId() + " failed");
          aJob.getJobParameterByName("Text").setInValueString(jcsJob.getDescription());
    Im trying to look for the API so I can subtract the system time and the start time of the job and compare it to 8 hours?
    if (jcsPostRunningContext.getNewStatus().equals(JobStatus.Error)) {    <--  Can I have it as ( ( Start Run Time - System Time ) > 8 Hours )
    Or is there an easier way? Can somebody advise me on how to go about this one?

    Hi,
    You can do it using the api:
    if ((jcsJob,getRunEnd().getUTCMilliSecs() - jcsJob.getRunStart().getUTCMilliSecs()) > (8*24*60*1000))
    This has the drawback that you will only be notified when the job finally ends (maybe more then 8 hours!).
    The more easier and integrated method is using the Runtime Limits tab on your Job Definition or Job Chain. This method can raise an event when the Runtime Limit is reached. The event can trigger your notification method.
    Regards Gerben

  • How to research a long running job from 3 days ago

    Re: How to research a long running job from 3 days ago
    Client called to say that a job that normally runs for 6 hours ran for 18 hours on 11/01. 11/01 was a Saturday, and end of month. The long running job writes to a log and I can from the log that that the problem started right around 10:43am. Every step
    before 10:43 was taking the normal amount of time. Then at 10:43 a step that takes seconds hung for 12 hours. After 12 hours the step finished and the job completed successfully.
    I looked at the SQL Log, Event Log, Job History (for all jobs). What else can I look at to try and resolve an issue that happened on 11/01/2014?

    It does execute an SSIS package.
    Personally I feel this as kind of bug in SSIS package but I am not expert in SSIS so I would move it to SSIS forum. Please update your question giving complete information what SSIS package does.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • This is urgent please help!  long running job in sm37 but not in sm66

    Hi,
    Can someone please help for an explanation as to why if you call sm37, you can see that the job is long running (example about 70,000 sec), but when you look at the PID where the job is running in sm66 it does not show 70,000 sec but only around 6,000 sec.
    Can someone please explain why?  Thank you very much

    For background processes, additional information is available for the background job that is currently running. You can only display this information, if you are logged onto the instance where the job is running, or if you choose Settings and deselect Display only abbreviated information, avoid RFC. In any case, the job must still be running.
    Regards
    Anilsai

  • Ccms monitoring - Long running job

    I checked in CMMS monitoring (RZ20) version ECC 6.0, there is no option to monitor long running background job.
    How to monitor long running background job using transaction RZ20?

    Hi,
    Check this [link|Re: How to monitor long running background job.;
    Thanks
    Sunny

  • Terminate long running job

    Hi All,
              I have a job that is scheduled to run every 5 minutes in our production environment. However , this job frequently exceeds a runtime of 5 minutes and as a consequence gets cancelled by the next running job. I need to find a way to cancel/terminate this job in the event that it exceeds 4m45s. I want to do this using another job which should be event trigerred, the event being the original job exceeding the runtime of 4m45s. Please suggest how I can do this. Thanks.
    Joyee

    I cant help it this sounds a little like caring about the symptoms instead of curing the disease.
    Isnt there a possibility to e.G. rework the coding of your first job to increase its performance and make sure it wont take more than 4 minutes and 45 seconds?
    Ok i´m not aware of the Problems you are facing, maybe your job has to wait for something and therefor cant be improved further. But still if there is any possibility to make sure its runtime wont exeed 5 minutes then this should be the way to go in my eyes.

  • Long Running Job SAP_XMB_PERF_AGGREGATE

    Hello,
    Above mentioned SAP job is running for days. I tried with changing parameters In integration engine administration SXMB_ADM for Category PERF there is a paramter DAYS_TO_KEEP_DATA.
    Created the Index too in Table SXMSPFAGG. But still the job is taking very long time.
    could any one faced same kind of issue and fixed with different solutions, pls
    FYI - My system -- SAP XI 3.1 SPS23.
    Thanks
    Vivekanandan

    Hello Nishwanth,
    Thanks for your reply.
    Job is running with the table SXMSPFAGG. But, i checked the table SXMSPFRAWH as mentioned in the SAP Note.(Index - AGG already exists.
    Even this index is required for the table SXMSPFAGG also.
    Could you please clarify me?
    Thanks
    Vivek

  • Long running job in BW source system - Urgent

    Hello,
    While loading BW data delta load for data source 0CO_OM_CCA_9 the
    corresponding R/3 job is taking the long time to complete approximately
    3 days.
    When we checked the Job log in the Source sytem we found the following
    entry
    "2 LUWs confirmed and 2 LUWs to be deleted with function module
    RSC2_QOUT_CONFIRM_DATA"
    and job is taking too much time to complete this task.
    Can you please help me out to resolve this issue at earliest?
    Best Regards

    Hi Venkata,
    When you check indexes in SE11 -> COEP -> Index 4
    You may see the status as "Active", but did u check the line below ?
    it should read
    "Index COEP~4 exists in database system"
    If it reads
    "Index does not exist in database system" , then the INDEX 4 is not active and not used.
    Cheers,
    Praveen.

  • Query regarding Calling   long run jobs

    I am Calling a java standalone program through a cronjob.
    In the program I have written logic that will create a CSV file.
    The problem is sometimes it takes long time to create the csv file, so I need to facilitate user some way of cancelling it. User will cancel it through UI.
    Can any body suggest what could be the best approach to implement it.
    Also I want multi threaded approach too because many users will request to create CSV file.
    Thanks

    How about this - create a thread for every user request and let it run in the background and when the file is generated just email the generated file to the user.
    Advantage of this is, if the user runs this through a web page, then this allows the user to just kick off that generation process and navigate to other pages. He doesn't have to stay on the same page until the file is generated.
    You can have another page where the user can see the list of threads running and can stop his thread if needed. This is done by invoking thread's interrupt() method. The contents of this page depends on the user's role.
    HTH.

  • Email configuration for long running jobs

    Hi Experts,
    We are using CPS Redwood for Job scheduling .Version is M33.92-68971
    Is there any configurtion which can do in CPS so that it will send email to users if a particular job runs for more than specified duration
    Say we keep a limit that if any job runs for more than 2 hours and not compelted it should send email to a particular DL
    Is this possible
    Please suggest
    Regards,
    Murali

    Hi Murali,
    You can achieve this through alerting.
    Under alerting -->Job definition Alert source->Create new Job definition alerts source.
    Fill the required details, Job pattern(U can give job name if the name if no other job name exist with similar pattern)
    Under status select running and put delay amount to 2 and  delay units as hours.
    Create job default alert escalation , alert source email(not required if u already handling alert through alerting gateway)
    Regards,
    Ravindranath Reddy

  • Long running jobs

    Hi all,
    DB version is 10.2.0.4
    I got the failed jobs list
    SQL> SELECT to_char(log_date, 'DD-MON-YY HH24:MM:SS') TIMESTAMP, job_name, status,error#,
      2     SUBSTR(additional_info, 1, 40) ADDITIONAL_INFO
      3     FROM dba_scheduler_job_run_details where status ='STOPPED' and JOB_NAME='DTL_JOB' and log_date > sysdate-1 ORDER BY log_date;
    TIMESTAMP          JOB_NAME                                                          STATUS                             ERROR# ADDITIONAL_INFO
    11-APR-11 10:04:53 DTL_JOB                                        STOPPED                                 0 REASON="Job slave process was terminated
    1 row selected.
    {code}
    what i need is how do i include if the job is running for more than half an hour i.e.  if log_date is more than half an hour ...how do i do that?
    baskar.l                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    How about adding:
    and run_duration >= numtodsinterval(30, 'MINUTE');Run duration: Duration of the job run
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_2048.htm#i1587156

  • Long running Job, but executes fine online

    Hi
      There is a program that is executing for close to 18 hours and still has not completed when executed background, however when the program is executed online, the program executes within matter of minutes.
      Please advise what might be causing this.
      Answers leading to solution will be rewarded points.
    thanks and regards,
    Arun

    Hi,
    Go to SM50
    Choose the process..
    In the table column check which table it is processing..
    Also then in the menu..
    Program/session -> program -> debugging.
    It will take you to in the debugging mode..
    Check where exactly it is running..
    Thanks,
    Naren

Maybe you are looking for

  • REGARDING CREATING ROUTING

    TELL ME LINKS REGARDING CREATING ROUTING.

  • Problem in establishing connectin to Oracle Database using TOMCAT-APACHE

    Hello can anyone help me i can't establish a coonection to Oracle Database eventhough i have set everything in my server.XML... I manage to connect to ACCES database but not Oracle... help me... here is the resource portion in my server.xml <!-- My F

  • E71-1 - No inbox/notification in active standby

    In the past days I have tried to configure any kind of information about my primary email account for the active standby/home screen. The email account works fine (imap-idle account), receiving emails works fine, but other than the @-symbol in the to

  • Import files with save copy to Microsoft Onedrive

    Now that Microsoft is offering Office 365 with unlimited Onedrive storage, I am planning to subscribe to the service. I would like to use the Onedrive space to be my tertiary backup storage for my photo files. (I have an external 2TB hard drive as th

  • How to reload image file with metadata

    Usually I capture pictures in RAW and import into Aperture library. A lot of them is not very good or very important, but after making rate, adding keywords, I want to output them from RAW to JPEG. And then, import back those JPEG images into the sam