total run time based on sql id?

Hello

I wrote under query to find out the total run time sql and total executions happened based on sql id for each date. Can you get it someone please let me know if the output below is correct?

SQL> SELECT
  trunc(begin_interval_time, 'DD'),
  ROUND(sum(elapsed_time_delta)/1000000) "Total Execution Time (sec)",
  ROUND(sum(executions_delta)) "Total Execution"
  FROM dba_hist_sqlstat a
  JOIN dba_hist_snapshot b
  ON a.snap_id = b.snap_id
  WHERE sql_id        = '8acg09uq48jzk'
  AND executions_delta>0
  GROUP BY trunc(begin_interval_time, 'DD')
  ORDER by trunc(begin_interval_time, 'DD') DESC;


TRUNC(BEG Total Execution Time (sec) Total Execution
--------- -------------------------- ---------------
01-AUG-14                        160          122078
31-JUL-14                       9309         1822147
30-JUL-14                       6667         1845014
29-JUL-14                       6196         1873091
28-JUL-14                     277268         1517005
27-JUL-14                      78546          794048
26-JUL-14                       1359         1166650
25-JUL-14                       7665         1826915
24-JUL-14                       6786         1907862
23-JUL-14                       8132         2019695
22-JUL-14                       6611         1948861


TRUNC(BEG Total Execution Time (sec) Total Execution
--------- -------------------------- ---------------
21-JUL-14                       7980         2948449
20-JUL-14                       3226         3554316
19-JUL-14                       3405         3222148
18-JUL-14                      10179         2478602
17-JUL-14                       7950         1972643
16-JUL-14                       8465         2054012
15-JUL-14                       8483         2248688
14-JUL-14                       8644         2243460
13-JUL-14                        942         1478516
12-JUL-14                        985         1075398


Generate AWR report during the period of interest and you will get more information.

Apart from that, what problem you ar trying to solve. Please explain that

You can also use the following, because you are looking for particular sql

awrsqrpt. SQL > for individual ssql

awrsqrpti. SQL > for sql on a particular instance... (useful in case of CARS)

Kind regards

Harman

Tags: Database

Similar Questions

  • Why PL/SQL procedures does not allow users to enter data dynamically at run time?

    Dear all,

    I tried to do a procedure that will search for a group of approval in our database that matches.

    (1) the number of levels

    (2) the number of users by each level

    (3) the id of users by level

    entered by the user.

    I tried various methods to receive user input dynamically at run time, but in vain.

    Finally finished my procedure allowing the user to enter the parameters and then executes the procedure, to which these parameters are passed as arguments. (1 variable for the number of levels and 2 userdefinedarrays with the number of users by level and level respectively)

    Why PL/SQL procedures does not allow users to enter data dynamically at run time?

    Thanks in advance,

    Séverine Suresh

    HEY, Sebastian,

    3035408 wrote:

    Hello Sir,

    My question is that if I'm going to say, the number of levels 5, is there any way by which, at runtime, the procedure prompts me to enter at the start of the number of users per level. Now as soon as I get the number of users per level can I do the procedure ask me to enter the nicknames of the members of each level. I mean, something like a invite.

    Thank you

    Séverine Suresh

    There is no way to do it in SQL or PL/SQL, because not SQL PL/SQL is a way to get user input.  User interaction is a job for your front end, like Zlatko tool suggested in response to #5.  If your front end tool is SQL * Plus, you can use the substtitution variables, as Jarkko showed in response #6.

  • Unable to locate labview run time engine

    Hi all

    I have a problem while trying to run a simple labview software on a Tablet PC.

    My development machine is under win 7 64 bit with labview 2010 sp1 10.0.1

    My computer is a win 7 32 bit based tablet.

    I installed labview runtime engine TEN 2011 standard 32-bit sp1 but I get the following text: «unable to locate labview run-time engine...» "

    I tried to install sp1 64-bit of the 2011 standard RTE because one of the items suggested, but windows is not allowing to install 64-bit applications...

    Should which version of the Runtime I install!

    You did not say, but I'm assuming that you are using LabVIEW 2010 sp1 32 bit to develop and build the application.

    You can include the 2010 sp1 Runtime when you build the Setup program, or you can download it (here) and install it separately.

    (The runtime version must match the development system, so time to run from 2011 will not work. Even the 2010 (non - SP1) could cause problems)

    Kobi Kalif wrote:

    I tried to install sp1 64-bit of the 2011 standard RTE because one of the items suggested, but windows is not allowing to install 64-bit applications...

    Can you tell me what position suggested to install an operating time of the wrong version of 64-bit. That makes no sense at all! Please provide a link.

    (You can only install the runtime on a 64 bit OS, 64-bit, and he will agree only if the application has been developed in 64-bit LabVIEW to the same version.)

  • How to change the properties for some controls at run time?

    Hello

    I would like to change some properties for some controls in front of Panel at run time. Number of properties of the control I want to change is based on a newspaper user file opens in the final application.

    I've attached an example where I'm changing the visibility of digital controls. Problem I have I don't know what reference to connect to the property node in the case where the control loop for is not a digital control. The example is based on the label.text property but I could use the more generic classname property as well.

    Kind regards

    Petri

    Initially, a control has no legend.  It is not just the caption string is empty and the legend isn't visible, but the caption object does not exist.

    At the time of change, when a legend is on something other than an empty string, the object of legend is created.  If you redefine the legend with an empty string, the object of legend is deleted.

    During execution, the object of the legend cannot be created or destroyed, but if it exists, it can be changed.

    When I legends I want to change during execution, I initially affect the '. '.

  • Question about the accuracy of the Total remaining time for battery in Power Meter

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

    The remaining computing power comes from the numere questioning power management drivers and is a fairly complex calculation based on current usage (the amount of energy is consumed), the capacity of the battery (what total capacity is left and how fully charged is battery) and can also vary depending on what else is plugged into the USB port of the computer , what accessories (memory, video card, etc.) are installed, how good or bad, the battery is to maintain a charge and so on.  There is no particular reason to believe that maybe outside the right-out-of-the-box everything two laptops will show the same calculation even if they are all the same brand and model.

    "Horky.Chen" wrote in the new message: * e-mail address is removed from the privacy... *

    Mr President.

    I checked several laptops that are of the same model, one of them cannot display "Total time remaining" in the power meter. Even other laptops may display, but the values are equivocal. Sometimes the 'remaining power' is 80%, but 'Total remaining time' is 1H20Mins. And sometimes, the "remaining power 'is 75% ', but"the Total remaining time"is 1H30Mins.

    How Windows calculates the 'Total remaining time? I found what OS will have one or two minutes to display "Total remaining time" after I have the power cable plug-out.

    Which is appreciate to get your answer.

    Horky

  • Total connection time how to account with GANYMEDE.

    Hi, we have the following scenario, this company uses two methods for remote access (for employees only): through RAS connections, or by using VPN clients to connect to a 535 PIX over the Internet. We need to do accounting for the total connection time, in the case of RAS connections is easy, we run AAA GANYMEDE + between the RA and the ACS (ver 2.1) and check the start/end time. But with the Internet connection start/stop time reflects the total time for each connection by user i.e. telnet, snmp, ftp, etc. but what connections can be simultaneous (or not), so we can not just add every time total of connections to a single user, it could be greater than the actual time that this user has been really connected. So how could account us for in this case total connection time?

    Thanks in advance for your recommendations

    Unfortunately you don't have. Accounting for users in the PIX VPN is on the Board to design for some time now, but so far has not been implemented. You can check the status on bug ID CSCdu01327 for other updates.

  • Lead story total visit time?

    Hi all

    Is it possible to mark a contact based on the site total visit time?

    I didn't see any relevant conditions filter in the filters of contact. Is there another way?

    Thank you

    Rama

    Rama,.

    Technically, you could.  There are two ways that you could do in E9.

    (1) If you really want to do it through a filter, it would be pushing the data in the "Total" field to a custom Contact field, the profile of the field, then you can use a contact filter.

    (2) as this will be used for lead scoring with the program generator, you can create a Condition based on the "Total time" profile field or even a Segment (if there is considered desired compound variables) then use the Condition or the Segment of your decision rule to determine the way to score.

    Option 2 does not make you give up a contact field, which might be better. You learn how to do both of these tactics in the profiling Web course.

    Let me know if it works for you.

    Amma

  • continuously run a query in sql prompt

    Hello

    We want to run a query that shows the current sessions connected, the application must run continuously from the sql prompt.

    Select INST_ID select NŒUD, count (*) Current_sessions of GV$ SESSION where username IN ('XxX', 'XXX') group by order INST_ID select 1;

    Can it be implemented with a kind of stored procedure that runs in a loop with a time interval?

    Any help would be much appreciated.

    Thanks in advance!

    user-1221 wrote:
    I wonder if do you the same thing with your PHB :)

    in any case, I created a small batch file and scheduled it with the Windows Task Scheduler, hope this will give him satisfaction.

    Thank you for you answer.

    But that does not make him have to pick up the results? And who does not lack the "requirement" for "continuous"?

    Maybe something like this will satisfy the e-Director of Information and Office Automation

    --- cmd file
    :query
    sqlplus scott/tiger@orcl @run_query
    goto query
    
    --- sqlfile:  run_query.sql
    set echo off
    select inst_id NODE,
           count(*) Current_sessions
    from GV$SESSION
    where username IN ('XxX','XXX')
    group by inst_id
    order by 1;
    select to_char(sysdate,'dd-Mon-yyyy hh24:mi:ss') CurrentTime from dual;
    prompt Are we there yet?
    exit
    

    Edited by: EdStevens may 25, 2013 08:30

    Edited by: EdStevens may 25, 2013 08:32

    Edited by: EdStevens may 25, 2013 13:35

  • Run time output of DBMS_OUTPUT. PUT_LINE

    I would like to know why DBMS_OUTPUT. Put_line output gives only after the end of the execution of the procedure. I wonder why Oracle has not provided a package for the output of the run time.

    user10566312 wrote:
    I would like to know why DBMS_OUTPUT. Put_line output gives only after the end of the execution of the procedure. I wonder why Oracle has not provided a package for the output of the run time.

    It's because of the client server architecture.

    SQL and PL/SQL processes run on the database server.
    The database server has no access to clients, or screen keyboard, so cannot accept entries to the client keyboard, or write the output to the screen of the client.
    When the client software issues a statement to the database, it uses something like for example of SQL * more to establish a connection to the database, submit this request to the database and then waits for the request to complete, eventually return some results from that (e.g. the results of a SQL query).
    DBMS_OUTPUT does not write to any screen... it puts just the data that you specify in the DBMS_OUTPUT buffer. It is then up to the client software to request the contents of this buffer, but the client software cannot do that when the request he made was finished (only a single statement between client and server can be converted at any time). That's why you issue your request so the output once the query is complete.

    Oracle provides a way for you to run output at the time, if you want to start doing things with the DBMS_PIPE package, etc., although for the follow-up of the execution, I have a package that writes my 'output' to a table on the database by using an autonomous transaction and then the content of this table can be viewed from a second session While the first session is still being requested process. Similarly, you may have your 'exit', writes to a file on the database server using something like UTL_FILE and then you would be able to view the contents of this file running, as long as you open and close the file and make sure file buffers have been empty etc.

    DBMS_OUTPUT is not the tool to use if you want to display the output of the run time. It's not a fault of Oracle, it's just your lack of understanding of what tools do this work. ;)

  • is it possible to put a timer in PL/SQL statemens?

    Let's take an example:
    Now I want to insert data from va_table into tmp_table, however, perhaps that the select query statement will have a time to run.

    insert into tmp_table
    Select * from va_table;

    so is it possible to set a timer in PL/SQL statemens, when running too long, the procedure or instruction may interrupt ongoing and dedicated to the next instruction?

    Thanks in advance.

    use the dbms_sleep procedure

    Create procedure my_sleep (SLEEP_TIME in NUMBER)
    as
    Start

    because me in 1... trunc (SLEEP_TIME/600)
    loop
    DBMS_LOCK. Sleep (600);
    end loop;
    DBMS_LOCK. Sleep (SLEEP_TIME-trunc(SLEEP_TIME/600) * 600);

    end;

    Published by: user647181 on Sep 8, 2008 03:22 (added example)

  • Satellite X 200 - 25 G: problem of Flash Cards - Run time error file TCrdMain.exe

    Hello world!

    I don't know how, but I have a problem when my windows Vista from (running)
    The problem is with these file TCrdMain.exe this file is for Flash cards, end running every time when I put my PC on (with windows startup). But I see this problem: "Run time error file TCrdMain.exe ' and I should click Close.
    I don't know where can I uninstall this program and when I find that driver (Software) (if I uninstall and then install this driver, maybe that everything will be OK). This is the main problem.

    And another question...
    There are so many programs with this computer (laptop), and if I want to install Windows XP for example, where can I find everything (each programs) there may be 10 or 15 pograms.

    It will be a big problem if I change my OS. Y at - there a site where I can download, everything...
    Thanks for the replies, nd sorry about my English :-) skills
    Best wishes from the Bulgaria and have a nice day!

    Post edited by: me

    null

    Hello

    I'm not very well why the executable Run TCrdMain.exe error, but it is certainly up to Toshiba FlashCard software and the FlashCard belongs to the package Toshiba Vista added value m.

    Kody is good. Reinstall the VAP and check if this helps solve this problem.

    With regard to the question of the other;
    You are right; the notebooks are preinstalled with many different applications. But it is necessary because the laptop supports many different features.
    However, if you want to install XP OS on the X 200 PSPB9E series, you will need drivers Toshiba XP and all need Toshiba XP drivers are available on the European driver Toshiba page

    You must install all the drivers available if you want to use all the features of the laptop.

    Concerning

  • Satellite A200 battery run time

    G ' Day, I have an A200 series PC laptop which is about 2 to 2.5 years, since the original battery died. I bought a new battery - one more (in other words, he had to last longer than the original). The new battery is not completely charged after charging for 6 hours, while the machine stops and only lasts 2 to 2.5 hours on battery. The power settings are balance and I especially don't work only with the word doc and sometimes the media player in the background.
    The original battery (small capacity) used to last 2-3 hours on these parameters.
    The manufacturer said tht, it may be a driver issue any.

    If anyone has had a similar dilemma, and there, anyone know how I could fix this problem apart from return to the manufacturer of the battery?

    Concerning
    Rgtom

    2.5 hour battery run time on the Satellite A200 is OK for me and it's the same as on my Satellite A300.
    I think 2.5 hours DURATION is just average for this model of laptop.

    Can you please tell us exactly what battery you bought?
    Can you send us exact Toshiba part number?

  • deploy the run-time engine

    Hello everyone,

    I'm trying to deploy my application of teststand to a target computer. My teststand application uses: TestStand 2014 (32 bit), LV 2014 SP1 (32-bit).

    Here's the problem I encounter while using the deployment tool.

    1. in the attempt to include RTE LV in my Installer, the deployment utility requires that I provided LV 2015 Installer. See the attached picture.

    I wonder why she asked median LV-2015-64 bit Installer. If I ignore the request, the build process failed.

    2. I use the shared variable to communicate with the compactRIO controller. The compactRIO controller is hosting EVS. My question is,

    a. I have to "deploy" my variable library shared, even though my system is not an EVS?

    b. I read in the manual that I can deploy the variable Fanny shared through the LV utility deployed the lilbrary step. So I added this step in the test sequence. Whenever I run the sequence, this step deploys the shared variables. On the target, I wonder if it is necessary to deploy the shared variable on each run of the test sequence. I think it should only be deployed only once on the system target. Am I wrong? If so, how to remove this utility LV deploy step of the library of the test on the target sequence, since there is no development testbed on the target system.

    3. I use a database to record test results after each execution of test sequences. I can export the schema of the table data and copy it to the target computer. My question is, how to import the schema of the database in the target table, since there is no system development teststand on it (no way to call configure it-> result-> database to import the schema of the treatment table)?

    I hope that teststand experts out there can give me some help tips to help me understand the whole deployment process. Thank you.

    Yours,

    lhuckj

    (1) make sure that LabVIEW 2015 Run time is NOT slected to install options-> drivers and components

    (2) I don't know

    3.

    Generally, I put my data link in a UDL file and include that in my distribution.  I set the Connection string to use a relative to this udl path and make sure that the UDL is copied to the same location on the targer

    I have also included in my repertoire of the Application of TestStand CFg:

    TestStandDatabaseSchemas.ini

    TestExec.ini

    Users.ini

    StationGlobals.ini (attention if you do not want to replace the existing one, I use it to store the addresses of the instrument)

  • I am too blind to find the download of the SP1 2015 Vision Development Module Run-Time?

    Research on ni.com for 'Vision Development Module Run-Time 2015' brings me to a lot of results, but not "Vision Development Module Run - Time 2015 SP1".  Is this product late?

    The Vision Development Module 2015 SP1 has already been published a few days ago.

    Hello Guenter

    I could not find, too and study this.

    As a solution for the moment, you can use the

    Vision Development Module 2015 SP1 - National Instruments
    http://www.NI.com/download/vision-development-module-2015-SP1/5798/en/

    and when asked to choose what features must be installed uncheck everything except the TERM NI Vision 2015 SP1, see the attached picture.

    Best regards

    Kathrin

    Certified LabVIEW Developer (CLD)

  • VI LabVIEW Report Generation Toolkit elements in a TestStand sequence does not work with a LabVIEW 8.5 run-time engine

    Hi all

    I'm using LabVIEW 8.5.1 and TestStand 4.1. I did a sequence TestStand with a VI in this document, which uses items Report Generation Toolkit. On my machine I use LabVIEW and TestStand development system license. On another machine I use TestStand with basic deployment license and I chose the LabVIEW 8.5 run-time engine in the Configuration of the adapter. Everything works well except this VI with elements of Report Generation Toolkit. The error message shows that the VI is not executable. It works well only after I installed with a trial license and selected LabVIEW LabVIEW 8.5 development system in the Configuration of the adapter.

    I found other posts and a document in the knowledge base with a similar problem: http://digital.ni.com/public.nsf/allkb/8A0E6274D9BD7B1986256F62006AD402?OpenDocument but I am not no EXE files in my sequence, so I do not know how to fix mine. Someone has an idea?


