Rerun job based on job output pattern match?

We sometimes get jobs completed abnormally when a SQL operation is the victim of a deadlock.  We would like to parse the output to search for the "deadlock victim" exact string in the error message, and rerun the failed job if so.  Is this possible?  I have an event setup and can capture the job output, but is there a way to search through it and rerun the specific job that failed?  Thanks.

You can also create a new Job Event and select as an action Rerun, which is listed in the available Actions at the end of the list, and use the event trigger "job Completed Abnormally"  This available action it is already included when you install Tidal "Out of the box".  However, by using this action, the jobs will rerun automatically right away until there is a "Job Completed normally" condition or you select a Maximum Reruns count when you build this event.  This is available of TES 5.3.1 and TES 6X.

Similar Messages

  • DIO Pass or Fail Tests: LabVIEW would have to determine the expected result or results (1 or 2 of a possible 25) based on the output pattern send out (1 of 65K).

    I am trying to come up with a plan to write a LabVIEW VI to do the following test. Can you give me a few ideas how to do this in LabVIEW. I am a new to LabView. I think I how to read and write I/O ports and do comparisons. I need a little guidance on the error checking. In simple terms the test will go like this:
    I have 16 digital inputs and 16 outputs.
    The 16 outputs are turned on in a specific pattern (i.e. 1001000101011101) and then the 16 inputs (i.e. 1000101111111111) are read in after a time delay. The inputs are checked to see if they match the expected results. If they do it's a pass if not it's a f
    ailure. This seems pretty straightforward. And I think I have an idea how to do it. Here's the problem. The inputs are changed sequentially so that all possible combinations are tried. The test needs to determine if the resulting input pattern is correct based on the outputs that were sent out. 16 outputs give 65K possible tests. For each tests there would be 1 or 2 possible results with a total of 25 results for the entire 65K possible tests. LabVIEW would have to determine the expected result or results (1 or 2 of the 25) based on the output pattern send out (1 of 65K). Then it would have to compare the actual input pattern received to see if it's a pass or fail?
    Any ideas how I can approach this?

    The 16 outputs are simulating inputs to the device under test, (simulating remote switches and contacts). The object of the test is to test every possible combination to ensure that nothing unexpected happens at the output. The device under test is a logic motor control system and we want to make sure (among other things) that we don’t start or stop the motor when its not suppose to. How can only two tests do that?
    I think you are describing how to create an array with the results. But I still don’t know how to determine what the result should be and if it is correct.
    I’ve identified 25 possible valid states the motor controller can be in.
    I’ve also identified the correct outputs that determine each of the 25 states.
    I’ve also
    identified the possible valid states you can go to from each (previous) state, You can only get to a valid new state from a previous state if the right combination of inputs is applied (we hope).
    If you know what state you are in when start and you know the valid states you can go to and the inputs required to get there, you should be able test the system against that. You verify this by checking the outputs against what they should be. With 65K possible inputs combination, checking them all manually would be quite is a task. Putting this into LabView is my task.

  • Job and salary for that job based on the department!!!

    Please, can somebody help me with this. I'm facing some challenges getting the required result with my queries.
    Here's what am trying to do:
    A query to display the job, the salary for that job based on the department number, and the total salary for that job, for departments 20, 50, 80, 90, assuming the schema in use is the hr schema. The job should be distinct, no duplicates.
    Thank you for your anticipated answers.
    I really appreciate your replies in advance.
    T.O

    846641 wrote:
    Please, can somebody help me with this. I'm facing some challenges getting the required result with my queries.
    Here's what am trying to do:
    A query to display the job, the salary for that job based on the department number, and the total salary for that job,What do you mean by "the salary for that job"? It sounds like you want something besides the total salary (which is what the SUM function provides). What is that other something? The avgerage salary (that would be the AVG function)? The smallest salaary (MIN)? The biggest salary (MAX)? The number of rows that have a salary (COUNT)? If you can explain what you want, someone will help you get it.
    for departments 20, 50, 80, 90, assuming the schema in use is the hr schema. The job should be distinct, no duplicates.GROUP BY automatically gets distinct results for each of the GROUP BY expresssions, so there's no need to say SELECT DISTINCT . The previous solution could be better written as:
    SELECT    job_id
    ,       SUM (salary)     AS total_salry
    ,       department_id
    FROM       hr.employees
    WHERE       department_id     IN (20, 50, 80, 90)
    GROUP BY  department_id
    ,            job_id
    ORDER BY  department_id
    ,            job_id
    ;The output that this produces from the Oracle-supplied hr.employees table is:
    JOB_ID     TOTAL_SALRY DEPARTMENT_ID
    MK_MAN           13000            20
    MK_REP            6000            20
    SH_CLERK         64300            50
    ST_CLERK         55700            50
    ST_MAN           36400            50
    SA_MAN           61000            80
    SA_REP          243500            80
    AD_PRES          24000            90
    AD_VP            34000            90I hope that's what you wanted.
    If not, post the results you do want from this same table. Explain how you get those results.
    Always say which version of Oracle you're using. It might not matter in this case, but why take a chance?

  • Schedule Jobs based on Resource

    I want to schedule jobs based on server resource , If resource is low it should autometically decide to stops some jobs and if resourse is high then it should autometically increase jobs for better output.
    Is it possible or I can write some program to handle this. How to know about server resource after running jobs.

    Hi,
    First you should note that the Scheduler already does this automatically - if the server is more loaded then fewer jobs will be scheduled to run at the same time.
    If you want finer control over this you might want to look into setting up Scheduler windows . A window is a scheduled period of time when a certain resource plan is in effect. In that resource plan you can limit the number of sessions or the amount of cpu dedicated to a particular resource group. You can then put jobs into different resource consumer groups. This allows you to fine-tune how many resources should be allocated to different groups of jobs during different times during the day.
    Hope this helps,
    Ravi.

  • How to schedule a background Job based on events

    Hi,
    We are on 4.6 C.
    We have a background job that has two ABAP programs.
    We need to start the 2nd ABAP program only after the first one has run successfully.
    If the second ABAP program does not run, the the job should have a status "FINISHED".
    Help appreciated.
    Thanks
    Mala

    Hi,
    How to schedule a background Job based on events,please refer to the follow SAP help:
    You can use events that have already been defined, or you can create new events for scheduling background jobs.
    If you wish to use new events, do the following to implement the event scheduling:
    Define and transport the event as a user event with transaction SM62.
    You must define only event IDs; event arguments are not defined in the R/3 System. Instead, you specify event arguments when you schedule a job to wait for an event and when you trigger the event.
    If you define a new event, you must also transport it to your production systems. The event transaction does not have a connection to the transport system. Instead, you must create a transport request for the event yourself.
    Do this to transport an event:
    Create a transport request.
    Start the editor in the transport request and enter the following:
    R3TR TABU <table name> where table name is BTCSEV for a system event ID, BTCUEV for a user event ID.
    Press F2 with the cursor on the table name to call up the screen for specifying the table entries to transport. In this screen, enter the event ID’s that you have created.
    Save and release the transport request. Ensure that it is imported into your production system(s).
    To trigger an event, add:
    – the function module BP_EVENT_RAISE to your ABAP program, or
    – the program SAPEVT to your external script, batch file, or program.
    When your programs execute these keywords, an event will be triggered in the R/3 background processing system. The event-based scheduler is started immediately. It in turn starts all jobs that were waiting upon the event, subject to normal background processing restrictions, such as the requirement that the job has been released to start.
    Schedule the jobs that are to run when your events are triggered.
    You can schedule jobs for one-time start or to be started whenever an event is triggered.
    Regards,
    collysun

  • Who knows how to output some text once labview detects something I want using pattern matching(V​ision assistant)​?

    who knows how to output some text once labview detects something I want using pattern matching(Vision assistant)?
    The text is something like"Yes, this is a coin"
    Thanks!

    I attached a SubVI which I used to place an overlay next to a Pattern, found by a Pattern Match before:
    As you can see, you simply pass the image reference and the Array of Matches to the VI along with the String you want to have as an overlay next to the Match.
    I also modified your VI a bit, but didn't test it. I created an Array of clusters, each elment containing the template path along with the respective text.
    Please note that this is just a hint!
    Christian
    Attachments:
    suggestion.vi ‏146 KB
    Overlay_Txt.vi ‏24 KB

  • Security to schedule a broadcast job based on datachange

    Hi All,
    I am attempting to schedule some broadcast jobs based on "Execution with DataChange on the InfoProvider".  If I login with my normal id and click the schedule button in a Broadcast job, I do not see this option.  I only see the Direct scheduling option.
    However, when I login with an id that has "SAP_ALL", I see the option for "Execution with DataChange....".  Can anyone tell me what security I am missing?  Is it related to broadcaster?  Could it be that I can't see the event that is triggered to flag a datachange?
    Thanks in advance.
    Rodney

    Hi Rodney,
    You need the following Auth:
    S_RS_BCS with RS_EVTYP (Event Type) as DC (for Data Change). You can further specify the name of the InfoProvider in the RS_EVID (Event ID) if required.
    Hope this helps...

  • JOB Based Roles

    Hi,
    We are planning to go for Job Based roles design in our SAP (ECC,BW & Portal)
    Can any one please give me an idea of how the process works
    Thanks in advance

    Hi KT
    The whole concept around assigning a Business Roles is to provide a specific set of functions to a specific user or user group.
    There should not be any reason for a User to log off from one role and then log in with another.
    If for example you want a user to have some Sales Professional access as well as some Service Professional access then you would copy Sales Professional Role to you own custom role, remove the Sales Professional attributes that you do not want, then add in the required Service Professional attirbutes required.
    The WEB UI views can then be configured for that particular Custom role you have created.
    Hope this helps
    Arden

  • How to use Labview to output the coordinates from Pattern Matching result

    I tried to add some labview commands into the vi program created by IMAQ Pattern Matching scrip to output the coordinates of a target point found in Pattern Matching because i need to do some calculations for the point coordinates and I don't want just to read the values from the IMAQ results on the monitor. Does anyone can help me? Thank you.
    Attachments:
    PatternMatching1.vi ‏84 KB

    I have posted replies to your other postings with your same question, and continue to recomend that you look at some of the LabVIEW tutorials.
    I modified the attched program such that it would index the arrays of match information returned and then unbundle the X and Y features of the match and add them to gether as an example of how to access the data programatically.
    I hope this helps.
    Regards,
    Amaury Rolin
    NI Applications Engineer
    Attachments:
    PatternMatching_mod.vi ‏88 KB

  • 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

  • Sql agent jobs based on the database and the user

    Dear All,
    I have a requirement of configuring an user who should only have access to one database out of all and also able to create, view and modify sql agent jobs only for the allowed database. For allowing to see the selected database to particular user I have
    granted permissions as per below,
    create LOGIN mhtc WITH PASSWORD='mhtc', CHECK_POLICY = OFF;
    USE master;
    GO
    DENY VIEW ANY DATABASE TO mhtc;
    USE master;
    GO
    ALTER AUTHORIZATION ON DATABASE::MHTC TO mhtc;
    GO
    but user not able to see sql agent jobs so I want to give necessary permission to this user to view,create and modify sql agent jobs only in allowed databases. Basically I want to separate users from each database and separate sql agent jobs based on the
    user and database.
    Your expert advices are highly appreciated.
    Thanks,
    Manjula

    I want to give necessary permission to this user to view,create and modify
    sql agent jobs only in allowed databases.
    Hello Manjula,
    SQL Server Agent Jobs are not created / dedicated for a user database. The Jobs are store in System database "msdb".
    See
    Implement SQL Server Agent Security for Details about required permissions.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • I want to write onto port 3 based(using a buffer) on a pattern match trigger from port 2. How can I code this?

    I have to check for a pattern match from port 2 and based on this trigger I have to write onto port 3(buffered) as fast as possible. So there needs to be a buffered O/P from port 3. How to code such that the pattern match trigger from port 2 triggers the trigger config.vi for port 3?

    Bheem,
    Unfortunately, you can not share the start trigger with another operation when using the pattern match operation as a trigger. The only way to share a start trigger is if you are triggering on the rising or falling edge of a digital signal. This is a limitation of using the pattern match operation as a start trigger.
    Regards,
    Todd D.
    NI Applications Engineer

  • Finding pattern match based on Octal characters

    I have Octal values of various characters. For example:
    € = Octal value 128
    I need to use the Octal values of various extended ascii characters and based on these values I need to do a pattern search.
    According to the pattern class document, I can represent octal as:
    patternStr = "\\o128";
    http://download.oracle.com/javase/1....x/Pattern.html
    Pattern p = Pattern.compile(patternStr);
    Matcher m = p.matcher("aaaaab€aaaaa");
    boolean b = m.matches();
    If I do the above, then the match is not found. Can anyone tell me why? What is that is wrong in this code.
    Mark

    Effectively the same question as Pattern match on hex code where there's some discussion, and possibly a solution.
    Please post your questions only once.

  • Job is "Waiting for Output"

    An RMAN backup-arc job is scheduled to run every day will fail to run after a week or 2. The status of the job shows as "Running", however, the command step in the logs shows that the job is "Waiting for Output". At this point the job stops running and will not execute anymore. This happens with other jobs as well.
    There is BUG (4349948) which has been open for a year with no results.
    Does anyone know a work around? How do I reliably run repetative jobs if I cannot count on OEM?
    The job was scheduled through the Recovery wizard in OEM Grid 10.1.0.4

    Thank you for the info. I do not have this EV defined on my Windows2003 server and I did a search of the oracle documentation 'EMAGENT_RECYCLE_DAYS' and found nothing. I am going to try it and hope I do not have to re-create the RMAN Jobs each week. If so I think I will fall back to Windows Task Manager and batch jobs.
    Thanks again.

  • Can I use differnet patterns for a "digital pattern match start trigger"

    Hello,
    Currently I would like use different patterns for a trigger the PCIe-6537 board to start capture data, for example, two patterns: 1101 and 1100 in digital IO lines line0:3, whenever one of this two pattern happens, start capture.
    It seems like "digital pattern match" in DAQmx trigger can use one pattern only.
    thanks!

    Hi tt_ni,
    Pattern I/O only allows the acquisition
    based off of one pattern. This is a “limitation” of the hardware based on the
    registers being set a certain way and monitoring a change from that. You could
    add external circuitry to OR your patterns and based the pattern I/O off of the
    output of that external circuitry. The other option is to look at an FPGA
    option.
    Mark E.
    Precision DC Product Support Engineer
    National Instruments
    Digital Multimeters (DMMs) and LCR Meters
    Programmable Power Supplies and Source Measure Units

