Script to find concurrent job that ran long within a time range

Oracle Apps:12.1.1
DB:11.1.0.7
OS:Linux RedHat 86x64
All,
Could anyone please share the Script to find concurrent job that ran long in a particular day say between 3pm - 4pm in an hour's time range specifically.
Thanks for your time!
Regards,

try
SELECT request_id,     
       to_char(actual_start_date, 'dd-MON-yy hh24:mi:ss') begin_dt,
       to_char(actual_completion_date, 'dd-MON-yy hh24:mi:ss') end_dt,
       substr(to_number(((actual_completion_date - actual_start_date) * 24) * 60),
              1,
              5) time_in_min,
       program      
  FROM fnd_conc_req_summary_v a
WHERE (
       actual_start_date >  to_date('30-11-2011 08:00', 'dd-mm-yyyy hh24:mi')
          and
       actual_start_date <  to_date('30-11-2011 08:00', 'dd-mm-yyyy hh24:mi'))
       )

Similar Messages

  • Finding a job that compresses a cube each day

    Hello All,
    A cube gets compressed each day - all packets. I am trying to find the job that runs daily that does this so I can change it. Please advise on where I should go to find the job, and how do I tell if I have found the right job?
    Many thanks and kind regards,
    Keith Kibuuka

    hi Keith,
    you can find the job name in infocube manage->collapse->
    job name is BI_COMP*
    if you are using process chain, you have to identify which process chain bi_process*.
    hope this helps.

  • How to find the urls that are longer than 260 characters

    Hi
    I'm getting an error using Restore-SPSite thats most likely caused by URL's longer than 260 characters. How can I find out which URL's are too long? It's a huge site collection so it's not an option to search manually.
    Regards
    Jakob

    check this blog, allows you to take an inventory of all files in your web application and flag those files where the path (or URL) is longer than 260 characters.
    Locating files and pages with URLs that are too long for SharePoint
    Also check this: http://social.technet.microsoft.com/Forums/en-US/881d62e6-08c3-43b6-a9f1-96161ffa0201/how-to-write-a-powershell-script-to-find-the-url-path-length-of-all-the-files-and-folders-in?forum=sharepointdevelopmentprevious
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Trying to find a job that is failing

    Hi,
    I'm getting the following error in an alert log for one of our databases:
    ORA-12012: error on auto execute of job 139498
    ORA-27370: job slave failed to launch a job of type EXECUTABLE
    ORA-27300: OS system dependent operation:accessing execution agent failed with status: 2
    ORA-27301: OS failure message: The system cannot find the file specified.
    ORA-27302: failure occurred at: sjsec 6a
    ORA-27303: additional information: The system cannot find the file specified.
    Doing some research it appears it's trying to use the DBMS_SCHEDULER but the Windows service is not enabled or configured. I'm trying to find job 139498 but it doesn't seem to exist - can someone please tell me how I can find this job?
    Thanks
    Adam

    The query I need to use was this:
    SELECT o.name object_name, u.name object_owner FROM
    obj$ o, user$ u WHERE
    o.obj# = 139498 and o.owner# = u.user#;
    Thanks
    Adam

  • Cancelling PeopleSoft job if running longer than max time

    We have some PeopleSoft jobs that we want Tidal to automatically cancel if they are still running after 2 hours, then automatically set the job to Completed Normally so the next job in the jobstream will start running.  We tried using a Job Event triggered by "Job running longer than its maximum time", with Selected Action = "Set To Completed Normally".  The problem is that it sets the job to completed normally on Tidal, but the job continues to run on PeopleSoft.  In other words, it's not cancelling the job.
    Next, we changed the Selected Action to "Cancel/Abort".  This worked in terms of cancelling the job on PeopleSoft, but we can't figure out how to automatically set the job to Completed Normally on Tidal after the job is cancelled.  There is an Event Trigger for "Operator cancelled the job", but apparently the event isn't triggered if Tidal cancels the job.  We also tried using Event Trigger = "Job completed", but that didn't work either since apparently Tidal doesn't consider a job in Aborted status as completed.
    Anyone have any other ideas on how to automatically cancel a PeopleSoft job and then automatically set the Tidal job to Completed Normally?  Thanks.

    Hello Richard,
    I would use the sacmd (windows) or the tesmcmd(Unix) to interact with the given job so to set it to whatever status you want ;
    - You have to first let the event Cancel/Abort it if running longer than expected by using the built in function (Cancel)
    - Then using the same event you need to trigger another job action that has the above tesmcmd command to set the job to Normally completed; for this you may need to create a new job that calls the tesmcmd/sacmd and then use jobset command.
    now you need to create a job action that triggers that job which will allow you to override the command parameters especially the RunID of your failed job.. hope i was able to get it right unless if you already figured that out.
    -rami

  • All the data that is equal within a certain range to be defined as equal in array

    Hi, I need to get some help!
    In edge detection, I get the result of all edges found in an array. When two or more edges is found close to eachother, I need to get them defined as one edge found.
    As an example, if the VI locate 10 edges, but 5 of them is close to eachother within a certain range, there will be only 6 result on the output.
    I'm quite new to Labview and will appreciate any sort of help

    I think I need help to solve the problem from scratch. As you can see in the picture it has been detected several edges in the middle of the picture. To the right in the picture you can see the array showing the Y-position of each edge detected. I need all edges that is within 30 pixels to eachother to be considered as one edge, and then compute the new array showing the position of the edges. 
    Attachments:
    example.JPG ‏95 KB

  • "Who ran me" - how to determine the name of the dbms_scheduler job that ran me

    Hi Community
    I can see plenty of examples out on the interweb which shows how you can use dbms_utility.format_call_stack to find the hierarchy of procs, functions and packages that got me to a particular point in my code.
    For example, if proc (procedure) A calls proc B, which in turn calls proc C, in the code for proc C, I can query the call stack to find out that proc C was called by proc B which in turn was called by proc A
    However, I want to extend this further.
    For example, using the example above, if proc A in turn was started by a dbms_scheduler job, I want to determine (within proc C) the name of the dbms_scheduler job which started the whole process off.
    The reason I want to do this is that I have inherited a (massive) system which is undocumented. In many places within the code, email alerts are sent out using a custom "MAIL" package to designated users (now including me) when certain long-running processes reach certain milestones and/or complete.
    I have added to the custom "MAIL" package a trailer on the mails to show the call stack. I also want to show the name of the dbms_scheduler job which started it all.
    Over time, this info may help me in building the "map" of how the whole undocumented system hangs together and in the meantime, to assist in troubleshooting problems
    Looking forward to hearing from you
    Alan

    Use USER_SCHEDULER_RUNNING_JOBS or DBA_SCHEDULER_RUNNING_JOBS there is column SESSION_ID and when you know your session ID build query is very simple.
    select owner, job_name
    into ...
    from dba_scheduler_runnig_jobs
    where session_id=sys_context('USERENV','SESSIONID');
    You must declare local variables in PL/SQL procedure to read owner and job_name into them. Second thing, you must handle possible exception no_data_found than can be raised when procedure is not run from job.

  • How to check why some of the Cron jobs didn't ran at the scheduled time?

    This is my first question ever on the forum. Hope I'm following the format of posting the thread.
    I could find a similar query on the forum but couldn't find the exact answer.
    Versions:
    Oracle: 11.2.02.0
    Linux: Linux xxxxx 2.6.32.12-0.7-default #! SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LINUX
    In our crontab there are lot of scripts that ran at the scheduled time. Around 3 reports didn't ran at the scheduled time today?
    There is no error or some error mail saying that those reports got failed. They just didn't ran at that time.
    How to find out why those jobs didn't ran?
    Is there anything like cron log or something like that to trace it?
    Please guide me. Thanks in advance.

    977789 wrote:
    This is my first question ever on the forum. Hope I'm following the format of posting the thread.
    I could find a similar query on the forum but couldn't find the exact answer.
    Versions:
    Oracle: 11.2.02.0
    Linux: Linux xxxxx 2.6.32.12-0.7-default #! SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/LINUX
    In our crontab there are lot of scripts that ran at the scheduled time. Around 3 reports didn't ran at the scheduled time today?
    There is no error or some error mail saying that those reports got failed. They just didn't ran at that time.
    How to find out why those jobs didn't ran?
    Is there anything like cron log or something like that to trace it?
    Please guide me. Thanks in advance.Since this question has nothing to do with Oracle Databases and everything to do with Linux functions and usage, it would be better asked in the [url https://forums.oracle.com/forums/forum.jspa?forumID=135]Linux Forum
    When posting there, you can save yourself a bit of time by going ahead and showing the line from crontab for a report that "didn't run", and perchance the script itself. Best enclosed in the / tags to preserve formatting.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Script to find missing library references

    When readline5 came out I decided to write a quick shell script to find any binary that references readline4.  Then I generalized it:
    #!/bin/bash
    # 2004/08/22 K. Piche Find missing library references.
    ifs=$IFS
    IFS=':'
    libdirs="/lib:/usr/lib:/usr/X11R6/lib:/opt/gnome/lib:/opt/qt/lib:/opt/mozilla/lib/mozilla-1.7:/opt/kde/lib"
    extras=
    # Check ELF binaries in the PATH and specified dir trees.
    for tree in $PATH $libdirs $extras
    do
    echo DIR $tree
    # Get list of files in tree.
    files=$(find $tree -type f)
    IFS=$ifs
    for i in $files
    do
    if [ `file $i | grep -c 'ELF'` -ne 0 ]; then
    # Is an ELF binary.
    if [ `ldd $i 2>/dev/null | grep -c 'not found'` -ne 0 ]; then
    # Missing lib.
    echo "$i:"
    ldd $i 2>/dev/null | grep 'not found'
    fi
    fi
    done
    done
    exit
    I successfully used it to find readline4 usage by guile and jack, and other older library references in other packages.  Hope the devs or somebody finds it useful.  And yeah it could pull the lib dirs from ld.so.conf or search the whole system but it is quick and dirty...
    PS. Without the /dev/null redirects ldd reports tons of libraries without the exec bit set.  Take it out if you want to see that stuff.

    so simple and SOOO USEFULL!!!!!!!
    thanx a lot, for this script :-)
    i detected also some more trouble:
    e.g.:
    /usr/bin/xml2ps:
    libgtkmm-2.0.so.1 => not found
    libgdkmm-2.0.so.1 => not found
    libatkmm-1.0.so.1 => not found
    libpangomm-1.0.so.1 => not found
    libglibmm-2.0.so.1 => not found
    /usr/bin/passepartout:
    libgtkmm-2.0.so.1 => not found
    libgdkmm-2.0.so.1 => not found
    libatkmm-1.0.so.1 => not found
    libpangomm-1.0.so.1 => not found
    libglibmm-2.0.so.1 => not found
    /opt/kde/bin/khangman:
    libknewstuff.so.1 => not found
    /opt/kde/bin/kpalmdoc:
    libreadline.so.4 => not found
    /opt/kde/bin/kpilot:
    libreadline.so.4 => not found
    /opt/kde/bin/kstars:
    libknewstuff.so.1 => not found
    /opt/kde/bin/klettres:
    libknewstuff.so.1 => not found
    /opt/kde/bin/kpilotDaemon:
    libreadline.so.4 => not found
    /opt/kde/bin/korganizer:
    libknewstuff.so.1 => not found
    libknewstuff.so.1 => not found
    /opt/gnome/bin/gnome-pilot-make-password:
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    /opt/gnome/bin/gpilot-install-file:
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    /opt/gnome/bin/gpilotd-session-wrapper:
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    /opt/gnome/bin/ssconvert:
    libssl.so.0.9.6 => not found
    libcrypto.so.0.9.6 => not found
    /opt/gnome/bin/gnumeric:
    libssl.so.0.9.6 => not found
    libcrypto.so.0.9.6 => not found
    /opt/gnome/bin/gpilotd-control-applet:
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    libreadline.so.4 => not found
    /usr/lib/xine/plugins/xineplug_inp_dvdnav.so:
    libdvdnav.so.1 => not found
    libdvdread.so.2 => not found
    libxineutils.so.0 => not found
    libxine.so.0 => not found
    /usr/lib/ruby/1.8/i686-linux/readline.so:
    libreadline.so.4 => not found
    /usr/lib/newpg/gpg-protect-tool:
    libgcrypt.so.1 => not found
    /usr/lib/avifile-0.7/xvid.so:
    libxvidcore.so.2 => not found
    /usr/lib/libpisock.so.8.0.5:
    libreadline.so.4 => not found
    -> for sure broken:
    jack, pilot-link, gnumeric, ruby, passepartout, xine-dvdnav,  kde (games, edu, pim, maybe lib and others)
    the script is still running - takes long to check 5GB of bins :-)
    EDIT: finished - list updated - going to post bugs

  • VB Script to find the last modified file and time in a directory

    Hi,
    I am new to VB script i need a script to find the latest modifed file and last modifed time in a directory(Contains  folders and sub folders inside it). it has to go through all the folders and get the latest file and last modifed time.

    Thanks it worked for me Get-ChildItem C:\Users\sujith.reddy.komma\Desktop\Suj1\* -recurse |?{-not $_.PsIsContainer} |Sort LastWriteTime -desc | select -first 1 now in my script i have hard coded the directory i need to run this script in different
    servers from one location i will put all the different paths in one text file and ineed to pass them to this script can you help me with this?
    Essentially you are incrementally asking us to write each line for you.  I recommend freeing yourself of this misery and leraning PowerShell.  THe answers to all of your questions are learned in the first few hours of study.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • How to schedule a job to run only in a  time window

    Hi,
    I need to schedule a job to run every day but sundays from 7am to 6pm. I managed to get it to start at seven like this
    FREQ=WEEKLY;BYDAY=TUE,WED,THU,FRI,SAT;BYHOUR=7;BYMINUTE=0;BYSECOND=0
    how can I set the job to stop at 6pm?
    thanks in advance

    Yes, as far as I could tell you create a resource plan to allocate processor resources, assign a resource plan to the window, then assign the job to a job class which is in turn assigned a resource group within that resource plan. Then when the window is active, it sets the active resource plan for the database so the job will run using this until the window deacivates the resource plan. Unfortunately because the resource plan is database wide, it means you could only really have one time window active at any one time within which to run jobs, I don't think two windows could overlap.
    Easier to work within jobs, but its a shame the job doesn't end itself, rather than having to have the second job, although the second job does enable you to engage in some communication between jobs to cleanly end it, rather than stop it dead. I have a job that runs until a set time each day, but it just works on a loop that sleeps for a few minutes each time, checking for file arrival and processing it, and sending a notification e-mail if it reaches its end time without the file arriving.

  • I recently changed jobs and no longer have access to the computer that contained my Firefox bookmarks. I don't have a Firefox profile. Is there any way to find and transfer my bookmarks to my new computer?

    I recently changed jobs and no longer have access to the computer that contained my Firefox bookmarks. I don't have a Firefox profile. Is there any way to find and transfer my bookmarks to my new computer?

    If you don't have access to the old computer any longer, '''no'''. Unless you were using something like the Google Toolbar & Google Bookmarks or Xmarks, which would have your bookmarks in an online account that you could access. Firefox doesn't include an online storage feature for personal data, yet. That is coming in a future version.
    If you have a friend at your old job maybe they have access to that old PC and they could export your bookmarks to a file and email that file to you.

  • The problems seems that the free trial what i am constantly paying for may have ran out/free trial time never contacted as i find this online to take to long and to hard to deal with  yet a paying costumer restricted by some weird fault i don't get this t

    the problems seems that the free trial what i am constantly paying for may have ran out/free trial time never contacted as i find this online to take to long and to hard to deal with  yet a paying costumer restricted by some weird fault i don't get this tried every thing how can i be billed and money taken for hired subscription  but end up with a "free trial" that cut me off having withdrawal as i live my life inside Photoshop 

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • I need to apply for a job but I'm told I need to enable cookies and java script, how do I do that?  I can't find it in system preferences

    I need to apply for a job but I'm told I need to enable cookies and java script, how do I do that?  I can't find it in system preferences
    I just updated to the new operating system which i'm starting to think was a bad idea, because it reset all my settings and I don't know how to fix them.

    so when I go to safari>preferences>security>uncheck box labled enable java script  links on webpages don't work and pictures and links son't want to appear on websites.  this made it so webpages don't want to work past loading the content in text format.  I have to check enable java script to go the webpages to work right so images and links work again but when I try to apply for this job the error message pops up saying I need to enable cookies and java script.
    SO I GUESS MY QUESTION IS IF JAVA SCRIPT IS ALREADY ENABLED HOW TO I ENABLE COOKIES?

  • How to find jobs that are scheduled.

    I am providing backup DBA support for a dba who's out of the office.
    There were jobs that were originally scheduled in cron that are no longer there.
    I've looked in OEM to see if the jobs were moved and scheduled as events and don't see them.
    I've also queried dba_jobs and all_jobs to see if I can find them. No luck.
    I know the jobs are scheduled somewhere since they ran last night.
    Does anyone have any suggestions on where else I might find these jobs?
    Thanks in advance.

    Just for future reference for anyone who may be in the same boat.
    The backups I was trying to find are scheduled using Tivoli (TSM) scheduler. There's a text file that the scheduler picks up and reads, then within the AIX shell script is coded to the spcific days for the backups.
    So I guess the bottom line is, if you can't find anything in cron, or OEM, ask the system administrators.
    Thanks.

Maybe you are looking for

  • Stop/Play All Sounds Too

    Hi There, The play / stop button I have works...but the sound files continue playing. This is the script I have: button1.onPress = function() { MovieClip.prototype.onEnterFrame = function() { if (_root.direction == "stop"){ this.stop(); }else { this.

  • IPhoto corrupts the view of my Nikon D800 photos when zooming or switching to edit mode

    I am viewing RAW files from a Nikon D800.  Initially the files show correctly but after a while the views starts corrupting when I zoom in and sometimes when I enter the edit mode.  The files themselves are ok, it is just the preview that corrupts. O

  • Output lengt 0

    Hi When I read the table PA0008 into a variable it gets output_length 0. Whit table PA0000 there is no problem.. What can this be? The data in both tables looks the same.. If the output_length = 0 I write it to a variable using this function: DESCRIB

  • Did I fry my video card on my G5 dual 2.7ghz????

    I recently bought a new Macpro and a Gefen 2x2 DVI DL KVM switch and I planned to hook up my two 23" Cinema displays to the KVM so I could use my old G5 dual 2.7 machine and the new Macpro with both displays (extended desktop). I connected the G5 and

  • Please help me fix my ipod touch

    i boght a used ipod touch for my son, before giving it to him i erased all content and settings. now it only showes a picture of a cord and itunes symbal. please tell me i didnt wast my money.