Duration for  a Job

Hi All,
Oracle 10gR2
Need help to generate a sql script, Not getting the proper output;
Need to check duration on sql statement of a Module by date.
If the Module runs more than once per day, should output the Date/Time accordingly
The output should be the following;;
SQL     CPU_Seconds     Disk_Reads     Buffer_Gets     Date/Time     Buffer_gets/rows_proc      Buffer_gets/executions     Elapsed_Seconds      Module

Hi,
Hope this to check the health of your Database.
Check the below link.Hope it will help.
http://rafioracledba.blogspot.com/search/label/DBA%20Daily%20activities
Best regards,
Rafi.
http://rafioracledba.blogspot.com/

Similar Messages

  • Time duration taken for a job to complete

    Hi
    How do I konw what is the time duration that has taken for any job to be completed  I am looking  in RSMO and i am able to see the start time in the header tab for a job .how do i see the completed time??
    Thanks
    Sheetal

    Hi Sheetal,
    Double click on the start time a popup box would appear in that you can watch the End time as well.
    Also below the Start time you can watch Run time as well,ie the Total Time taken to complete the data load.
    or
    you can check in SM37,
    Copy the Reuqest name from monitor screen and paste it in the SM37 enter the name of the person who scheduled it or enter* to select all users.
    you can find the Job details of that particular request.
    Hope this helps.
    Regards,
    Ravikanth

  • How to determine the time duration of each job for a particular report

    Hi guys,
    I am facing a very interesting problem which I want to share with all of you-hoping to get some input from you
    enlightened fellas :).
    I have vendor and vendor sub-range maintained in one custom table. For each vendor I have got article site combination maintained in another table. The thing is I have to execute this program in background. Now for each vendor I may have only 1 article or multiple articles. So if I schedule the job for 60 min. say then for 1 article the time alloted will be too big and for multiple articles the time alloted may prove to be too small. Another thing from a functional point of view is a vendor which has 1 article today may have more articles added to his name tomorrow (if the customer likes his product the company may buy more from him). So the point is we have to dynamically adjust the time alloted for each job.
    I could not find any utility in ABAP which can do this.
    Can any of you please help me?
    Thanks a lot !
    Hasso.
    Edited by: Hasso14 on Apr 28, 2011 3:06 PM

    Exaactly-only I want to find the best time needed to finish for an article or multiple articles i.e I do not know how many articles will be available for each vendor beforehand before doing a select on the 2 tables. But once I know the number (maybe 1 or more than 1) I want to allot the best time for that article/lot of articles(maybe JOB_OPEN  technique ?).Also the number of articles may vary over time so the algorithm should take care of that too.-quite a tricky prob :)-I would request the others to see this reply which I think will clarify their doubts.
    Edited by: Hasso14 on Apr 28, 2011 9:03 PM

  • Viewing total duration for multiple audio files

    I need to be able to view 'total duration', when selecting multiple audio files, e.g. 10 audio files, total duration 42.03. I can't find a way to do this and so far, all I've been able to do is view individual audio file durations, then total them manually (which takes far too long, for what I need to do). I've previously been a Windows user, and this is instantly viewable in Explorer.
    I'm new to OS X, and really need to be able to do this for my job. Can anyone help??
    Thanks in advance, Marc

    Here's an image to explain better:
    http://img216.imageshack.us/img216/3241/playlisttotaltime.jpg
    However the total time isn't 100% accurate, because I believe iTunes is adding some extra seconds for the gaps in between songs.

  • Is Keynote the right application for the job?

    I have a job that requires integrating an audio soundtrack with some slides. The difference between this presentation and a normal slide presentation is that most of the information is in the soundtrack (it's a lecture, with some slides as visual aids). The amount of time in which the slides need to appear is relatively brief; in fact it's a fraction of the soundtrack's run-time.
    I have time index information that specifies where the slides should appear in the presentation. For example, there will be two minutes of soundtrack with a blue background, and then a slide will appear for 5 minutes while the soundtrack discusses its content. Then the slide should disappear into blue background for 10 minutes, then another slide for 3 minutes, then background for 20 minutes, then another slide...and so on.
    In other words, the soundtrack must play continuously, interspersed with occasional slides at specific times for specific durations, with blue background in between. I want to export the entire presentation as an integrated audio+video file and burn it to DVD. I already have the soundtrack as an .aiff file in Logic Pro 7.2, and I will have the slides as high-quality JPEG files. I don't own a Keynote license. I do have a QuickTime Pro license. I've played with this in Microsoft PowerPoint enough to determine that it's not the right tool for the job.
    I've looked at Keynote's Help documentation, and it's not immediately apparent how to start with an audio soundtrack and simply insert slides at specific times, for specific durations. Can I accomplish that in Keynote, or is there another application that would be better suited to the task?
    Thanks in advance for any help anyone can offer.

    Brian:
    If I correctly understand the effect you've described, I imagine that would be VERY annoying. However, in the test presentation I made in iMovie, that's not exactly what I experienced. I added the soundtrack first, and then I placed the slide images where I wanted them. Initially, I did notice that I couldn't just jump ahead and place an image all the way at the end of the soundtrack file without iMovie adjoining it to the last image's segment on the timeline, but that was easy to fix. Once the image was in the timeline, I just dragged it all the way to the end of the soundtrack. After that, I could place images anywhere I wanted.

  • I'm using Time Machine and a LaCie external drive to backup. I also have a 8 GB LaCie flash drive I want to use for small jobs. If I plug the LaCie flash drive in, is my Mac going to think it is the LaCie external drive and start trying to backup?

    I'm using Time Machine and a LaCie external drive to backup. I also have a 8 GB LaCie flash drive I want to use for small jobs. If I plug the LaCie flash drive in, is my Mac going to think it is the LaCie external drive and start trying to backup?

    no.

  • BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?

    Hi All.
    I have this request.
    BODS 3.1 : How to trigger an email alert for the jobs on BODS server ?
    We have jobs scheduled on BODS running smoothly and absolutely fine.
    But to check, i am logging into the admin console and check for the jobs status.
    I would like to have an email to be received from BODS after each job is finished.
    It could succuessful. Or it could fail.
    Whatsoever, i wish to receive an email alert as soon as a job is finished.
    Can anyone advise me as to whether this could be made possible.
    And if yes, how this could be done.
    Thanks for your help in advance.
    In BOE CMC / for webi / schedule / we find an option to send email for a job success or a job failure.
    Is there any option similar to that in BODS ?
    Also would like to know :
    how to use the smtp_to or mail_to functions ?
    how to set up the smtp server for this ?
    thanks
    REgards
    indu
    Edited by: Indumathy Narayanan on May 31, 2011 3:47 PM

    Hi.
    Since am new to this BODS. I need some help.
    I already have many jobs which are running absolutely fine.
    And when a job runs, and finishes, am able to see the trace saying
    e.g. :
    Job_abc is completed successfully.
    We got the smtp service activated for our test server.
    and we hae a group email id.
    I have put the details of the smtp server / ip address / and said apply restarted.
    The i created a simple test script as below :
    print (' Before email ' );
    smtp_to('abc@company_name.com', 'Job ' || job_name() ||' on ' || host_name() || ' has FAILED',
    ' the job has failed', 0, 0);
    print('After Email ');
    It does send a email to as per smtp_to whatever email is specified.
    But how to differentiate between a job success
    And a job which has failed.
    I wish to have a mail which says on the subject :
    'Job ' || job_name() ||' on ' || host_name() || ' has completed successfully'
    ==> IF it is a success
    OR
    'Job ' || job_name() ||' on ' || host_name() || ' has failed'
    ==> if it has failed
    How to make the system identify, whether
    to send a success message or a error message whatever
    Could anyone advise.
    thanks
    indu

  • My iphone 4S wont allow me to restore a bckup of icloud it has just rebooted the os and for over 24 hours i have been trying to fix it i use this phone for my job so i need help

    My iphone 4S wont allow me to restore a bckup of icloud it has just rebooted the os and for over 24 hours i have been trying to fix it i use this phone for my job so i need help. when i try to restore it says "Your iphone could not be activated becuase the activation server is unavailable, If the problom presests goto apple.com/support"   It has done this for 27 hours now PLEASE HELP!!!!!!!!!

    - Connect the iPod to the computer and see if iTunes sees it. If it sees it try to get the photos off the iPod.
    - Next let the battery fully drain. It will likely take days. After charging for at least an hour try again
    - Last, make an appointment at the Genius Bar of an Apple store.

  • Password report for EM jobs

    We have multiple EM jobs that run against a node using the root password. Whenever the root password changes, we go in to each job and update the password. Sometimes, we miss a couple. Does anyone know if there is a location in the tables of the repository that give the date that the credentials for a job were last changed?
    Thanks

    Well, it's an answer...but not the one I was hoping for :-)
    Do you know where in the base tables in the repository the credentials are stored? That might get me what I'm looking for as well.
    Thanks.

  • Job failure ( report RFFDKU00 scheduled for background job)

    Hi Experts,
        When iam scheduling the report RFFDKU00 for background job. Job is getting cancelled with status "ABAP/4 processor: DBIF_RSQL_SQL_ERROR" . when iam obesrving this job it is going to dump at this select query
    "     select ausbk belnr gjahr bzkey buzei
    033370                  from vbsegs into table t_vbsegsfields
    033380            where bukrs in r_bukrs
    033390            and not ( fdlev = space
    033400                  and fdgrp = space
    033410                  and fdtag = init_date
    033420                  and fdwbt = 0 )
    033430            and not saknr in r_cm_sk   "
    Can anyone helpme to deal with this issues ,
    thanks in advance,
    Kranthi

    note 167301 might help.

  • JOB_OPEN - SUBMIT - JOB_CLOSE - User Name for the Job

    Hi,
    I have a code like that:
    CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = lv_jobname
        IMPORTING
          jobcount         = lv_jobcount
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
    * Call Update PO from Sales Order
      SUBMIT zpcc_mm_upo3
        WITH p_vbeln = puv_vbeln
        USER lc_uname
        VIA JOB lv_jobname NUMBER lv_jobcount
        AND RETURN.
      CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = lv_jobcount
          jobname              = lv_jobname
          strtimmed            = lc_true
        EXCEPTIONS
          cant_start_immediate = 1
          invalid_startdate    = 2
          jobname_missing      = 3
          job_close_failed     = 4
          job_nosteps          = 5
          job_notex            = 6
          lock_failed          = 7
          OTHERS               = 8.
    In this code as you see I can run the SUBMIT program with a specified user. But the creator of the job always becomes SY-UNAME. So is there a way to specify the user name for a job creator? I don't want to use SY-UNAME.
    Thanks,

    Hio try this way...
    CALL FUNCTION 'JOB_OPEN'
         EXPORTING
           jobname          = lv_jobname
         IMPORTING
           jobcount         = lv_jobcount
         EXCEPTIONS
           cant_create_job  = 1
           invalid_job_data = 2
           jobname_missing  = 3
           OTHERS           = 4.
    "Comment this
    * Call Update PO from Sales Order
       SUBMIT zpcc_mm_upo3
         WITH p_vbeln = puv_vbeln
         USER lc_uname
         VIA JOB lv_jobname NUMBER lv_jobcount
         AND RETURN.
    "Comment end
    * Call function to submit the job
      CALL FUNCTION 'JOB_SUBMIT'
           EXPORTING
                authcknam                   = wa_authchknam        "Pass the Other User name you want
                jobcount                    =  lv_jobcount
                jobname                     = lv_jobname
                REPORT                      = 'zpcc_mm_upo3'
                VARIANT                     = jobs-variant  "Create Varaqint
                PRIPARAMS                   = wa_PRI_PARAMS
          EXCEPTIONS
               BAD_PRIPARAMS               = 1
               BAD_XPGFLAGS                = 2
               INVALID_JOBDATA             = 3
               JOBNAME_MISSING             = 4
               JOB_NOTEX                   = 5
               JOB_SUBMIT_FAILED           = 6
               LOCK_FAILED                 = 7
               PROGRAM_MISSING             = 8
               PROG_ABAP_AND_EXTPG_SET     = 9
               OTHERS                      = 10
       CALL FUNCTION 'JOB_CLOSE'
         EXPORTING
           jobcount             = lv_jobcount
           jobname              = lv_jobname
           strtimmed            = lc_true
         EXCEPTIONS
           cant_start_immediate = 1
           invalid_startdate    = 2
           jobname_missing      = 3
           job_close_failed     = 4
           job_nosteps          = 5
           job_notex            = 6
           lock_failed          = 7
           OTHERS               = 8.
    Prabhudas

  • How do I upload to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC :) )

    How do I upload photos to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC )

    100pat wrote:
    Thanks, I can do it fine from my Windows desktop PC, I just want to know how to do it from an iPhone4
    Like I said before ask facebook or look at their support site to see if that is even a feature.

  • Function module for background jobs email

    hi abaper's
                     i hace to create a function module for background jobs this function module have to send an email automatically when a background job is assigned or processed in background.
    thnks n regards
    pardeep kumar

    hi dear
    open this site
    https://weblogs.sdn.sap.com/pub/wlg/781. [original link is broken] [original link is broken] [original link is broken]
    <removed by moderator>
    Edited by: Mike Pokraka on Aug 8, 2008 12:48 PM

  • While Executing a Javascript got RuntimeException - org.mozilla.javascript.EvaluatorException: uSetContextVar: Only valid for Provisioning jobs at line

    Hello Experts,
    I am receiving an error whenever i am executing a java script file. I am calling the script in the below fashion.
    MSKEYVALUE  - $FUNCTION.DP_getMskeyValueForUser(%ABCD01%)$$
    function DP_getMskeyValueForUser(Par){
    ---- Here we have written logic---
           var result = uSelect(query);
          result = DP_generateId("CREATE");// calling another script
        return result;
    function DP_generateId(Par){
    --------------Here Code Logic ----------------------
    --------At ending setting the output value and storing it in the context variable
        uSetContextVar("new_mskeyvalue", newMskeyValue);
        return newMskeyValue;
    While executing i am getting an error message at the above highlighted part stating that got RuntimeException - org.mozilla.javascript.EvaluatorException: uSetContextVar: Only valid for Provisioning jobs at the line
    Can you kindly please help me with this error.
    Regards,
    DP

    Hi DP,
    Hope this helps.
    context var is used if you want to pass values between tasks. If you are using in a job and you want to use values between passes, then you could use a job variable. Or if you want to calculate and use the values in same pass in the job, you can use a Hashmap.
    Kind regards,
    Jai

  • What are the possible values for the JOB status?

    What are the possible values for the JOB status in the table TBTCP and significance for each?

    Hi,
    Have a look at include LBTCHDEF.
    The standard include from SAP.
    -> Definitions and Constants for Function group BTCH
    Kind Regards
    Raymond

Maybe you are looking for

  • Partitions for OSX and Win-XP, Photo Library and Scratchdisk

    Hello everybody, I have just received my 160GB hard disk for my MacBook, before installing it I have a question: I want to run OSX, and windows XPPro Within OSX I will be using Aperture Within the XPPro environment I will be using CS2 Question 1. for

  • How can I prevent apps from syncing in the new iTunes?

    Hey there. I brang my macbook to Applestore cause it had a problem and they downloaded the latest version of itunes. Everything's fine and my music, videos and apps are in the new itunes like before. But now, when I want to sync my ipod touch, a pop

  • Adding Hyperlink to content within RTE in SharePoint 2013

    Hi, We are using the default RTE provided by SP 2013. We need to provide hyperlink within the content added in the RTE. Please suggest a way to do this. Thanks. Ateeb

  • Ms Access 2010

    I have client that access Ms access through their network drive.  when one person is on the database the other one can't access the information.  How can I change it where they can access the information at the same time?

  • Impossible de réinstaller le système d'un MBP, que faire ?

    Le MBP fonctionnait mal (Lion 10.7.5), j'ai lancé diskutility qui m'a demandé de redémarrer avec Commande + R pour procéder à une réparation. Etant fait, je n'avais aucune action possible sur le disque dur avec diskutility (commandes grisées). Je l'a