Query to know number of executions of one day

Hi,
i need a query to get number of executions of the sql per day

What database version ?
You mean there is one sql statement you want to check daily executions ? Does it have the same sql ID each time ? If so then you could select from v$sql / v$sqlarea every 24 hours and compare counts from the previous runtime.
Are you collecting statspack and awr snaps ? If so then you may be able to run a report to view executions in 24 hour periods.

Similar Messages

  • Query to know number of columns in a table

    please can anyone suggest me a query to know number of columns in a table i.e.
    if I want to know how many number of colums are present in a specific table then what would be the query
    Message was edited by:
    user625519

    Give this a shot:
    SELECT table_name,count(*) as "# of Columns"
    FROM dba_tab_cols
    WHERE table_name = <table name>
    GROUP BY table_name
    ORDER BY table_name;There are other views as well such as USER_TAB_COLS and ALL_TAB_COLS.
    HTH!

  • How to query which Tcodes specified user used with one day?

    Hi guys:
      How to query which Tcodes specified user used with one day?

    Hi
    You can use transaction code ST03N.
    1. Go to tx code - ST03N
    2. Under "Workload" you can select your "Instance or Total" so that it expands and shows you Days, Week, Month.
    3. If you want to look at the transactions executed for a particular day, lets say, then double click on any day.
    4. At the bottom left you get "Analysis Views"
    5. Select & expand "User and Settlement Statistics"
    6. Double click on "User Profile"
    7. On the right side of the window you get a list of all the users
    8. Double click on a particular user you want to view the details of.
    9. The new screen will display the "Transactions/Reports Utilized by User XXX"
    If you wanna track which users executed a particular transacation then follow this:
    10. In "Analysis Views" expand "Transaction Profile"
    11. Double click on "Standard"
    You can view the list of Transactions and Reports.
    12. Double click on the Tx Code or Report you wanna check and it will show the Use of it.
    This will help you.
    Regards
    Sumit Jain
    [reward with points if the answer is useful]

  • Does any one know if the iPhone camera one day will have the ability to date stamp photos taken with the iPhone

    Does any one know if the iPhone camera one day will have the ability to date stamp photos taken with the iPhone

    No one but Apple knows what will come in the future until they announce it. We are forbidden from speculating about it on these forums.

  • All of the birthday's and holidays on my iPhone are one day off.

    All of the birthday's and holidays on my iPhone are one day off (one day early).  I sync it with my iPad and my iPad is correct.  Does anyone know why my iphone is one day off?

    Go into Settings...Mail, Calendar and Contacts and siwtch off the Contacts section from the account in question.
    The phone should ask you if you want to keep or erase the contacts stored on you phone.
    However, if they aren't synched to anything and only exist on your iPhone, you'll have to delete them all one by one

  • My iphone was stolen and called police. Now the ditective needs to know my IMEI number. I need to know the number of the stolen one. How can I get the IMEI number?

    My iphone was stolen and called police. Now the ditective needs to know my IMEI number.I need to know the number of the stolen one. How can I get the IMEI number?                   

    Quickest place to look is in the label attached to the box the phone came in.
    Not around anymore? Maybe the carrier you used the phone with can facilitate the information. Also, when under contract, the IMEI is listed in the paperwork. Apple, alas, is quite unhelpful with that information.

  • Hello, I have Just purchased an iphone 5 2 weeks ago but when I look through my USB power adapter, there is no serial number printed inside the USB opening, can I know is it a fake one?

    Hello, I have Just purchased an iphone 5 2 weeks ago but when I look through my USB power adapter, there is no serial number printed inside the USB opening, can I know is it a fake one?

    If you purchased it from Apple or an authorized Apple reseller, it's genuine.
    If not, it is very likely to be counterfeit and dangerous to use. Counterfeit power adapters often bear fraudulent consumer product safety markings. It is difficult or impossible to distinguish a genuine power adapter from a counterfeit from an exterior inspection, and inspecting its interior destroys the adapter.
    From http://www.apple.com/support/usbadapter-takeback/:
    If you need a replacement adapter to charge your iPhone, iPad, or iPod, we recommend getting an Apple USB power adapter. For a limited time, you can purchase one Apple USB power adapter at a special price — $10 USD or approximate equivalent in local currency. To qualify, you must turn in at least one USB power adapter and bring your iPhone, iPad, or iPod to an Apple Retail Store or participating Apple Authorized Service Provider for serial number validation.
    If in doubt, do not use it.

  • Hi, I have a large number of products in one column and prices of the products in another. Most prices are different. I want to know if it is possible to increase all of the prices by 5% or 10% etc. Hope someone can help. From Stiffy

    Hi, This is my first time I hope someone can help.
    I am working with numbers and I have a large number of products in one column and the relevent prices in another. All the prices are different and I want to increase the price of everything by 5% or 10% etc. Is this possible?
    Thanks in advance
    Stiffy123

    Ad a new, temporary column (or one you can hide when not using). Let's say the current Prices are in column C and the new column is D.
    you can inflate the prices in column C by 5% by entering the formula in the first cell of column D as:
    =C2*105%
    likes this:
    to fill down, select D2, then copy, then select the D3 thru the end of the column, then paste.  Now select C2 thru the end of column C, now paste over the existing values using the menu item "Edit > Paste Values"
    you can now hide column D until you need to use it again.

  • Query with 2 level of breaks overlapings, one with a distinct constraint

    My boss asked me, for an Apex graph, to give for one day
    every 10 min the number of UNIQUE people (id) connected in the last 30 minutes.
    It is because this Unique ID count that I cannot solve this, but I am convinced it can be done using analytical or model clause.
    The folllwiing test case perfectly emulate the set of data as they comes from Websphere logs:
    --  We want :
    --    One row every 10 minutes that gives the count of UNIQUE  ID
    --        connected in the last 30 min before this point
    -- in this test case we assume that at 08h00 one user connects
    --     every second during one hour.
    with v as (
      select trunc(dbms_random.value(1,2000)+1) id,
           trunc(sysdate) + 80/24 + level/86400 sec from           <- this is  a typo, I wanted 8/24
      dual connect by level < 3600
    select id, to_char(sec,'YYYY-MM-DD HH24:MI:SS') from v
          ID   Time
           568 2011-07-23 08:48:19
          1057 2011-07-23 08:48:20
          1864 2011-07-23 08:48:21
          1500 2011-07-23 08:48:22
           917 2011-07-23 08:48:23
          1844 2011-07-23 08:48:24
           779 2011-07-23 08:48:25
           448 2011-07-23 08:48:26
           382 2011-07-23 08:48:27
           256 2011-07-23 08:48:28
          1821 2011-07-23 08:48:29
           872 2011-07-23 08:48:30
           658 2011-07-23 08:48:31
    .Edited by: bpolarski on 20 juil. 2011 12:10 added typo comment

    Hi Solomon
    I don't think the numbers are correct. There are 1200 rows before 8:20, but your query is showing 1569 distinct sessions.
    with v as (
               select  --+materialize
                        trunc(dbms_random.value(1,2000)+1) id,
                       trunc(sysdate) + 80/24 + level/86400 sec
                 from  dual connect by level < 3600
    select
        count(*),
        count(distinct id)
    FROM
        v where sec <= TO_DATE('23/07/2011 08:20:00','dd/mm/yyyy hh24:mi:ss')
    SQL> with v as (
      2             select  --+materialize
      3                      trunc(dbms_random.value(1,2000)+1) id,
      4                     trunc(sysdate) + 80/24 + level/86400 sec
      5               from  dual connect by level < 3600
      6            )
      7  select
      8      count(*),
      9      count(distinct id)
    10  FROM
    11      v where sec <= TO_DATE('23/07/2011 08:20:00','dd/mm/yyyy hh24:mi:ss')
    12  /
      COUNT(*) COUNT(DISTINCTID)
          1200               910I know this might not be the neatest way to get the result, but I think this is the correct one. I tried with analytics but I kept hitting problems with the ranges...
    with v as (
               select  trunc(dbms_random.value(1,2000)+1) id,
                       trunc(sysdate) + 80/24 + level/86400 sec
                 from  dual connect by level < 3600
    SELECT
        sec_10_min,
        (   SELECT
                count(distinct l.id)
            FROM
                v l
            WHERE
                l.sec >= sec_10_min - NUMTODSINTERVAL(30,'MINUTE')
            AND
                l.sec <= sec_10_min
         ) ct
    FROM
        (   SELECT
                sec_10_min
            FROM
                    select  trunc(sec,'HH') + trunc(to_char(sec,'MI') / 10) / 144 sec_10_min
                    from  v
                    WHERE
                        rownum > 0
            group by
                sec_10_min
      order by sec_10_min
    SQL> with v as (
      2             select  trunc(dbms_random.value(1,2000)+1) id,
      3                     trunc(sysdate) + 80/24 + level/86400 sec
      4               from  dual connect by level < 3600
      5            )
      6  SELECT
      7      sec_10_min,
      8      (   SELECT
      9              count(distinct l.id)
    10          FROM
    11              v l
    12          WHERE
    13              l.sec >= sec_10_min - NUMTODSINTERVAL(30,'MINUTE')
    14          AND
    15              l.sec <= sec_10_min
    16       ) ct
    17  FROM
    18      (   SELECT
    19              sec_10_min
    20          FROM
    21              (
    22                  select  trunc(sec,'HH') + trunc(to_char(sec,'MI') / 10) / 144 sec_10_min
    23                  from  v
    24                  WHERE
    25                      rownum > 0
    26              )
    27          group by
    28              sec_10_min
    29      )
    30    order by sec_10_min
    31  /
    SEC_10_MIN                  CT
    23/07/2011 08:00:00          0
    23/07/2011 08:10:00        511
    23/07/2011 08:20:00        897
    23/07/2011 08:30:00       1176
    23/07/2011 08:40:00       1179
    23/07/2011 08:50:00       1188HTH
    David
    Edited by: Bravid on Jul 20, 2011 2:43 PM
    Edited by: Bravid on Jul 20, 2011 2:48 PM
    Updated NLS to show times in the output

  • How to find the number of executions of a sql oracle 10g

    Is there any script handy which is useful to get the number of executions of a sql in particualr time in a rac environment.

    A lot depends on what time period you're trying to count the executions over...
    In V$SQL, there is a column EXECUTIONS that will count the number of executions since the SQL statement was loaded into the shared pool, which may be too long a period or too short a period for your question.
    If you are trying to get historical information and you have licensed the performance & tuning pack so that you can get the AWR, you could query the DBA_HIST_SQLSTAT table over an appropriate set of SNAP_ID's to get the totals for an arbitrary period of time.
    Justin

  • Select a number of fields between one field and another

    Hello,
    Is there any way to make a SELECT to show a number of fields between one field and another,
    without writting all the fields one by one ?
    For example, I have one table with these fields:
    TABLE EMPLOYEE:
    ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
    and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
    write in the SELECT all the fields one by one.
    Is this possible?
    Thank you very much.
    Sorry for my english it's not very good.

    Swam wrote:
    Hello,
    Is there any way to make a SELECT to show a number of fields between one field and another,
    without writting all the fields one by one ?
    For example, I have one table with these fields:
    TABLE EMPLOYEE:
    ID_EMPLOYEE NAME PHONE CAR AGE MARRIED
    and I just want to make a SELECT who shows only fields from NAME to AGE, but i don't want to
    write in the SELECT all the fields one by one.
    Is this possible?
    Thank you very much.
    Sorry for my english it's not very good.If you use the DBMS_SQL package to execute your query you can reference the columns by position rather than name.
    One examples of using DBMS_SQL package:
    SQL> ed
    Wrote file afiedt.buf
      1  DECLARE
      2    cur       PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
      3    cols      DBMS_SQL.DESC_TAB;
      4    ncols     PLS_INTEGER;
      5    v_min_col NUMBER := 2;
      6    v_max_col NUMBER := 4;
      7    v_val     VARCHAR2(4000);
      8    v_bindval VARCHAR2(4000);
      9    v_ret     NUMBER;
    10    d         NUMBER;
    11  BEGIN
    12    -- Parse the query.
    13    DBMS_SQL.PARSE(cur, 'SELECT * FROM emp', DBMS_SQL.NATIVE);
    14    -- Retrieve column information
    15    DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
    16    -- Display each of the column names and bind variables too
    17    FOR colind IN v_min_col..v_max_col
    18    LOOP
    19      DBMS_OUTPUT.PUT_LINE ('Column:'||colind||' : '||cols(colind).col_name);
    20      DBMS_SQL.DEFINE_COLUMN(cur,colind,v_bindval,4000);
    21    END LOOP;
    22    -- Display data for those columns
    23    d := DBMS_SQL.EXECUTE(cur);
    24    LOOP
    25      v_ret := DBMS_SQL.FETCH_ROWS(cur);
    26      v_val := NULL;
    27      EXIT WHEN v_ret = 0;
    28      FOR colind in v_min_col..v_max_col
    29      LOOP
    30        DBMS_SQL.COLUMN_VALUE(cur,colind,v_bindval);
    31        v_val := LTRIM(v_val||','||v_bindval,',');
    32      END LOOP;
    33      DBMS_OUTPUT.PUT_LINE(v_val);
    34    END LOOP;
    35    DBMS_SQL.CLOSE_CURSOR (cur);
    36* END;
    SQL> /
    Column:2 : ENAME
    Column:3 : JOB
    Column:4 : MGR
    SMITH,CLERK,7902
    ALLEN,SALESMAN,7698
    WARD,SALESMAN,7698
    JONES,MANAGER,7839
    MARTIN,SALESMAN,7698
    BLAKE,MANAGER,7839
    CLARK,MANAGER,7839
    SCOTT,ANALYST,7566
    KING,PRESIDENT,
    TURNER,SALESMAN,7698
    ADAMS,CLERK,7788
    JAMES,CLERK,7698
    FORD,ANALYST,7566
    MILLER,CLERK,7782
    PL/SQL procedure successfully completed.
    SQL>Of course, if you were going to do this properly you would bind the correct datatypes of variables based on the types of the columns (the type information is also available through the describe information)

  • SQL Query, to know the list of Invoices associated with a sales order

    Hello All,
    Can any one let me know the query to know the list of all the invoices associated with a sales order.
    Please do the needful.
    Thanks,

    Hello All,
    Please let me know is this possible to have the list of Invoices for an associated Sales Order.
    Thanks,
    Abdul

  • Access Web App - Need some advice with query (text to number problem)

    In an Access Web App I want to create a query.
    I have two tables which are related but in a bit complicated way. For some reason I have a text field in which I save a number. This number relates to the ID of another table. When I combine these two tables in a query, it's not working because the textfield
    cannot query the (ID)number field.
    Is there a way, in this query so that I covert the text field to a number so the query will work?
    I tried to do it with the "Parse" function but no luck, so far.
    Thanks, Mike

    Hi Mike,
    Based on the description, you want to create a query by joining a text filed with number filed?
    Did I understood correctly? If so, as far as I test, it works in Access 2013 web app. Here is the screen shot for your reference:
    If I misunderstood, please feel free to let me know.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • TS2776 I used my Ipod while at the gym one day and now it's acting wacky.  I have tunes that will not download due to an "unexpected error (-50).  Anyone know what this is and how to fix it?

    I used my Ipod while at the gym one day and now it's acting wacky.  I have tunes that will not download due to an "unexpected error (-50).  Anyone know what this is and how to fix it?

    looks like the gtk theme is not the problem. didnt really think it was, but the documentation was worth posting. the guys over at ubuntu look as though they have dealt with this in great detail, and have produced a few solutions, which may or may not work. i have decided to post these for anyone else who may have these problems.
    Solution 1 - new user creation:
    https://bugs.launchpad.net/ubuntu/+bug/104521
    Solution 2 - config file delete:
    http://ge.ubuntuforums.com/showthread.php?t=724439
    post number 6 here features the config file delete solution, as well as a link to another post which may be useful.
    judging by a google search on this problem and the number of responses that came up, the bonobo/daemon error is quite a common curse for the users of gnome, although much more common in distros such as ubuntu or fedora.
    i hope that this proves useful and if anyone has anything to add, please feel free. the more documentation the better.
    EDIT:
    another solution would be to remove gnome and reinstall it from scratch. (some please tell me if i am doing this correctly. thanks )
    1. clean your catch:
    pacman -Scc
    2. remove gnome, gnome extras, and whatever other gnome files you might have installed
    pacman -Rscn gnome gnome-extra etc...
    3. reinstall gnome and gnome extras
    pacman -Sy gnome gnome-extra
    4. reconfigure your desktop the way you want.
    Last edited by czechman86 (2008-05-28 23:42:43)

  • Workflwow query to know the status of the PO, Action, performed by

    can any one help me to get the workflow query to know the status of the PO, Action, performed by. or the table which can show the Action, Performed by.
    please help me with action history table
    Edited by: user11309801 on Jun 20, 2010 1:13 AM

    Not sure what workflow has to do with PO action history, but pl see if MOS Doc 394787.1 (How to Tell What had been Changed and Who had Made the Changes to a Purchase Order?) can help.
    HTH
    Srini

Maybe you are looking for

  • Unlocked Iphone 4s doesn't work in my country

    Hi I bought an "unlocked 4s" from this seller on e-bay.  He has a lot of reputation and good feedback and seems genunine. http://www.ebay.co.uk/itm/350980444162 Now we live in little country called Andorra next to Spain and France. I put my local sim

  • Paint JProgressBar in new Thread

    Hi, I have a DnD Applet for managing your computer(files and folders) at work from home and have a problem with painting a JProgressBar during the drop action. I've tried to paint the JProgressBar in a new Thread but it freezes. I can see the progres

  • 2.6 gb of "other"

    Hi When I go to sync my phone on my computer, it shows 2.6gb of "other" storage being used... What is this and how do I get rid of (or decrease) it? I have tried resetting my phone and I have tried manually deleting other unneccessary files, but noth

  • 'Save' in Adobe Reader

    I've searched the forum and seen variations on this theme but can't find anything that addresses my problem. When a user tries to Save their form in Reader, it will only save a blank copy.  This obviously has something to do with enabling usage right

  • Multi-Machine Blueprint- How to share IPs, passwords, etc..

    I am trying to configure a multi-machine deployment in Application Director. I want the machines to have each others IPs, db passwords, and things like that. So they can all run together in a little environment hosting apps and websites. I am looking