long running jobs

Hi all

DB version is 10.2.0.4

I got the list of jobs that failed
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');

Race duration: duration of execution of the work
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/statviews_2048.htm#i1587156

Tags: Database

Similar Questions

  • How to stop a script of long-run, or leave in the first place?

    How to stop a longrunning script to stop or start in the first place. It does in itself. I don't know what it is. The only reason for which we know that it is running is because from time to time, we get a box popping up to say something like "this can't start/work due to a long-running script. Is this something that is important for our computor or is she something harmful, or simply unnecessary?

    Hi Anna-KarinEdvardsson,

    1 did you change on your computer before the show?

    2 are. what scripts you referring?

    3. when exactly the script starts?

    I suggest you to set the computer to clean boot and check how it works.

    To configure the computer clean boot, follow the steps in the below link:

    How to perform a clean boot

    Note: After the installation of updates to the clean boot follow step: 7 article to reset your computer to normal startup.

  • Error: BT Yahoo is not available due to a long-running script. How can I remove it?

    Original title: a long-running script

    Why constantly to make the message-' BT Yahoo is not available due to a long-running script.

    How can I remove it?

    Why constantly to make the message-' BT Yahoo is not available due to a long-running script.

    How can I remove it?

    a. on the Tools menu, click Internet Options.

    b. on the Advanced tab, click to select the checkbox disable the script debugger .

    c. click OK

    Error message: "a script on this page slows down Internet Explorer runs slowly.
    http://support.Microsoft.com/kb/175500/en-us

    How to resolve script errors in Internet Explorer on Windows computers

    http://support.Microsoft.com/kb/308260

  • I frequently get a pop up that says "' web page addresses do not cause of long-running script." "

    * Original title: pop ups

    I frequently get a pop up that says "' web page addresses do not cause of long-running script." "  It's maddening.

    It's all web sites that do, or just a specific or both? If its just one or two sites, try them as 'compatibility mode' - http://windows.microsoft.com/en-US/internet-explorer/use-compatibility-view#ie=ie-11

    If this does not help, it occurs to these sites if you run IE (assuming you're using IE) "mode without modules? ( [Internet Explore (No. Add ons)])

    If still no joy, then see if anything in this article allows --- https://support.microsoft.com/en-us/kb/308260#cause it is a long read but has a few things to try for script errors in Internet Explorer.

    The default base heal - use another browser like Mozilla Firefox - https://www.mozilla.org/en-US/firefox/new/

  • I want to uninstall my new imac CS4, because CS4 is no longer running.

    Hello, I want to uninstall my new imac CS4, because CS4 is no longer running.

    The problem is: before I sold my old mac, I put all programs in the trash, without no deinstalltion.

    The new mac is installed with a backup and so, if I want to run photoshop, par example, I get this:

    Bildschirmfoto 2015-02-13 um 15.42.57.png

    ... and so its impossible for me, uninstall CS4.

    Can someone help me?

    Excuase my bad English:)

    Error "Licensing has stopped working". Mac OS

  • Disable the input from the user during the long running process

    Hello

    I use JDev 11.1.1.4.0.

    When the user clicks on the 'save' button, I have to call a procedure stored prior to validation. This procedure takes about a minute to complete the race. My problem is, while the process is running, the user can click or change the values in the page. Is there a way to lock the page until the process is complete and ok to return control over the user?

    Thank you

    Bones Jones

    Another example:
    http://www.gebs.ro/blog/Oracle/Oracle-ADF-glass-pane-for-blocking-user-input-in-case-of-long-running-tasks/

    Thank you
    Nini

  • How can I you people lock users out of planning when you run jobs ODI?

    Is there a way to lock planning users, by running a file of DOS commands? Currently, I have to go manually in the Admin menu planning-> Application-> settings allow one owner to connect.
    I could write the script for updating a flag in the database repository indicator, BUT it would also require planning web app restart to follow.
    How can I you people lock users out of planning when you run jobs ODI to load data in Planning/Essbase app?

    I usually try and plan everything built out of opening hours. I agree it would be nice if there is a utility to change the status of the planning application.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Slow running on long animation job

    Hi people.

    I'm having problems creating a great movie in flash, latest version, only downloaded a couple of days.  It's a very simple animation, drawing on a photo.  I uploaded the photo to the scene and it all started out ok, every frame is a keyframe, I show the construction of the image frame.  I paint on a separate layer in the image, the picture will be deleted at the end.  To through frames first 100 or so he was kind and sensitive, I must now about 400 executives and it takes 5 seconds to add each new keyframe.  I'm guessing this has something to do with the fact that the photo has be attributed to each image, but also my animation, but I'll probably end up with several thousand frames and I can't wait 3 minutes to add each image.  Is there a better way to do it?  Anyone have any ideas?

    Thank you

    Tull.

    Time, it seems that there is a solution.

    1. use pencil, not the brush.  The pencil is interpolated unique points on the line or curve.  The brush is interpolated the outline using many, many more points, as much as 1: 200 in some cases.  This means that I can get to some 800 executives before the performance makes the entire process so painful I want to dig my eye with a spoon balls.

    2. when I start noticing the performance being a problem to create a new scene, copy in the last set of frames/layers like start frame, turning whatever it is static then in bitmap and take over from there.  The application seems to swap in and out of the memory scenes, the new scene feels almost like an empty project.

    I have not yet tested completely, but this seems to be the way to go.

    Thanks for all your Kglad of entry.

  • How to use the structures of the event for long-running tasks

    I created a state machine that scans a cluster of Boolean controls in a State of 'home '. Most of the States run a Subvi or two in ~ 100 ms or less.

    However, a State run for 10 seconds.

    The code works but the user interface is limited because the controls are outside the cluster because they provide inputs to the structure of State machine case but do not cause changes in the State. In other words, I all orders cluster stacked vertically on one side of the main panel and do not have the flexibility to move the controls to the more intuitive positions on the Panel.

    My question: How can I convert this code in a structure of the event and keep this long term 'event' and prevent that the operator by clicking another button event during the execution of this event?

    Thank you

    You say you have controls outside of your main code... You should really put these inside and manipulate them in a State of your state machine is initialized. This allows you to make changes to the code easier and limits of line entering your outside loop.

    You can do different things to lock the user.

    You can disable specific controls so that they can't be clicked or edited.

    You can use the palette of the mouse to define the busy cursor and disabled again once finished, I do this a lot during treatment when my code something loads the user just clicked.

    One of my favorites is to set a Boolean value in your data that passes through you event titled structure "disable mouse." When the value is True, a mouse down event will effectively reject the event, clicking on disable. I also added an event mouse move where if the bool disable the mouse is set to True, it moves an indicator of string with the mouse by telling the user why it is disabled.

    If you want more specific suggestions, I suggest to post an excerpt of your code, or attach your screws, so that we can better help you.

  • Long running newsletter

    My Newsletter is running long. Just wanted to see if someone has encountered this problem during the development of a newsletter - I have a lot of content and it runs more than a normal e-mail page in Eloqua. How can I get the email to adjust the size and incorporate all the content?

    Hello

    I think that is the best solution for enewsletter long;

    1. make sure that you don't have more than 10 items in your newsletter.

    2. keep the content short & brief but have a button "Read more" to direct to your web page to read detailed information.

    3. This will help generate good traffic to your site & high readability to your newsletters.

    4. you can increase the page size of your newsletter by clicking Tools > icon page style > and increase the width & height adjustment for the page.

    By following the above with the correct target segmentation, I got great rates from 70%.

    Good luck!!

  • Long-running query

    I have a query that has been running forever. I ran this query yesterday and he finished in 100 seconds (which is normal for this scenario). But today it's forever. The plan of the explain command seems good and I made sure all the tables used in the query have updated its stats. Can someone help me please on other factors should I look to find the root cause of this long term query.

    OS: Windows 7

    Database Oracle 12 c Enterprise Edition Release 12.1.0.2.0 - 64 bit Production

    Hi Vpolasa,

    You can diagnose it the problem with help from under article by arup nanda: -.

    Article from tech s/n

    Thanks and greetings

    Maxou

  • Long run Insert Session

    Hello

    We have a long Insert session which worked for about 20 hours and kill him will be an issue as it will take a long time.

    This session is being Informatica and DB version is 11.2.0.4.

    Is there something that can be done to increase the flow of DB?

    There are no other sessions outside this on the DB.

    Kind regards

    VN

    If the INSERT is running right now and you don't want to re - start, your options are limited. The advice that you have until this all assumes that you stop and try again.

    It is possible that your redo log is not properly configured. How many times are you open a session of switching? I've seen cases like this, where the paper switches were all a few seconds. If so, add new groups that are at least a hundred times as large and drop the existing groups.

    Another is that your LMS is not properly configured. Look at memory advisors, and if you have room for manoeuvre (think sga_max_size) adjust accordingly.

    If your data files are continuously extending through the auto expand the mechanism, which will slow down the process. Solve the problem by adding big data files to the tablespace (s) relevant now.

    That's all I can think of at this time. It must be worth trying before you kill a process that ran so long already. Good luck.

  • Running & job schedule

    Hi all

    I created a job.

    1. I want the job to run every Saturday and Tuesday at 01:00.

    2 Whan I'm creating a job at 09:00 one and declare in the day of departure schedular weekly running at 12:00. What is the first time that the job will run. the work will take place twice? at the time created and time or only on time?

    Thanks in advance

    Naama

    Set repeat_interval FREQ = DAILY; BYDAY = WEDNESDAY, SATURDAY; BYHOUR = 1

  • running job after the rebound of database

    Hello!
    I have the following scheduled jobs:

    dbms_scheduler.create_job ('Task1',
    job_action = > "PROC"
    repeat_interval = > ' FREQ = DAILY; BYHOUR = 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23; BYMINUTE = 2, 12, 22, 32, 42, 52; BYSECOND = 1',
    job_type = > 'Procedure_stockee', active = > TRUE);

    dbms_scheduler.create_job ('JOB2',
    job_action = > 'PROC2,
    repeat_interval = > ' FREQ = DAILY; BYHOUR = 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23; BYMINUTE = 4, 14, 24, 34, 44, 54; BYSECOND = 1',
    job_type = > 'Procedure_stockee', active = > TRUE);

    At about 8 o'clock in the morning, the database rebounded with the normal start and stop.
    After that I noticed that the 2 jobs have been run at 08:06.

    But this isn't the time that they were supposed to be run from the Scheduler.
    Later execution was very good.
    Can someone help me to explain what's happened?
    Thanks in advance!

    When DB was the time for the work performed by definition you can pass. SO after DB Planner departure said that job miss his race and run it immediately.
    Check dba_scheduler_job_run_details for work of Miranda.
    In the column req_start_date is date when work needs to run, in the column ACTUAL_START_DATE is date of when this performance of work really begin.
    To avoid this behaviouryou can set attribute job SCHEDULE_LIMIT. If missed work led by SCHEDULE_LIMIT then more, then this race is skiped.

  • How to run jobs

    HI friends,

    In my ODI project, I have 15 job offers in a single package.
    Assume that the number is failure of the work of the 5th, then I have to restart the 5th work.
    But it is possible in ODI over (any stream of work or package) can
    If the failure of the work of the 5th number then its restart automatically 5 jobs.

    Thank you
    Lony

    Hi lony

    If you use a package to perform all the tasks then you need not worry because a session on reboot it starts from the last task which could not run. If multiple interfaces are chained and only the last performs validation, whereas they should all be restarted because the transaction is running during several interfaces. Otherwise, as I said, you can use your logic.

    Thank you

Maybe you are looking for

  • should I show my name instead of the Skype number

    How can I get Skype show my name instead of number when some receives a call from me?

  • Thunderbolt W540 port

    I have a W540 with a Thunderbolt port and a 34 c HP Envy monitor that has HDMI and DisplayPort. I tried a mini display port to display port but W540 did not recognize the monitor, that is to say nothing happened. I also tried mini display port to hdm

  • T430s Windows 7 not genuine

    Hello I bought a Lenovo T430s, 2355-CTO type, it is still in warranty (already checked it), and for the last 20 days, I get "Windows is not genuine". It work perfectly during the last 4 months, but all of a sudden (I guess an update of Win) starts to

  • Silverlight in MAX errors

    Hi all, I have some weird parser errors Max after update to the last DAQmx and Ethernet industrial EtherCAT drivers on my controller SMU and chassis: Finally some other errors before crashing: The rest of the software on the system looks like this: A

  • Terminal Services in windows sbs 2008

    How re-insall Terminal Services in Windows SBS 2008? We weren't able to connect these days. Thank you.