BW Query Usuage Statistics

Hi Experts,
I have a requiremnet to analyse Query Usuage in our nvironment. I basically need below infomation
a. How many times a query was accessed
b. Number user Attempts per day.
c. Query runtime
d. Query used by which user
e. Query last accessed on date
I know BW statistics cube can be used.
But I would like to know what Cubes and what reporrts needs to used.
Thanks,
DV

See [this|http://www.myitgroup.com/upload/BusinessIntelligence/How%20to%20REALLY%20Activate%20BW%20Statistics%20Content%20for%20BW%203.doc] document, it's also a great tutorial on how to activate business content in general

Similar Messages

  • Detailed Query Runtime Statistics - Substeps of Data manager Event

    Dear All,
    I am using the report for 0TCT_MC02_Q0200 to analyse the Detailed Query Runtime Statistics.
    The report shows that the Event 9000 (Data manager Event) took a time of 109 seconds.
    I would like to know as to what does the 9000 Data Manager Event that takes 109 seconds do for me.
    What is it doing for 109 seconds ????
    Can I have more details about the substeps of Data manager Event and time taken by them ???  Any Table or a report would suffice my requriement.
    Thanks
    Regards
    Shalabh

    Hi Jain,
    Execute the query in RSRT or in RRMX. To Check how much time it is taking to execute this querry?? To get this information, Goto SE11> Give table name RSDDSTAT_DM in BI7.0 or RSDDSTAT in BW3.x> Display -> Contents-> Give from date and to date values as today, user name as Ur user name, and give the query name--> execute.
    Now u'll get a list with fields like Object name(Report name), Time read, Infoprovider name(Multiprovider), Partprovider name (Cube), Aggregate name... etc. If the time read is less than 100,000,000 (100 sec) is acceptable. If the time read is more than 100 sec then it is recommended to create Aggregates for that query to increase performance.
    Here in this table u'll find detailed Query Runtime Statistics.
    Hope thsi helps you..
    Regards,
    Ramki.

  • Error in BI Administration Cockpit for "Query Runtime Statistics"

    Dear all,
    after implementing the BI Administration Cockpit in BW and the EP I noticed, that whenever I try to modify my object selections under the node "Query Runtime Statistics", I get an error saying
    "The Entered Value Is Not in the List of Valid Values"
    This occurs under the following nodes:
       BI Application Statistics -> BI Application Selection -> Web Templates / Workbooks
       BI Application Object Statistics -> BI Application Object Selection -> Queries / Query Views / Planning Functions ....
       InfoProvider Statistics -> InfoProvider Type Selection
    Any ideas how to fix this issue???
    Thanks,
    Andreas

    Andreas,
    Thank you for your response. I applied the note 1463442 to our Development system. It fixed the error, that is , now I don't get "entered value is not in list of valid value". But when I unselect objects and click on "SUBMIT" button, nothing happens. It should redraw the report based on the selection.
    Is this working for you ? If so, please advise us.
    Thanks again,
    Ravi

  • Query Runtime Statistics - Delta Load Errors

    Good Morning,
    We recently upgraded our BI system to 7.0.  One of the consultants who was here activated some standard business content, as the title of my subject shows, Query Runtime Statistics.  The Infocube that is being loaded in the process chain he activated is: 0TCT_C01.   This load utilizes 4 individual delta loads, coming from Datasources: 0TCT_DSA1, 0TCT_DSO1, 0TCT_DSO2, and 0TCT_DSO3.
    The problem we're having is that at least 2 of these frequently fail ( 0TCT_DSO2 and 0TCT_DSO3 ).
    The failure messages we get is that some of the data coming in for object 0TCTSTATOBJ (Query Runtime Object) is always bad.   Some example values of the data that it is trying to load include:
    FILTER(1)
    TABELLE(1)
    GENERISCHER NAVIGATIONSBLOCK(1
    I'm not seeing anything in particular that would indicate these as being invalid values.  The ()'s I wouldn't think would be causing it, given that those are in our system as acceptable characters (checked RSKC to verify) and there's nothing else that looks out of place (aside from the values coming in as German). Has anyone else come across an error like this for this particular statistics load?  Manually changing these erroneous in the PSA is not an option given the frequency of the failures.
    Any help would be greatly appreciated.  If I need to clarify or relay any additional information, please let me know as well.  Thanks

    Sita,
    I greatly appreciate your response.  However, I probably should have provided some additional technical information regarding the issue.
    The values I posted actually are from the PSA.  These values that are given are telling the person what Java object the report being used, has had an issue (may not just be reporting issues, but general statistics for the use of these java objects, not sure yet).
    I am aware that when BI gets an invalid character, it replaces it (in the display screen) with a #.  Unfortunately, we do have # in our permitted characters and the reason why that doesn't work to qualify what was entered is because while it shows up in your display screen as a #, in the background it still sees it as the invalid char.   Subsequently, you won't always be able to see what that invalid char is.  We've encountered this many times over the years with our Sales Orders when a Rep (or someone within the company) enters invalid characters (typically they do a copy and paste from Excel using a different Font, or are using arabic or other foreign characters).
    Given that the values we're recieving are in German, my only conclusion is that the words themselves contain german characters often used in certain letters.  For example, the letter U can sometimes have what they call an umlout (spelling may be off on that).  An umlout almost looks like a quotation mark that is placed directly above the letter itself.   Another common letter in German is the ß symbol.
    We may be able to bypass our problem by entering in these german characters, but I guess I was looking for more than just a "hack" solution and was curious if anyone else out there has had a similar issue on their system and if they were able to come up with a solution other than trying to guess and add in "special characters" that are not normally used in the english language.
    Again, my appologies for not being more descriptive and thank you again for replying.

  • Where will I specify process chain and query time statistics to be loaded .

    I am on BI 7.0. I see on my system, BI Statistics Technical Content has been installed because when I run
    RSDDSTAT transaction under Info Provides I see cubes such as 0TCT_C01, oTC_C02, oTCT_C03,  oTCT_MC01, 0TCT_VC01..
    I also see process chains installed on my system such as oTCT_C2_INIT_P01,  oTCT_C2_DELTA_P01.
    I see various RSDDSTAT* tables being populated on my system as well.
    My questions are:
    1.     How does data gets populated in 0TCT_C01, C02 etc? Is it by scheduling TC process chains or there are other means?
    2.      Where does one specify what kind of statistics will be copied from RSDDSTAT* tables. My IT lead tells me that process chain statistics are not being collected. I also thing query times are not being populated  in 0TCT tables. Where can I specify what should be loaded in these cubes.
    3.     Does ST03N transaction display data from 2.
    THANKS A LOT.

    Hi,
    1.     How does data gets populated in 0TCT_C01, C02 etc? Is it by scheduling TC process chains or there are other means?
    You can find the DataSource in RSA1. For example, 0TCT_C01 is updated from 0TCT_DS01. And you need to schedule process chain 0TCT_C0_DELTA_P01 for query statistics and 0TCT_C2_DELTA_P01 for data load statistics on a regular basis. Of course, as they are delta chains, you need to first run initializaiton chains for just one time before scheduling delta chains. The initialization chains are 0TCT_C0_INIT_P01 and 0TCT_C2_INIT_P01.
    2.      Where does one specify what kind of statistics will be copied from RSDDSTAT* tables. My IT lead tells me that process chain statistics are not being collected. I also thing query times are not being populated in 0TCT tables. Where can I specify what should be loaded in these cubes.
    As I know, the statistics data are first stored in RSDDSTAT* tables. For example, query data are stored in RSDDSTAT_OLAP. And the data are loaded to corresponding cubes when you executing InfoPackages.
    You can refer to this link and search "Recording BI Statistics" in this page:
    http://help.sap.com/saphelp_nw70/helpdata/en/44/3521c7bae848a1e10000000a114a6b/content.htm
    3.     Does ST03N transaction display data from 2.
    Yes. If BI Statistics content are not activate you would be unable to view statistics data in ST03N.
    Let us know if you have other questions.
    Regards,
    Frank

  • Dynamically extracting SQL query costs/statistics at runtime

    Hi there,
    I need to measure the I/O cost (such as 'physical reads')of a SQL statement at runtime. What I'm looking to do is to test the total cost of a number of queries in a java program. So I need to get the cost automatically and add them up.
    There are a few tools that can give statistics on I/O cost, such as autotrace, but I need to collect these information using Java through JDBC.
    Any pointers?
    Also I am a little confused about the terms used in oralce. What I need is the number of db blocks accessed by the query, either from buffer or disk. Are these referred as 'logical read' and 'physical read' respectively? Or are 'logical read' and 'physical read' just mean the number of reads?
    Thank you,

    Logical and consistent reads are against the DB Buffers, Physical reads are disk io. When evaluating the cost of a query, pay attention to an abnormally high number of logical reads. This is usually an indicator of a poorly performing query ie a correlated sub-query.

  • Qn about query usage statistics

    Hello
    I'm trying to find / analyze infocube usage statistics for the first time and have a few questions.
    I have a 3.5 cube "ZCOLLECTIONS" on which I need to run statistics to see how often queries on that cube are used.
    I see two queries under that infocube - 'Collections_1_query' and 'Collections_2_query'
    I see that statistics cube 0TCT_C01 is loaded everyday.
    I created a query on 0TCT_C01 and restricted the Infoprovider to ZCOLLECTIONS and query to 'Collections_1_query'. When I ran the query, it gave no results (so I guess this query is never used?)
    When I tried to restrict the Infoprovider by the query Collections_2_query, it says that the query could not be found.
    I can see from the query properties that it was created a few weeks back. So why would it not be found? Could it be because the query was saved in the author's favorites?
    Am I looking for the statistics in the correct way ?
    Any tips would be greatly appreciated!
    Thanks
    Karen.

    Hi ,
    Check this out..hope your loading stats data on a regular basis. Please check if those queries your are looking for are present in the Technical Content cubes.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90080703-4331-2a10-cd98-9c1e95acdea0
    Thanks

  • Using the Tag Query's Statistics Mode

    I've tried to come up with the average of tag values over a span of a month two different ways:
    1.  using the Statistics mode
    2.  using the HistoryEvent mode and averaging the resultant data with an average function.
    For most tags the two results are quite similar.  I have one tag however that contains a lot of zero values and for that tag, the Statistics mode average is about 10% higher than the HistoryEvent mode average. It's like the Statistics mode ignores the zero values when doing it's calculations.
    Is this correct?  My tag query is returning data from six tags - does this cause the Statistics mode any heartache?
    David Macindoe

    David,
    Martin K - if you are listening please feel free to correct or confirm the following:
    The PI UDS uses native Statistical method calls to the PI API/SDK, so the results are coming directly from PI.  In this case, xMII is not doing a HistoryEvent call and then doing the average calcs on the raw event records, like it would be if you did it in BLS.
    Regards,
    Jeremy

  • Query runtime statistics not displaying data

    Hello,
    We have installed BI 7.0 Business content. 0TCT_MC02 is based on 0TCT_C02 and 0TCT_VC02.
    Query 0TCT_MC02_Q0200 based on this multiprovider is not returning any results. There is restriction in the query to display last 24hrs stats.
    In our case, 0TCT_C02 is not getting updated, but when we run this query it should pull data from virtual provider 0TCT_VC02 for last 24hrs stats. Its not at all accessing the Virtual provider, I checked SQL trace and found that everytime its just hitting standard cube. DS is assigned to virtual provider and 'Activate Direct access' is also set.
    I also checked RSDDSTAT_OLAP and RSDDSTAT_DM table which are getting updated.
    I copied the same query and ran with those selections for which data is available in the standard cube and I got the result.
    What could be the reason that its not hitting virtual provider?
    Thanks
    Sundar

    Hello Patrick,
    I already have created a copy query of 0TCT_MC02_Q0200 and removed the SAP Exit variable from Timestamp object that restricts query for last 24hrs data and introduced another user entry variable.
    When I ran this query it displays only those data that are available in 0TCT_C02. When I run it to pull recent data that is not available in 0TCT_C02, it has to goto 0TCT_VC02, but its not pulling from vc and displays 'No applicable data'.
    So I understand that is some issue with pulling data from 0TCT_VC02, but I dont know why
    So pls throw in your thoughts.
    Thanks
    Sundar

  • Query runs faster when there is no statistics

    Hi Gurus
    I have a Oracle 10.2.0.1 instance and I'm seeing the following weird behavior, I appreciate any pointers or references to resolve this problem.
    Thank you very much.
    1. Run the below mentioned query for 10 times continuously from sqlplus. Elapsed time is around 115 seconds (around 2
    min) for each execution. Elapsed time is constant, no increase or decrease. Tables involved in the query have statistics with 100% sampling.
    2. delete the statistics on 2 tables involved in query. Flush the shared_pool
    (alter system flush shared_pool).
    3. Run the query for 10 times. Elapsed time is less than 2 seconds for each execution. Elapsed time is constant, no
    increase or decrease.
    The Query: (it is a generated query, no option for modifying it).
    select count(distinct itm1.itm_id) FROM ita ita1, ita ita2, itm itm1, itm itm2, itm itm3
    where itm1.itm_container_id = 2812
    and itm1.itm_version_id <= 999999999
    and itm1.itm_next_version_id >= 999999999
    and itm2.itm_primary_key = 'RAYBESTOS'
    and itm3.itm_primary_key = '1'
    and ita1.ita_node_id = 3111
    and itm2.itm_container_id = 2020
    and ita1.ita_item_id = itm1.itm_id
    and ita1.ita_version_id <= 999999999
    and ita1.ita_next_version_id >= 999999999
    and itm2.itm_id = ita1.ita_value_numeric
    and itm2.itm_version_id <= 999999999
    and itm2.itm_next_version_id >= 999999999
    and ita2.ita_node_id = 3118
    and itm3.itm_container_id = 2025
    and ita2.ita_item_id = itm1.itm_id
    and ita2.ita_version_id <= 999999999
    and ita2.ita_next_version_id >= 999999999
    and itm3.itm_id = ita2.ita_value_numeric
    and itm3.itm_version_id <= 999999999
    and itm3.itm_next_version_id >= 999999999;
    Query uses dynamic sampling when there is no statistics.
    tkprof report shows there is a small difference in execution plan between 2 cases. When there is no statistics, there is table access by index rowid. It may be the reason for faster response time.
    Rows Row Source Operation
    1 SORT GROUP BY (cr=47235 pr=0 pw=0 time=919461 us)
    758 {color:#ff0000}TABLE ACCESS BY INDEX ROWID TCTG_ITA_ITEM_ATTRIBUTES (cr=47235 pr=0 pw=0 time=600473 us){color}
    14163 NESTED LOOPS (cr=40652 pr=0 pw=0 time=299694 us)
    7081 NESTED LOOPS (cr=25708 pr=0 pw=0 time=538463 us)
    12771 NESTED LOOPS (cr=90 pr=0 pw=0 time=255699 us)
    1 MERGE JOIN CARTESIAN (cr=6 pr=0 pw=0 time=271 us)
    1 INDEX RANGE SCAN ICTG_ITM_1 (cr=3 pr=0 pw=0 time=74 us)(object id 105409)
    1 BUFFER SORT (cr=3 pr=0 pw=0 time=112 us)
    1 INDEX RANGE SCAN ICTG_ITM_1 (cr=3 pr=0 pw=0 time=43 us)(object id 105409)
    12771 INDEX RANGE SCAN ICTG_ITA_1 (cr=84 pr=0 pw=0 time=102210 us)(object id 105399)
    7081 INDEX RANGE SCAN ICTG_ITM_0 (cr=25618 pr=0 pw=0 time=363715 us)(object id 105408)
    7081 INDEX RANGE SCAN ICTG_ITA_0 (cr=14944 pr=0 pw=0 time=239803 us)(object id 105398)

    Hi Jonathan,
    Thanks again for your response. Yes, you are correct. Most of the rows have all 9s, and a small percentage have something else - and there are only a small number of distinct values.
    Here is the histogram info when there is statistics (some old data have been trimmed for this test).
    TABLE_NAME                            COLUMN_NAME                    NUM_DISTINCT NUM_BUCKETS   HISTOGRAM
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_COMPANY_ID                             2             2FREQUENCY
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_CATALOG_ID                            62            62FREQUENCY
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_ITEM_ID                           720867             1NONE
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_NODE_ID                              118           118FREQUENCY
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_VALUE_NUMERIC                     587504           254HEIGHT BALANCED
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_VALUE_STRING                     1060930           254HEIGHT BALANCED
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_VERSION_ID                            48            48FREQUENCY
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_NEXT_VERSION_ID                        1             1FREQUENCY
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_OCCURRENCE_ID                      16250           254HEIGHT BALANCED
    TCTG_ITA_ITEM_ATTRIBUTES              ITA_VALUE_STRING_IGNORECASE          1498257           254HEIGHT BALANCED
    TCTG_ITM_ITEM                         ITM_COMPANY_ID                             2             2FREQUENCY
    TCTG_ITM_ITEM                         ITM_ID                                720867             1NONE
    TCTG_ITM_ITEM                         ITM_CONTAINER_ID                          62            62FREQUENCY
    TCTG_ITM_ITEM                         ITM_PRIMARY_KEY                       531960             1NONE
    TCTG_ITM_ITEM                         ITM_VERSION_ID                            48            48FREQUENCY
    TCTG_ITM_ITEM                         ITM_NEXT_VERSION_ID                        1             1FREQUENCY
    TCTG_ITM_ITEM                         ITM_STATUS                                 3             1NONE
    TCTG_ITM_ITEM                         ITM_COLLAB_INFO                            7             1NONE
    TCTG_ITM_ITEM                         ITM_LAST_MODIFIED                     717098             1NONEdisplay_cursor without statistics
    SQL> @disp-cursor
                           756
    Elapsed: 00:00:03.81
    SQL_ID  d9q6j48ns19zv, child number 0
    select /*+ gather_plan_statistics */ count(distinct itm1.itm_id)   FROM ita ita1, ita ita2, itm itm1, itm itm2, itm itm3 where
    itm1.itm_container_id = 2812      and itm1.itm_version_id <= 999999999      and itm1.itm_next_version_id >= 999999999      and
    itm2.itm_primary_key = 'RAYBESTOS'      and itm3.itm_primary_key = '1'      and ita1.ita_node_id = 3111      and
    itm2.itm_container_id = 2020      and ita1.ita_item_id = itm1.itm_id      and ita1.ita_version_id <= 999999999      and
    ita1.ita_next_version_id >= 999999999      and itm2.itm_id = ita1.ita_value_numeric      and itm2.itm_version_id <= 999999999
    and itm2.itm_next_version_id >= 999999999      and ita2.ita_node_id = 3118      and itm3.itm_container_id = 2025      and
    ita2.ita_item_id = itm1.itm_id      and ita2.ita_version_id <= 999999999      and ita2.ita_next_version_id >= 999999999      and
    itm3.itm_id = ita2.ita_value_numeric      and itm3.itm_version_id <= 999999999      and itm3.itm_next_version_id >= 999999999
    Plan hash value: 2184662757
    | Id  | Operation                    | Name                     | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   1 |  SORT GROUP BY               |                          |      1 |      1 |      1 |00:00:03.61 |     178K| 73728 | 73728 |      |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| TCTG_ITA_ITEM_ATTRIBUTES |      1 |      1 |    756 |00:00:00.96 |     178K|       |  |           |
    |   3 |    NESTED LOOPS              |                          |      1 |      1 |  69879 |00:00:01.27 |     145K|       |  |           |
    |   4 |     NESTED LOOPS             |                          |      1 |      1 |  34939 |00:00:02.66 |   71815 |       |  |           |
    |   5 |      NESTED LOOPS            |                          |      1 |      1 |  35695 |00:00:00.71 |     229 |       |  |           |
    |   6 |       MERGE JOIN CARTESIAN   |                          |      1 |      1 |      1 |00:00:00.01 |       6 |       |  |           |
    |*  7 |        INDEX RANGE SCAN      | ICTG_ITM_1               |      1 |      1 |      1 |00:00:00.01 |       3 |       |  |           |
    |   8 |        BUFFER SORT           |                          |      1 |      1 |      1 |00:00:00.01 |       3 | 73728 | 73728 |      |
    |*  9 |         INDEX RANGE SCAN     | ICTG_ITM_1               |      1 |      1 |      1 |00:00:00.01 |       3 |       |  |           |
    |* 10 |       INDEX RANGE SCAN       | ICTG_ITA_1               |      1 |      1 |  35695 |00:00:00.29 |     223 |       |  |           |
    |* 11 |      INDEX RANGE SCAN        | ICTG_ITM_0               |  35695 |      1 |  34939 |00:00:01.14 |   71586 |       |  |           |
    |* 12 |     INDEX RANGE SCAN         | ICTG_ITA_0               |  34939 |      1 |  34939 |00:00:01.20 |   73590 |       |  |           |
    Predicate Information (identified by operation id):
       2 - filter("ITM3"."ITM_ID"="ITA2"."ITA_VALUE_NUMERIC")
       7 - access("ITM2"."ITM_PRIMARY_KEY"='RAYBESTOS' AND "ITM2"."ITM_CONTAINER_ID"=2020 AND "ITM2"."ITM_NEXT_VERSION_ID">=999999999 AND
                  "ITM2"."ITM_VERSION_ID"<=999999999)
           filter("ITM2"."ITM_VERSION_ID"<=999999999)
       9 - access("ITM3"."ITM_PRIMARY_KEY"='1' AND "ITM3"."ITM_CONTAINER_ID"=2025 AND "ITM3"."ITM_NEXT_VERSION_ID">=999999999 AND
                  "ITM3"."ITM_VERSION_ID"<=999999999)
           filter("ITM3"."ITM_VERSION_ID"<=999999999)
      10 - access("ITA1"."ITA_NODE_ID"=3111 AND "ITM2"."ITM_ID"="ITA1"."ITA_VALUE_NUMERIC" AND "ITA1"."ITA_NEXT_VERSION_ID">=999999999
                  AND "ITA1"."ITA_VERSION_ID"<=999999999)
           filter("ITA1"."ITA_VERSION_ID"<=999999999)
      11 - access("ITA1"."ITA_ITEM_ID"="ITM1"."ITM_ID" AND "ITM1"."ITM_NEXT_VERSION_ID">=999999999 AND "ITM1"."ITM_CONTAINER_ID"=2812 AND
                  "ITM1"."ITM_VERSION_ID"<=999999999)
           filter(("ITM1"."ITM_CONTAINER_ID"=2812 AND "ITM1"."ITM_VERSION_ID"<=999999999))
      12 - access("ITA2"."ITA_ITEM_ID"="ITM1"."ITM_ID" AND "ITA2"."ITA_NEXT_VERSION_ID">=999999999 AND "ITA2"."ITA_NODE_ID"=3118 AND
                  "ITA2"."ITA_VERSION_ID"<=999999999)
           filter(("ITA2"."ITA_NODE_ID"=3118 AND "ITA2"."ITA_VERSION_ID"<=999999999))
    Note
       - dynamic sampling used for this statement
    54 rows selected.
    Elapsed: 00:00:00.04Display_cursor with statistics
    SQL> @disp-cursor
                           756
    Elapsed: 00:01:57.53
    SQL_ID  d9q6j48ns19zv, child number 0
    select /*+ gather_plan_statistics */ count(distinct itm1.itm_id)   FROM ita ita1, ita ita2, itm itm1, itm itm2, itm
    itm3 where itm1.itm_container_id = 2812      and itm1.itm_version_id <= 999999999      and itm1.itm_next_version_id
    = 999999999 and itm2.itm_primary_key = 'RAYBESTOS' and itm3.itm_primary_key = '1' andita1.ita_node_id = 3111      and itm2.itm_container_id = 2020      and ita1.ita_item_id = itm1.itm_id      and
    ita1.ita_version_id <= 999999999      and ita1.ita_next_version_id >= 999999999      and itm2.itm_id =
    ita1.ita_value_numeric      and itm2.itm_version_id <= 999999999      and itm2.itm_next_version_id >= 999999999
    and ita2.ita_node_id = 3118      and itm3.itm_container_id = 2025      and ita2.ita_item_id = itm1.itm_id      and
    ita2.ita_version_id <= 999999999      and ita2.ita_next_version_id >= 999999999      and itm3.itm_id =
    ita2.ita_value_numeric      and itm3.itm_version_id <= 999999999      and itm3.itm_next_version_id >= 999999999
    Plan hash value: 332134648
    | Id  | Operation                | Name       | Starts | E-Rows | A-Rows |   A-Time   | Buffers |  OMem |  1Mem | Used-Mem |
    |   1 |  SORT GROUP BY           |            |      1 |      1 |      1 |00:01:54.75 |    3041K| 73728 | 73728 |          |
    |   2 |   NESTED LOOPS           |            |      1 |      1 |    756 |00:00:30.95 |    3041K|       |       |          |
    |   3 |    NESTED LOOPS          |            |      1 |      1 |  34939 |00:00:02.73 |   71818 |       |       |          |
    |   4 |     NESTED LOOPS         |            |      1 |      1 |  35695 |00:00:00.75 |     230 |       |       |          |
    |   5 |      MERGE JOIN CARTESIAN|            |      1 |      1 |      1 |00:00:00.01 |       6 |       |       |          |
    |*  6 |       INDEX RANGE SCAN   | ICTG_ITM_1 |      1 |      1 |      1 |00:00:00.01 |       3 |       |       |          |
    |   7 |       BUFFER SORT        |            |      1 |      1 |      1 |00:00:00.01 |       3 | 73728 | 73728 |          |
    |*  8 |        INDEX RANGE SCAN  | ICTG_ITM_1 |      1 |      1 |      1 |00:00:00.01 |       3 |       |       |          |
    |*  9 |      INDEX RANGE SCAN    | ICTG_ITA_1 |      1 |      1 |  35695 |00:00:00.32 |     224 |       |       |          |
    |* 10 |     INDEX RANGE SCAN     | ICTG_ITM_0 |  35695 |      1 |  34939 |00:00:01.19 |   71588 |       |       |          |
    |* 11 |    INDEX RANGE SCAN      | ICTG_ITA_1 |  34939 |      1 |    756 |00:01:52.76 |    2969K|       |       |          |
    Predicate Information (identified by operation id):
       6 - access("ITM3"."ITM_PRIMARY_KEY"='1' AND "ITM3"."ITM_CONTAINER_ID"=2025 AND
                  "ITM3"."ITM_NEXT_VERSION_ID">=999999999 AND "ITM3"."ITM_VERSION_ID"<=999999999)
           filter("ITM3"."ITM_VERSION_ID"<=999999999)
       8 - access("ITM2"."ITM_PRIMARY_KEY"='RAYBESTOS' AND "ITM2"."ITM_CONTAINER_ID"=2020 AND
                  "ITM2"."ITM_NEXT_VERSION_ID">=999999999 AND "ITM2"."ITM_VERSION_ID"<=999999999)
           filter("ITM2"."ITM_VERSION_ID"<=999999999)
       9 - access("ITA1"."ITA_NODE_ID"=3111 AND "ITM2"."ITM_ID"="ITA1"."ITA_VALUE_NUMERIC" AND
                  "ITA1"."ITA_NEXT_VERSION_ID">=999999999 AND "ITA1"."ITA_VERSION_ID"<=999999999)
           filter(("ITA1"."ITA_VALUE_NUMERIC" IS NOT NULL AND "ITA1"."ITA_VERSION_ID"<=999999999))
      10 - access("ITA1"."ITA_ITEM_ID"="ITM1"."ITM_ID" AND "ITM1"."ITM_NEXT_VERSION_ID">=999999999 AND
                  "ITM1"."ITM_CONTAINER_ID"=2812 AND "ITM1"."ITM_VERSION_ID"<=999999999)
           filter(("ITM1"."ITM_CONTAINER_ID"=2812 AND "ITM1"."ITM_VERSION_ID"<=999999999))
      11 - access("ITA2"."ITA_NODE_ID"=3118 AND "ITM3"."ITM_ID"="ITA2"."ITA_VALUE_NUMERIC" AND
                  "ITA2"."ITA_NEXT_VERSION_ID">=999999999 AND "ITA2"."ITA_ITEM_ID"="ITM1"."ITM_ID" AND
                  "ITA2"."ITA_VERSION_ID"<=999999999)
           filter(("ITA2"."ITA_VALUE_NUMERIC" IS NOT NULL AND "ITA2"."ITA_VERSION_ID"<=999999999 AND
                  "ITA2"."ITA_ITEM_ID"="ITM1"."ITM_ID"))
    51 rows selected.
    Elapsed: 00:00:00.28

  • Query/report based on statistics

    Hi Experts,
    Does anybody know how to create a query/report based on statistics??
    For eg: I got one report output in excel sheet with SAP logo,this report gives the details of All the queries with long runtime.
    The columns in the report are Query,Navigations,Mean Rumtime and Number of users. I want to create similar one can anybody explain me how to?(I am working on BI7.0)

    Pia,
    No need to create a new report. Activate BI statistics and these reports are available. check below links...
    [Monitoring Query Runtime Statistics|http://help.sap.com/saphelp_nw70/helpdata/en/a0/ea639f4bc749f99126d9ee3d96969b/content.htm]
    [Installing BI Statistics|http://help.sap.com/saphelp_nw04s/helpdata/en/8c/131e3b9f10b904e10000000a114084/content.htm]
    [BI Administration Cockpit and New BI Statistics Content in SAP ...|http://nextzeninfotech.com/Documents/50f95b21-7fb8-2910-0c81-f6935d4c654b.pdf]
    Srini

  • Oracle 11G - Oracle AWR query execution time in report

    I have used AWR tool of oracle 11G. I have exported query historical statistics of production databaser using awrextr.sql and then load the exported dump file using awrload.sql script.
    Then i used awrrpti.sql and awrsqrpi.sql for generating report of sql queries. Every thing is working fine and generated reports are also very helpful, but report does not show the exact time when the query was executed. How can i get the actual time when the query was executed ?
    any help please ?

    If you would have consulted the Oracle Reference Manual to get the view descriptions, you should have your question is a rhetorical one with the answer NO.
    This is because every statement can be executed one or more times, and Oracle would need to keep track of all individual executions.
    I do agree most 'applications' do not use bind variables, and consequently only have unique statements, but Oracle didn't take that into account, and rightly so.
    Sybrand Bakker
    Senior Oracle DBA

  • BI Statistics issue...

    Hi,
    We recently upgraded to BI 7.0 few months ago.
    I know that new stats tables are introduced in BI 7.0 and their view is RSDDSTAT_DM and RSDDSTAT_OLAP.
    Yesterday I have come across an issue that these tables are retaining entries, which are only two weeks old. It is deleting entries older than 2 weeks. It appears that it does it everyday.
    The only programs I know which can be used to delete BI Stats are RSDDK_STA_DEL_DATA and RSDDSTAT_DATA_DELETE. I have verified that none of them is scheduled. I have checked the RSDDSTAT transaction as well and it uses the same program to delete.
    Earlier I thought that somebody might have triggered accidentally to delete them. But it becomes evident that it is deleting them regularly everyday. I do not know how?
    Does anybody have any idea, where I can find if this is scheduled?
    I am not able to find it.
    Your help will be appreciated.
    Surinder.

    Statistics data should generally be deleted when data is loaded to the InfoCubes of the technical content. If the technical content is not activated, or if the data is to be deleted from the statistics table for some other reason, you can also do this manually in the maintenance for the statistics properties.
    When you choose  Delete Statistical Data
    (Tcode- RSDDSTAT), the dialog box for restricting the areas in which the statistics data is to be deleted appears. You can select multiple areas.
    1)     <b>Query Statistics Tables:</b> The system deletes the data for the BI query runtime statistics.
    2)     <b>Aggregates/BIA Index Processes:</b> See Statistics for the Maintenance Processes of a BI Accelerator Indexs.
    3)     <b>InfoCube Statistics (Delete, Compress):</b> The system deletes the data of the InfoCube statistics that results when data is deleted from an InfoCube or when data requests of an InfoCube are compressed.
    Using the Up to Day (Incl.) field, you can enter a date up until which the system is to delete the statistics data. If you do not enter a date, all data is deleted. Since this can be executed with a command (TRUNCATE TABLE), (and not using selective deletion in the database), this version is considerably faster.
    By restricting to one day, packages of 1000 records only are always deleted from the tables; this is followed by a database Commit. This makes it possible to restart after a termination (resulting from a TIMEOUT, for example), without a need to redo previous work.
    Hope it Helps
    Chetan
    @CP..

  • Warehouse wise Detailed query Report

    Please share detailed report on Warehouse wise, it consists of Purchase,Goods Receipt, Inventory Transfer,Invoices, sales return

    Hi Jain,
    Execute the query in RSRT or in RRMX. To Check how much time it is taking to execute this querry?? To get this information, Goto SE11> Give table name RSDDSTAT_DM in BI7.0 or RSDDSTAT in BW3.x> Display -> Contents-> Give from date and to date values as today, user name as Ur user name, and give the query name--> execute.
    Now u'll get a list with fields like Object name(Report name), Time read, Infoprovider name(Multiprovider), Partprovider name (Cube), Aggregate name... etc. If the time read is less than 100,000,000 (100 sec) is acceptable. If the time read is more than 100 sec then it is recommended to create Aggregates for that query to increase performance.
    Here in this table u'll find detailed Query Runtime Statistics.
    Hope thsi helps you..
    Regards,
    Ramki.

  • Gather Table Statistics (Stats) Crashing Application

    Hello
    Just started a new place of work which has a 9i database with a VB Front End App.
    Noticed in the Database no stats had been gathered for any objects (ever).
    I decided to run a gather stats procedure on a particular heavily-used table but it caused the application to crash/freeze?
    begin
    dbms_stats.gather_table_stats(OWNNAME=>     , TABNAME=>     ,
    ESTIMATE_PERCENT=> dbms_stats.auto_sample_size,
    METHOD_OPT=> 'FOR ALL COLUMNS SIZE 1', CASCADE=>TRUE);
    end;
    I decided to use auto sample size and decided to also gather stats on indexes (and without CASCADE=FALSE) but appeared to crash the application. The job itself worked fine.
    Anyone ever encountered such issue? Could there be any reason for this (i.e. no stats ever gathered)?
    Thanks
    Edited by: user636420 on Jan 22, 2010 9:22 AM

    I have found something interesting..........
    Prior to Oracle 10g, Oracle's default optimizer mode was called “choose.” In the choose optimizer mode, Oracle will execute the rule-based optimizer if there are no statistics present for the table; it will execute the cost-based optimizer if statistics are present. The danger with using the choose optimizer mode is that problems can occur in cases where one Oracle table in a complex query has statistics and the other tables do not.
    This probably explains the fact that I am gathering statistics for 1 table and not the others.
    Just checked the explain plan for a particular SQL query and it's using CHOOSE optimizer mode.
    Edited by: user636420 on Jan 22, 2010 9:35 AM

Maybe you are looking for

  • Photoshop CS quitting unexpectedly

    Usually happens when loading a file. Today, the file size was about 100mb. It has happened with far smaller files as well. Error message is that it can't load the color book because there is not enough RAM. I'm running a dual 2gig G5 with OSX 10.4.3

  • Electronic Signature in a Captivate project

    How do you put an electronic signature in a Captivate project?

  • How do I read a range of data from an open and "live" Excel file using LV7.0 Express

    I need to interface with software which continuously (once per second) writes a new array to a fixed location in an open Excel file. I would like to read this data into Labview from where I can do what I like with it. I am relatively new to LabView a

  • Scope of Check Variation in Missing Part list Production Order

    Hi, I have a problem that While creation or conversion from planned order to production order if i get missing part list i found that Scope of check is as Z6 and ZP (Checking rule).But when when i Release the same production order also am getting mis

  • N8 and "fsmailserver: memory full."

    Hi, I have this problem with otherwise perfect N8. It frequently says "fsmailserver: memory full. Close applications and try again (in finnish "fsmailsserver: Muisti täynnä. Sulje sovelluksia ja yritä uudelleen"). This happens when i use e-mail. Acco