Maybe you are looking for

  • Equium A300D - 13 X overheats and turns off by itself

    The laptop is only 14 months old the problem occurred for a while now and can be annoying.The time can varry on when the device is overheating then go off. I cleaned the unit to the compressed air to get rid of any dust.The fan works fine, the softwa

  • Satellite P105-S9722 - small dark spot on the screen

    Hello A few days there is a 1 cm x 2 cm and a few small black/transparent stained areas appeared on my screen (17 inch WXGA TrueBrite). It's the visibility varies depending on the angle of the lid and disappears almost when it's 90 degrees or if I lo

  • Detection wireless to Satellite L550 driver?

    Hi, so I just learned that the reason why my L550 is not able to activate wireless detection (FN + F8 does not work and no manual methods) is probably because the wireless driver has become corrupted and my laptop it dumped in self-defense.What I was

  • System repaired after crash, now I can't connect to the internet.

    I had to fix some errors in the recovery console by using a step by step guide and it worked, but now if I click on explore I get a bunch of weird on my printer messages even though my printer is not connected. Eventually the Explorer opens, but it s

  • I have upgraded to Windows 8. How can I get the switchable graphics to work?

    Windows 8 was released a little over a month and several users have had the desire to upgrade their laptop for Windows 8. However, the laptop doesn't have any Windows 8 at HP software, because it is not yet approved for Windows 8. This usually result