Maybe you are looking for

  • How do I get my Canon MX860 back online so I can print wirelessly on my Mac OSX 10.8.4?

    I recently installed a new and bigger Time Capsule on my MacBook Pro system and since doing so, I lost the ability to print wirelessly on my Canon MX860 printer.  I am using Mountain Lion OSX 10-8-4. I note Pahu discussion in another group on this sa

  • How to create text buttons that link to video?

    I've finally gotten around to trying DVD SP, and even though I read the whole manual, it's not at all clear if, or how, you can create text buttons that link to the video you want to play, without displaying a clip of that video in the button itself.

  • No audio after upgrade to iTunes 7.1.1.5 on XP

    I ran iTunes-6 until I got a new 80GB iPod which requires version 7. iTunes-6 ran fine; after the upgrade I have no sound although I can watch the play progress bar move as sounds play; sync to the iPod works fine. During the upgrade iTunes threw thi

  • Which Router to choose--Linksys ea4500 or Airport Extreme

    I originally bought an ea4500 Linksys router.  I had some issues that I thought were due to the router.  I then purchased an Apple Airport Extreme.  I found that the same issues exist and that the problem is probably my computer setup.  I now have to

  • Outlook clients unable to connect to Exchange / Windows user profile

    Exchange 2010 Outlook 2010/2013 I've seen a dozen or so computers in the last few weeks with this problem. The user suddenly cannot connect to the Exchange server in Outlook. (Sorry, I don't have specific error messages for this part.) If I try a rep