Abnormal high "query" count in customer tkprof output

We have a performance problem with one of our customer.
A query is made on a 12K rows table, and there is no full scan, the index is used.
If we run the query on our test database, which is identical, and examine the tkprof output, things appears normal:
Fetch=80, cpu=0.0, disk=0, query=15738,rows=782
But the same query, on and identical table, same index at our customer:
Fetch=831, cpu=4.75, disk=141, query=550564, rows=830
I dont unerstand what is the "query" parameter, the number of cache buffers read in memory ?
It is unbeleivebly high, further more, hard to understand high number of rows in the execution plan:
Ours
1570 TABLE ACCESS BY INDEX ROWID MY_SECRET_TABLE_NAME
1570 INDEX RANGE SCAN MY_PRIMARY_KEY_INDEX
Customers:
88413 TABLE ACCESS BY INDEX ROWID MY_SECRET_TABLE_NAME
92917 INDEX RANGE SCAN MY_PRIMARY_KEY_INDEX
We dont understand such high numbers. On theory, from our former DBA, was that our indexes where not create properly. A unique key index was create, then a primary constraint with the same name, was added to the table. Apparently we should have created only the constraint, and not the second index.
Any help appreciated.

Hi Guy,
Query = db block gets + consistent gets.
Consistent gets are the block reads you need to reconstruct a read-consistent image of the data.
If you can't fetch all records at a time, you will get multiple fetches. At each fetch Oracle will issue consistent gets, as it needs to provide to you the data in the state when you started the query.
Looking at your statistics, it is quite clear what happened.
Fetch=80, cpu=0.0, disk=0, query=15738,rows=782
782 rows in 80 fetches. Roughly 10 rows per fetch.
But the same query, on an identical table, same index at our customer:
Fetch=831, cpu=4.75, disk=141, query=550564, rows=830
830 rows in 830 fetches (the last fetch is to check there is no more data), which means 1 row per fetch.
In both cases: consistent gets at every fetch.
Somehow your client has made sure, by means of a setting, he will fetch only 1 row at a time. And that is killing him.
Nothing wrong with any index.
Hth
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • How to reduce the query fetch from TKPROF output?

    Hi,
    Below is my query contains the TKPROF output.Here fetch is too high. How to reduce the fetch from here. And please check the explain plan is good or not?
    SELECT  czci.config_hdr_id,
            czci.config_rev_nbr,
            asoqla.quantity,
             (SELECT
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci1
                WHERE   czci1.config_hdr_id = asoqld.config_header_id
                AND     czci1.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND     NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci1.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_DEVL_PROJECTS WHERE NAME LIKE 'Control Model')
                AND czci1.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = asoqld.config_header_id
                                                        AND sub_sub.CONFIG_REV_NBR = asoqld.config_revision_num
                                                        AND      sub_sub.PS_NODE_NAME = 'fittings')) fitting_material,
             (SELECT
                    node_desc.LOCALIZED_STR
                 FROM   CZ_LOCALIZED_TEXTS node_desc,
                        CZ_PS_NODES ps_nodes,
                        CZ_CONFIG_ITEMS czci
                WHERE   czci.config_hdr_id = asoqld.config_header_id
                AND     czci.config_rev_nbr = asoqld.config_revision_num
                AND    node_desc.INTL_TEXT_ID = ps_nodes.INTL_TEXT_ID
                AND NVL(node_desc.LANGUAGE,userenv('LANG')) = userenv('LANG')
                AND     czci.PS_NODE_ID = ps_nodes.PERSISTENT_NODE_ID
                 AND    ps_nodes.DEVL_PROJECT_ID = (SELECT MAX(DEVL_PROJECT_ID) FROM CZ_DEVL_PROJECTS WHERE NAME LIKE 'Control Model')
                AND czci.PARENT_CONFIG_ITEM_ID IN (SELECT sub_sub.CONFIG_ITEM_ID FROM CZ_CONFIG_ITEMS sub_sub
                                                        WHERE sub_sub.CONFIG_HDR_ID = czci.CONFIG_HDR_ID
                                                        AND sub_sub.CONFIG_REV_NBR = czci.CONFIG_REV_NBR
                                                        AND      sub_sub.PS_NODE_NAME = 'tubing')) tubing_material
    FROM    aso_quote_lines_all asoqla,
            aso_quote_line_details asoqld,
            cz_config_items czci
    WHERE   asoqla.quote_header_id = 55774
    AND     asoqla.item_type_code = 'MDL'
    --AND     asoqla.org_id = 2763
    AND     asoqla.quote_line_id = asoqld.quote_line_id
    AND     asoqld.config_header_id = czci.config_hdr_id
    AND     asoqld.config_revision_num = czci.config_rev_nbr
    AND     czci.ps_node_name = 'CONTROL MASTER ASLY'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.04       0.03          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        3      0.09       0.08          0       5100          0          19
    total        5      0.13       0.12          0       5100          0          19
    Misses in library cache during parse: 1
    Optimizer goal: ALL_ROWS
    Parsing user id: 173  (APPS)
    Rows     Row Source Operation
          3  TABLE ACCESS BY INDEX ROWID CZ_LOCALIZED_TEXTS (cr=2161 pr=0 pw=0 time=32425 us)
         40   NESTED LOOPS  (cr=2158 pr=0 pw=0 time=32276 us)
          3    NESTED LOOPS  (cr=2147 pr=0 pw=0 time=32156 us)
          3     NESTED LOOPS  (cr=925 pr=0 pw=0 time=15885 us)
          3      TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=665 pr=0 pw=0 time=13456 us)
       5490       INDEX RANGE SCAN CZ_CONFIG_ITEMS_PK (cr=96 pr=0 pw=0 time=1237 us)(object id 3049621)
          3      TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=260 pr=0 pw=0 time=2401 us)
       1094       INDEX RANGE SCAN CZ_CONFIG_ITEMS_PK (cr=19 pr=0 pw=0 time=250 us)(object id 3049621)
          3     TABLE ACCESS BY INDEX ROWID CZ_PS_NODES (cr=1222 pr=0 pw=0 time=16249 us)
          3      INDEX RANGE SCAN CZ_PS_NODES_N12 (cr=1219 pr=0 pw=0 time=16211 us)(object id 750095)
          1       SORT AGGREGATE (cr=1211 pr=0 pw=0 time=16125 us)
        209        TABLE ACCESS FULL CZ_DEVL_PROJECTS (cr=1211 pr=0 pw=0 time=15883 us)
         18    INDEX RANGE SCAN CZ_LOCALIZED_TEXTS_N1 (cr=11 pr=0 pw=0 time=68 us)(object id 31504)
          3  TABLE ACCESS BY INDEX ROWID CZ_LOCALIZED_TEXTS (cr=2161 pr=0 pw=0 time=31499 us)
         40   NESTED LOOPS  (cr=2158 pr=0 pw=0 time=31351 us)
          3    NESTED LOOPS  (cr=2147 pr=0 pw=0 time=31215 us)
          3     NESTED LOOPS  (cr=925 pr=0 pw=0 time=15271 us)
          3      TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=665 pr=0 pw=0 time=12441 us)
       5490       INDEX RANGE SCAN CZ_CONFIG_ITEMS_PK (cr=96 pr=0 pw=0 time=1230 us)(object id 3049621)
          3      TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=260 pr=0 pw=0 time=2795 us)
       1094       INDEX RANGE SCAN CZ_CONFIG_ITEMS_PK (cr=19 pr=0 pw=0 time=264 us)(object id 3049621)
          3     TABLE ACCESS BY INDEX ROWID CZ_PS_NODES (cr=1222 pr=0 pw=0 time=15920 us)
          3      INDEX RANGE SCAN CZ_PS_NODES_N12 (cr=1219 pr=0 pw=0 time=15863 us)(object id 750095)
          1       SORT AGGREGATE (cr=1211 pr=0 pw=0 time=15753 us)
        209        TABLE ACCESS FULL CZ_DEVL_PROJECTS (cr=1211 pr=0 pw=0 time=15452 us)
         18    INDEX RANGE SCAN CZ_LOCALIZED_TEXTS_N1 (cr=11 pr=0 pw=0 time=79 us)(object id 31504)
         19  TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=778 pr=0 pw=0 time=20571 us)
       5816   NESTED LOOPS  (cr=202 pr=0 pw=0 time=8497 us)
         21    NESTED LOOPS  (cr=96 pr=0 pw=0 time=2037 us)
         23     TABLE ACCESS BY INDEX ROWID ASO_QUOTE_LINES_ALL (cr=47 pr=0 pw=0 time=1427 us)
       1058      INDEX RANGE SCAN ASO_QUOTE_LINES_ALL_N1 (cr=9 pr=0 pw=0 time=51 us)(object id 81688)
         21     TABLE ACCESS BY INDEX ROWID ASO_QUOTE_LINE_DETAILS (cr=49 pr=0 pw=0 time=596 us)
         21      INDEX RANGE SCAN ASO_QUOTE_LINE_DETAILS_N1 (cr=28 pr=0 pw=0 time=323 us)(object id 81706)
       5794    INDEX RANGE SCAN CZ_CONFIG_ITEMS_PK (cr=106 pr=0 pw=0 time=1424 us)(object id 3049621)

    Hi
    After affed the exist operator i got below output. But it is more than that the previous one.
    SELECT czci.config_hdr_id, czci.config_rev_nbr, asoqla.quantity,
           (SELECT node_desc.localized_str
              FROM cz_localized_texts node_desc,
                   cz_ps_nodes ps_nodes,
                   cz_config_items czci1
             WHERE czci1.config_hdr_id = asoqld.config_header_id
               AND czci1.config_rev_nbr = asoqld.config_revision_num
               AND node_desc.intl_text_id = ps_nodes.intl_text_id
               AND NVL (node_desc.LANGUAGE, USERENV ('LANG')) = USERENV ('LANG')
               AND czci1.ps_node_id = ps_nodes.persistent_node_id
               AND ps_nodes.devl_project_id = (SELECT MAX (devl_project_id)
                                                 FROM cz_devl_projects
                                                WHERE NAME = 'Control Model')
               AND EXISTS (
                      SELECT NULL
                        FROM cz_config_items sub_sub
                       WHERE sub_sub.config_hdr_id = asoqld.config_header_id
                         AND sub_sub.config_rev_nbr = asoqld.config_revision_num
                         AND sub_sub.ps_node_name = 'fittings'
                         AND czci1.parent_config_item_id = sub_sub.config_item_id))
                                                                 fitting_material,
           (SELECT node_desc.localized_str
              FROM cz_localized_texts node_desc,
                   cz_ps_nodes ps_nodes,
                   cz_config_items czci1
             WHERE czci1.config_hdr_id = asoqld.config_header_id
               AND czci1.config_rev_nbr = asoqld.config_revision_num
               AND node_desc.intl_text_id = ps_nodes.intl_text_id
               AND node_desc.LANGUAGE = USERENV ('LANG')
               AND czci1.ps_node_id = ps_nodes.persistent_node_id
               AND ps_nodes.devl_project_id = (SELECT MAX (devl_project_id)
                                                 FROM cz_devl_projects
                                                WHERE NAME = 'Control Model')
               AND EXISTS (
                      SELECT NULL
                        FROM cz_config_items sub_sub
                       WHERE sub_sub.config_hdr_id = czci.config_hdr_id
                         AND sub_sub.config_rev_nbr = czci.config_rev_nbr
                         AND sub_sub.ps_node_name = 'tubing'
                         AND czci1.parent_config_item_id = sub_sub.config_item_id))
                                                                  tubing_material
      FROM aso_quote_lines_all asoqla,
           aso_quote_line_details asoqld,
           cz_config_items czci
    WHERE asoqla.quote_header_id = 55774
       AND asoqla.item_type_code = 'MDL'
    --AND     asoqla.org_id = 2763
       AND asoqla.quote_line_id = asoqld.quote_line_id
       AND asoqld.config_header_id = czci.config_hdr_id
       AND asoqld.config_revision_num = czci.config_rev_nbr
       AND czci.ps_node_name = 'CONTROL MASTER ASLY'
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.02       0.03          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        3      0.16       0.14          0      16526          0          19
    total        5      0.18       0.17          0      16526          0          19
    Misses in library cache during parse: 1
    Optimizer goal: ALL_ROWS
    Parsing user id: 173  (APPS)
    Rows     Row Source Operation
          3  TABLE ACCESS BY INDEX ROWID CZ_LOCALIZED_TEXTS (cr=7874 pr=0 pw=0 time=51192 us)
         40   NESTED LOOPS  (cr=7871 pr=0 pw=0 time=50953 us)
          3    NESTED LOOPS  (cr=7860 pr=0 pw=0 time=50729 us)
          3     TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=6638 pr=0 pw=0 time=33183 us)
          3      INDEX RANGE SCAN CZ_CONFIG_ITEMS_N1 (cr=6635 pr=0 pw=0 time=33060 us)(object id 31734)
          3       TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=6536 pr=0 pw=0 time=22873 us)
       1292        INDEX UNIQUE SCAN CZ_CONFIG_ITEMS_PK (cr=5244 pr=0 pw=0 time=15326 us)(object id 3049621)
          3     TABLE ACCESS BY INDEX ROWID CZ_PS_NODES (cr=1222 pr=0 pw=0 time=17483 us)
          3      INDEX RANGE SCAN CZ_PS_NODES_N12 (cr=1219 pr=0 pw=0 time=17411 us)(object id 750095)
          1       SORT AGGREGATE (cr=1211 pr=0 pw=0 time=17266 us)
        209        TABLE ACCESS FULL CZ_DEVL_PROJECTS (cr=1211 pr=0 pw=0 time=16844 us)
         18    INDEX RANGE SCAN CZ_LOCALIZED_TEXTS_N1 (cr=11 pr=0 pw=0 time=122 us)(object id 31504)
          3  NESTED LOOPS  (cr=7874 pr=0 pw=0 time=48203 us)
          3   NESTED LOOPS  (cr=7860 pr=0 pw=0 time=47973 us)
          3    TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=6638 pr=0 pw=0 time=30352 us)
          3     INDEX RANGE SCAN CZ_CONFIG_ITEMS_N1 (cr=6635 pr=0 pw=0 time=30218 us)(object id 31734)
          3      TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=6536 pr=0 pw=0 time=20960 us)
       1292       INDEX UNIQUE SCAN CZ_CONFIG_ITEMS_PK (cr=5244 pr=0 pw=0 time=14224 us)(object id 3049621)
          3    TABLE ACCESS BY INDEX ROWID CZ_PS_NODES (cr=1222 pr=0 pw=0 time=17570 us)
          3     INDEX RANGE SCAN CZ_PS_NODES_N12 (cr=1219 pr=0 pw=0 time=17510 us)(object id 750095)
          1      SORT AGGREGATE (cr=1211 pr=0 pw=0 time=17395 us)
        209       TABLE ACCESS FULL CZ_DEVL_PROJECTS (cr=1211 pr=0 pw=0 time=16937 us)
          3   TABLE ACCESS BY INDEX ROWID CZ_LOCALIZED_TEXTS (cr=14 pr=0 pw=0 time=165 us)
          3    INDEX UNIQUE SCAN CZ_LOCALIZED_TEXTS_PK (cr=11 pr=0 pw=0 time=132 us)(object id 3050530)
         19  TABLE ACCESS BY INDEX ROWID CZ_CONFIG_ITEMS (cr=778 pr=0 pw=0 time=41677 us)
       5816   NESTED LOOPS  (cr=202 pr=0 pw=0 time=16173 us)
         21    NESTED LOOPS  (cr=96 pr=0 pw=0 time=3617 us)
         23     TABLE ACCESS BY INDEX ROWID ASO_QUOTE_LINES_ALL (cr=47 pr=0 pw=0 time=2528 us)
       1058      INDEX RANGE SCAN ASO_QUOTE_LINES_ALL_N1 (cr=9 pr=0 pw=0 time=83 us)(object id 81688)
         21     TABLE ACCESS BY INDEX ROWID ASO_QUOTE_LINE_DETAILS (cr=49 pr=0 pw=0 time=1053 us)
         21      INDEX RANGE SCAN ASO_QUOTE_LINE_DETAILS_N1 (cr=28 pr=0 pw=0 time=598 us)(object id 81706)
       5794    INDEX RANGE SCAN CZ_CONFIG_ITEMS_PK (cr=106 pr=0 pw=0 time=8245 us)(object id 3049621)

  • Ellapsed time too much in tkprof output

    Hi All,
    I don't know exactly how to interprete Tkprof output file but i have a problem of performance inserting data to my one table, it takes around 1min but before it was 10 secs. i trace the program and analyze the output from tkprof and i get the following portion:
    insert /*+ APPEND +*/ into T_NAME(COL1,  COL2, COL3, .....)
    values
    (:s1 ,:s2 ,:s3 ,:s4 ,:s5 ,:s6 ,:s7 ,:s8 ,:s9 ,:s10 ,:s11 ,:s12 ,:s13 ,:s14 ,
    :s15 ,:s16 ,:s17 ,:s18 ,:s19 ,:s20 ,:s21 ,:s22 ,:s23 ,:s24 ,:s25 ,:s26 ,
    :s27 ,:s28 ,:s29 ,:s30 ,:s31 ,:s32 ,:s33 ,:s34 ,:s35 ,:s36 ,:s37 ,:s38 ,
    :s39 ,:s40 ,:s41 ,:s42 ,:s43 ,:s44 ,:s45 ,:s46 ,:s47 ,:s48 ,:s49 ,:s50 ,
    :s51 ,:s52 ,:s53 ,:s54 ,:s55 ,:s56 ,:s57 ,:s58 ,:s59 ,:s60 ,:s61 ,:s62 ,
    :s63 ,:s64 ,:s65 ,:s66 ,:s67 ,:s68 )
    call count cpu elapsed disk query current rows
    Parse 2 0.00 0.00 0 0 0 0
    Execute 3 2.94 292.24 12144 1501 57125 4728
    Fetch 0 0.00 0.00 0 0 0 0
    total 5 2.94 292.24 12144 1501 57125 4728
    Misses in library cache during parse: 2
    Misses in library cache during execute: 3
    Optimizer mode: ALL_ROWS
    Parsing user id: 103 (USERNAME)
    Rows Execution Plan
    0 INSERT STATEMENT MODE: ALL_ROWS
    When interpreting this, i got huge value on Ellapsed, disk column during execution:
    The command was exectued 3 times and it was taking 292 secs means 97 secs per execution. I thought it was making my insert problem slow.
    So if i'm not wrong how to avaoid this insertion problem, how to reduce this time of ellapsed.
    What is the problem causing table insertion slow.
    Please help because it is affecting our business
    Thanks for your help
    Raitsarevo

    raitsarevo wrote:
    Hi,
    Gathering statistics will affect performance or not. I mean when i gather statistics of my table now, will this affect operation in this table during execution, the table will be locked or not, indexes will be also or not. Can users work in the table during stat gathering.
    Can anybody give me script to gather stats for partitionned table please.
    Gathering statistics is a good idea in general but it's very unlikely that will help in your particular case. The data needs to be inserted into the table and indexes need to be maintained, this in independent from any statistics. Still it's a good idea in general to refresh statistics if e.g. bulk inserts increased the size and number of rows significantly.
    Have you followed up the advices already given so far regarding further checks and running your statement with tracing enabled at a higher level?
    You can enable this using the following instead of using sql_trace = true:
    ALTER SESSION SET EVENTS '10046 trace name context forever, level 8';and switch it off like that:
    ALTER SESSION SET EVENTS '10046 trace name context off';For more information regarding this, e.g. enabling trace in another session, see e.g. here:
    http://www.juliandyke.com/Diagnostics/Trace/EnablingTrace.html
    raitsarevo wrote:
    Hi guys,
    Reading an output fromENterprise manager, i found that this insert statement is consuming to much "db file sequential read ". I know that is causing wait event. So my question is how to reduce this consumption.
    Thanks
    Raitsarevo.That's very likely caused by the required index maintenance and there is not much you can do about it apart from dropping the indexes. As already mentioned by Jonathan you might hits bugs of the ASSM space management, therefore it would also be good to know if the tablespace the object resides in uses ASSM or not (check the columns EXTENT_MANAGEMENT, ALLOCATION_TYPE, SEGMENT_SPACE_MANAGEMENT of DBA_TABLESPACES).
    Try to generate the extended trace as advised and post the tkprof output here.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Adhoc query-Problem with Personnel no output field

    Hi Gurus,
    We are trying to run an adhoc query using a customized Info set(PNPCE logical database).
    While running the query,we had selected Personnel no(from Payroll status P0003 table) as output field and Company code(from Org assignment P0001) as input field in the selection.
    Problem is in the output field we are seeing the Personnel name details in place of Personnel no.Could anyone please suggest what could be the reason behind this and how to fix it.
    Your help will be highly appreciated.
    Warm Rgds
    Sushil

    Hi Sushil,
    The default output for fields with a text and a value (Name = text, PERNR = value) is the text.  You can change this by right clicking on the output box in Ad Hoc and selecting "Value".  If you want both name and number, select "Value and Text". 
    You can also change this default to Value from Text if in Ad Hoc, you go to Edit --> Settings.  On the last tab, change the radio buttion for output default to Value from Text.  This will change it for all fields so you would see the eight digit number rather than the name of the position or org unit.  Thus, you may want to keep it at Text and use the right click to change specific fields as needed.
    By the way, it is usually best to utilize the personnel number field from IT0000-Actions, although it can be obtained from any infotype if you include that field in the field group when creating your infoset. 
    Paul

  • Help in understanding TKPROF output

    Hi All,
    Following is the TKPROF output of a user_dump_dest trace file, obtained by setting trace to 10046@level 12.
    select "CHNNL"."CHNNL_BK" "C0", case "GEOG12"."SUB_STATE_PRVNC_CD" when
    *:"SYS_B_000" then :"SYS_B_001" when :"SYS_B_002" then :"SYS_B_003" when*
    *:"SYS_B_004" then :"SYS_B_005" when :"SYS_B_006" then :"SYS_B_007" when*
    *:"SYS_B_008" then :"SYS_B_009" when :"SYS_B_010" then :"SYS_B_011" when*
    *:"SYS_B_012" then :"SYS_B_013" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end*
    *"C1", "TIME_PERIOD13"."MONTH_CD" "C2", lpad(to_char(EXTRACT( MONTH*
    FROM
    *(TIMESTAMP :"SYS_B_014") )), :"SYS_B_015", :"SYS_B_016") "C3", sum(case*
    when "TIME_PERIOD13"."DAY_CLNDR_DATE"=TIMESTAMP :"SYS_B_017" then
    *"SALES_FACT"."EXTND_NET_SALE_AMNT" else :"SYS_B_018" end ) over (partition*
    by "CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_019"
    then :"SYS_B_020" when :"SYS_B_021" then :"SYS_B_022" when :"SYS_B_023"
    then :"SYS_B_024" when :"SYS_B_025" then :"SYS_B_026" when :"SYS_B_027"
    then :"SYS_B_028" when :"SYS_B_029" then :"SYS_B_030" when :"SYS_B_031"
    then :"SYS_B_032" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD") "C4", sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE" between (TIMESTAMP :"SYS_B_033" -*
    NUMTODSINTERVAL( EXTRACT( DAY FROM TIMESTAMP :"SYS_B_034" ), :"SYS_B_035" )
    + INTERVAL :"SYS_B_036" DAY) and TIMESTAMP :"SYS_B_037" then
    *"SALES_FACT"."EXTND_NET_SALE_AMNT" else :"SYS_B_038" end ) over (partition*
    by "CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_039"
    then :"SYS_B_040" when :"SYS_B_041" then :"SYS_B_042" when :"SYS_B_043"
    then :"SYS_B_044" when :"SYS_B_045" then :"SYS_B_046" when :"SYS_B_047"
    then :"SYS_B_048" when :"SYS_B_049" then :"SYS_B_050" when :"SYS_B_051"
    then :"SYS_B_052" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD") "C5", sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE"=TIMESTAMP :"SYS_B_053" then*
    *"SALES_FACT"."QTY_SOLD_IN_CASES" else :"SYS_B_054" end ) over (partition by*
    *"CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_055"*
    then :"SYS_B_056" when :"SYS_B_057" then :"SYS_B_058" when :"SYS_B_059"
    then :"SYS_B_060" when :"SYS_B_061" then :"SYS_B_062" when :"SYS_B_063"
    then :"SYS_B_064" when :"SYS_B_065" then :"SYS_B_066" when :"SYS_B_067"
    then :"SYS_B_068" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD") "C6", sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE" between (TIMESTAMP :"SYS_B_069" -*
    NUMTODSINTERVAL( EXTRACT( DAY FROM TIMESTAMP :"SYS_B_070" ), :"SYS_B_071" )
    + INTERVAL :"SYS_B_072" DAY) and TIMESTAMP :"SYS_B_073" then
    *"SALES_FACT"."QTY_SOLD_IN_CASES" else :"SYS_B_074" end ) over (partition by*
    *"CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_075"*
    then :"SYS_B_076" when :"SYS_B_077" then :"SYS_B_078" when :"SYS_B_079"
    then :"SYS_B_080" when :"SYS_B_081" then :"SYS_B_082" when :"SYS_B_083"
    then :"SYS_B_084" when :"SYS_B_085" then :"SYS_B_086" when :"SYS_B_087"
    then :"SYS_B_088" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD") "C7", sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE"=TIMESTAMP :"SYS_B_089" then*
    *"SALES_FACT"."QTY_SOLD_IN_KLGMS" else :"SYS_B_090" end ) over (partition by*
    *"CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_091"*
    then :"SYS_B_092" when :"SYS_B_093" then :"SYS_B_094" when :"SYS_B_095"
    then :"SYS_B_096" when :"SYS_B_097" then :"SYS_B_098" when :"SYS_B_099"
    then :"SYS_B_100" when :"SYS_B_101" then :"SYS_B_102" when :"SYS_B_103"
    then :"SYS_B_104" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD") "C8", sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE" between (TIMESTAMP :"SYS_B_105" -*
    NUMTODSINTERVAL( EXTRACT( DAY FROM TIMESTAMP :"SYS_B_106" ), :"SYS_B_107" )
    + INTERVAL :"SYS_B_108" DAY) and TIMESTAMP :"SYS_B_109" then
    *"SALES_FACT"."QTY_SOLD_IN_KLGMS" else :"SYS_B_110" end ) over (partition by*
    *"CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_111"*
    then :"SYS_B_112" when :"SYS_B_113" then :"SYS_B_114" when :"SYS_B_115"
    then :"SYS_B_116" when :"SYS_B_117" then :"SYS_B_118" when :"SYS_B_119"
    then :"SYS_B_120" when :"SYS_B_121" then :"SYS_B_122" when :"SYS_B_123"
    then :"SYS_B_124" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD") "C9", sum("SALES_FACT"."EXTND_GROSS_SALE_AMNT")*
    over (partition by "CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD"
    when :"SYS_B_125" then :"SYS_B_126" when :"SYS_B_127" then :"SYS_B_128"
    when :"SYS_B_129" then :"SYS_B_130" when :"SYS_B_131" then :"SYS_B_132"
    when :"SYS_B_133" then :"SYS_B_134" when :"SYS_B_135" then :"SYS_B_136"
    when :"SYS_B_137" then :"SYS_B_138" else
    *"GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end , "TIME_PERIOD13"."MONTH_CD") "C10",*
    *((sum(case when ("TIME_PERIOD13"."DAY_CLNDR_DATE"=TIMESTAMP :"SYS_B_139")*
    then "SALES_FACT"."EXTND_NET_SALE_AMNT" else :"SYS_B_140" end ) over
    *(partition by "CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when*
    *:"SYS_B_141" then :"SYS_B_142" when :"SYS_B_143" then :"SYS_B_144" when*
    *:"SYS_B_145" then :"SYS_B_146" when :"SYS_B_147" then :"SYS_B_148" when*
    *:"SYS_B_149" then :"SYS_B_150" when :"SYS_B_151" then :"SYS_B_152" when*
    *:"SYS_B_153" then :"SYS_B_154" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end*
    *, "TIME_PERIOD13"."MONTH_CD")+sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE" between (TIMESTAMP :"SYS_B_155" -*
    NUMTODSINTERVAL( EXTRACT( DAY FROM TIMESTAMP :"SYS_B_156" ), :"SYS_B_157" )
    + INTERVAL :"SYS_B_158" DAY) and TIMESTAMP :"SYS_B_159" then
    *"SALES_FACT"."EXTND_NET_SALE_AMNT" else :"SYS_B_160" end ) over (partition*
    by "CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_161"
    then :"SYS_B_162" when :"SYS_B_163" then :"SYS_B_164" when :"SYS_B_165"
    then :"SYS_B_166" when :"SYS_B_167" then :"SYS_B_168" when :"SYS_B_169"
    then :"SYS_B_170" when :"SYS_B_171" then :"SYS_B_172" when :"SYS_B_173"
    then :"SYS_B_174" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD"))+(sum(case when*
    *("TIME_PERIOD13"."DAY_CLNDR_DATE"=TIMESTAMP :"SYS_B_175") then*
    *"SALES_FACT"."QTY_SOLD_IN_CASES" else :"SYS_B_176" end ) over (partition by*
    *"CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_177"*
    then :"SYS_B_178" when :"SYS_B_179" then :"SYS_B_180" when :"SYS_B_181"
    then :"SYS_B_182" when :"SYS_B_183" then :"SYS_B_184" when :"SYS_B_185"
    then :"SYS_B_186" when :"SYS_B_187" then :"SYS_B_188" when :"SYS_B_189"
    then :"SYS_B_190" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD")+sum(case when "TIME_PERIOD13"."DAY_CLNDR_DATE"*
    between (TIMESTAMP :"SYS_B_191" - NUMTODSINTERVAL( EXTRACT( DAY FROM
    TIMESTAMP :"SYS_B_192" ), :"SYS_B_193" ) + INTERVAL :"SYS_B_194" DAY) and
    TIMESTAMP :"SYS_B_195" then "SALES_FACT"."QTY_SOLD_IN_CASES" else
    *:"SYS_B_196" end ) over (partition by "CHNNL"."CHNNL_BK", case*
    *"GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_197" then :"SYS_B_198" when*
    *:"SYS_B_199" then :"SYS_B_200" when :"SYS_B_201" then :"SYS_B_202" when*
    *:"SYS_B_203" then :"SYS_B_204" when :"SYS_B_205" then :"SYS_B_206" when*
    *:"SYS_B_207" then :"SYS_B_208" when :"SYS_B_209" then :"SYS_B_210" else*
    *"GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end , "TIME_PERIOD13"."MONTH_CD")))*
    +(sum(case  when ("TIME_PERIOD13"."DAY_CLNDR_DATE"=TIMESTAMP :"SYS_B_211")
    then "SALES_FACT"."QTY_SOLD_IN_KLGMS" else :"SYS_B_212" end ) over
    *(partition by "CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when*
    *:"SYS_B_213" then :"SYS_B_214" when :"SYS_B_215" then :"SYS_B_216" when*
    *:"SYS_B_217" then :"SYS_B_218" when :"SYS_B_219" then :"SYS_B_220" when*
    *:"SYS_B_221" then :"SYS_B_222" when :"SYS_B_223" then :"SYS_B_224" when*
    *:"SYS_B_225" then :"SYS_B_226" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end*
    *, "TIME_PERIOD13"."MONTH_CD")+sum(case when*
    *"TIME_PERIOD13"."DAY_CLNDR_DATE" between (TIMESTAMP :"SYS_B_227" -*
    NUMTODSINTERVAL( EXTRACT( DAY FROM TIMESTAMP :"SYS_B_228" ), :"SYS_B_229" )
    + INTERVAL :"SYS_B_230" DAY) and TIMESTAMP :"SYS_B_231" then
    *"SALES_FACT"."QTY_SOLD_IN_KLGMS" else :"SYS_B_232" end ) over (partition by*
    *"CHNNL"."CHNNL_BK", case "GEOG12"."SUB_STATE_PRVNC_CD" when :"SYS_B_233"*
    then :"SYS_B_234" when :"SYS_B_235" then :"SYS_B_236" when :"SYS_B_237"
    then :"SYS_B_238" when :"SYS_B_239" then :"SYS_B_240" when :"SYS_B_241"
    then :"SYS_B_242" when :"SYS_B_243" then :"SYS_B_244" when :"SYS_B_245"
    then :"SYS_B_246" else "GEOG12"."SUB_STATE_PRVNC_NAME_TXT" end ,
    *"TIME_PERIOD13"."MONTH_CD")) "C11" from "THA_SALES_DBA"."CHNNL" "CHNNL",*
    *(select "GEOG"."GEOG_KEY" "GEOG_KEY", "GEOG"."SUB_STATE_PRVNC_CD"*
    *"SUB_STATE_PRVNC_CD", "GEOG"."SUB_STATE_PRVNC_NAME_TXT"*
    *"SUB_STATE_PRVNC_NAME_TXT" from "THA_SALES_DBA"."GEOG" "GEOG" where*
    *"GEOG"."SUB_STATE_PRVNC_LOAD_DATA_TYPE"=:"SYS_B_247") "GEOG12",*
    *"THA_SALES_DBA"."TIME_PERIOD" "TIME_PERIOD13", "THA_SALES_DBA"."SALES_FACT"*
    *"SALES_FACT", (select "PROD"."PROD_KEY" "PROD_KEY", "PROD"."PROD_DVSN_CD"*
    *"PROD_DVSN_CD", "PROD"."PCKG_SIZE_CD" "PCKG_SIZE_CD" from*
    *"THA_SALES_DBA"."PROD" "PROD" where "PROD"."LOAD_DATA_TYPE_CD"=:"SYS_B_248")*
    *"PROD14", "THA_SALES_DBA"."DSTRBTR" "DSTRBTR" where*
    *"PROD14"."PROD_DVSN_CD"=:"SYS_B_249" and "PROD14"."PCKG_SIZE_CD"=*
    *:"SYS_B_250" and "DSTRBTR"."DSTRBTR_CD"<>:"SYS_B_251" and CASE*
    WHEN("DSTRBTR"."DSTRBTR_CD" IS NULL) OR ("CHNNL"."CHNNL_BK" IS NULL) THEN
    NULL ELSE ("DSTRBTR"."DSTRBTR_CD"||"CHNNL"."CHNNL_BK") END<>:"SYS_B_252"
    and "SALES_FACT"."CHNNL_KEY"="CHNNL"."CHNNL_KEY" and
    *"SALES_FACT"."DSTRBTR_KEY"="DSTRBTR"."DSTRBTR_KEY" and*
    *"SALES_FACT"."GEOG_KEY"="GEOG12"."GEOG_KEY" and "SALES_FACT"."PROD_KEY"=*
    *"PROD14"."PROD_KEY" and "SALES_FACT"."TIME_PERIOD_KEY"=*
    *"TIME_PERIOD13"."TIME_PERIOD_KEY"*
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.00          0          0          0           0
    Execute      1      0.01       0.01          0          0          0           0
    Fetch     7632    129.92     245.70     406278      12619         35      763042
    total     7634    129.95     245.73     406278      12619         35      763042
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 68
    Rows     Row Source Operation
    *763042 WINDOW BUFFER (cr=12619 pr=406278 pw=257613 time=239232878 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=372409 pw=237458 time=217248824 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=339595 pw=217662 time=194593662 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=307255 pw=198149 time=177438908 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=275292 pw=178940 time=157976971 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=244097 pw=160017 time=139997871 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=213275 pw=141404 time=119675383 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=184170 pw=123525 time=105714100 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=155800 pw=105953 time=88478655 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=128025 pw=88650 time=71243641 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=100871 pw=71641 time=54047210 us)*
    *763042 WINDOW BUFFER (cr=12619 pr=73821 pw=54957 time=35324144 us)*
    *763042 WINDOW SORT (cr=12619 pr=48205 pw=38587 time=18865032 us)*
    *763042 HASH JOIN (cr=12619 pr=0 pw=0 time=3127703 us)*
    *15098 TABLE ACCESS FULL TIME_PERIOD (cr=693 pr=0 pw=0 time=15216 us)*
    *763042 HASH JOIN (cr=11926 pr=0 pw=0 time=2344335 us)*
    *1845 TABLE ACCESS FULL GEOG (cr=92 pr=0 pw=0 time=1910 us)*
    *763194 HASH JOIN (cr=11834 pr=0 pw=0 time=1577327 us)*
    *11 TABLE ACCESS FULL CHNNL (cr=7 pr=0 pw=0 time=47 us)*
    *765432 HASH JOIN (cr=11827 pr=0 pw=0 time=1580849 us)*
    *2 TABLE ACCESS FULL DSTRBTR (cr=7 pr=0 pw=0 time=50 us)*
    *765432 HASH JOIN (cr=11820 pr=0 pw=0 time=814835 us)*
    *313 TABLE ACCESS FULL PROD (cr=174 pr=0 pw=0 time=1195 us)*
    *1045260 TABLE ACCESS FULL SALES_FACT (cr=11646 pr=0 pw=0 time=31 us)*
    Elapsed times include waiting on following events:
    Event waited on                             Times   Max. Wait  Total Waited
    ----------------------------------------   Waited  ----------  ------------
    SQLNet message to client 7633 0.00 0.01*
    SQLNet message from client 7633 1826.57 2334.17*
    SQLNet more data from client 1 0.00 0.00*
    direct path write temp                       5332        0.09          6.23
    direct path read temp                      389239        0.09        115.09
    The query is automatically generated by Cognos 8.2. The database is 64-bit Oracle 10.2.0.4 on Windows 2003 Enterprise Edition R2.
    I am unable to understand the "*WINDOW BUFFER/WINDOW SORT*" statement under the Row Source Operation. Could one of you please explain this operation to me?
    Thanks and Regards,
    Sriraman

    The WINDOW BUFFER/WINDOW SORT operations are used when processing analytical SQLs, you can see these in your SQL statement. In WINDOW BUFFER the SQL engine do calculations above some buffered data subset and in the WINDOW SORT data subsets are being sorted.
    Dusan

  • Max Query Count setting

    Hello colleagues,
    Probably you many know there is Max Query Count setting in MII.
    Does any of you experience performance concerns by dealing with large number of query count?  or does any of you have a recommendation for how to set max query count, e.g. not exceeding memory size to avoid memory swapping? 
    my customer want to increase this max count due to fluctuating record count.  but they have concerns on such disadvantage in performance.
    any of your experiences are welcome.  Thank you,
    Shiroh Kinoshita, SAP Japan

    Shiroh,
    Good to hear from you.
    All queries have the RowCount setting, but we typically discourage people from just setting it to a high number.  In some cases the data servers will limit this number to a max (something like 250000) but that doesn't mean that from a memory standpoint, or a customer patience level (especially in the browser) would ever get to that number of records.
    Where is it that you are seeing the record count fluctuate, applets in the browser, query actions in a transaction?
    What is it that makes the customer want to increase this to a high number?
    Regards,
    Jeremy

  • Help in TKPROF Output: Row Source Operation v.s Execution plan confusing

    Hello,
    Working with oracle 10g/widnows, and trying to understand from the TKPROF what is the purpose of the "Row Source operation" section.
    From the "Row Source Operation" section the PMS_ROOM table is showing 16 rows selected, and accessed by an ACCESS FULL, and the following script gives another value.
    select count(*) from pms_folio give the following.
    COUNT(*)
    148184
    But in the execution plan section, the PMS_FOLIO table is accessed by ROW ID after index scan in the JIE_BITMAP_CONVERSION index
    What really means Row Source operation compares to the execution plan and how both information should be read to fully know if the optimizer is not making wrong estimation?
    furthermore readding 13594 buffers to fetch 2 rows, show the SQL Script itself is not sufficient, but the elapsed time is roughly 0.7seconds,but shrinking the # of buffers to be read should probably shrink the response time.
    The following TKPROF output.
    Thanks very much for your help
    SELECT NVL(SUM(NVL(t1.TOTAL_GUESTS, 0)), 0)
    FROM DEV.PMS_FOLIO t1
    WHERE (t1.FOLIO_STATUS <> 'CANCEL'
    AND t1.ARRIVAL_DATE <= TO_DATE(:1, 'SYYYY/MMDDHH24MISS')
    AND t1.DEPARTURE_DATE > TO_DATE(:1, 'SYYYY/MMDDHH24MISS')
    AND t1.PRIMARY_OR_SHARE = 'P' AND t1.IS_HOUSE = 'N')
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 2 0.00 0.00 0 0 0 0
    Fetch 2 0.12 0.12 0 13594 0 2
    total 5 0.12 0.12 0 13594 0 2
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 82 (PMS5000)
    Rows Row Source Operation
    2 SORT AGGREGATE (cr=13594 pr=0 pw=0 time=120165 us)
    16 TABLE ACCESS FULL PMS_FOLIO (cr=13594 pr=0 pw=0 time=121338 us)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    2 SORT (AGGREGATE)
    16 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'PMS_FOLIO'
    (TABLE)
    0 INDEX MODE: ANALYZED (RANGE SCAN) OF
    'JIE_BITMAP_CONVERSION' (INDEX)
    <Edited by: user552326 on 8-Apr-2009 12:49 PM
    Edited by: user552326 on 8-Apr-2009 12:52 PM
    Edited by: user552326 on 8-Apr-2009 12:53 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Your query is using bind variables. Explain Plan doesn't work exactly the same way -- it can't handle bind variables.
    See http://www.oracle.com/technology/oramag/oracle/08-jan/o18asktom.html
    In your output, the row source operations listing is the real execution.
    The explain plan listing may well be misleading as Oracle uses cardinality estimates when trying to explain with bind variables.
    Also, it seems that your plan table may be a 9i version, not the 10g PLAN_TABLE created by catplan.sql There are additional columns in the 10g PLAN_TABLE that explain uses well.
    BTW, you start off with a mention of "PMS_ROOM" showing 16 rows, but it doesn't appear in the data you have presented.

  • Suggestions from tkprof output

    Hi All,
    I need to tune the following sql query. I have given the tkprof output of the sql, can you please suggest ways to improvise the query?
    Trace file: hsctst09_ora_1671386_10046.trc
    Sort options: prsela  fchela  exeela
    count    = number of times OCI procedure was executed
    cpu      = cpu time in seconds executing
    elapsed  = elapsed time in seconds executing
    disk     = number of physical reads of buffers from disk
    query    = number of buffers gotten for consistent read
    current  = number of buffers gotten in current mode (usually for update)
    rows     = number of rows processed by the fetch or execute call
    error connecting to database using: rms12/rms12
    ORA-01017: invalid username/password; logon denied
    EXPLAIN PLAN option disabled.
    select distinct RPE.promo_event_display_id             Event_Number,
           RPE.description                                 Event_Description,
           RPE.start_date                                  Event_Start_Date,
           RPE.end_date                                    Event_End_Date,
           (CASE RPD.state  
                 WHEN 'pcd.active'                     THEN 'Active'
                 WHEN 'pcd.approved'                   THEN 'Approved'
                 WHEN 'pcd.cancelled'                  THEN 'Cancelled'
                 WHEN 'pcd.conflictCheckForApproved'   THEN 'Conflict Check'
                 WHEN 'pcd.submitted'                  THEN 'Submitted'
                 WHEN 'pcd.complete'                   THEN 'Complete'
                 WHEN 'pcd.substate.working.worksheet' THEN 'Worksheet'
                 ELSE 'Unknown'                      
           END)                                            Event_Status,
           RP.promo_display_id                             Promotion_ID,
           RP.description                                  Promotion_Description,
           RP.start_date                                   Promotion_Start_Date,
           RP.end_date                                     Promotion_End_Date,
           RPDT.dept                                       Valid_Section,
           RTH.threshold_display_id                        Threshold_Number,
           RTH.name                                        Threshold_Description,
           RPC.comp_display_id                             Component_ID,
           RPC.name                                        Component_Description,
           RPC.tsl_comp_level_desc                         Description_at_the_till,
           'Threshold'                                     Component_Type,
           RPC.tsl_ext_promo_id                            External_ID,
           decode(RPC.funding_percent,null,'No','Yes')     Funding_Indicator,
           (CASE RPD.apply_to_code
                 WHEN 0 THEN 'Regular Only'
                 WHEN 1 THEN 'Clearance Only'
                 WHEN 2 THEN 'Regular and Clearance'
                 ELSE NULL
           END)                                            Apply_to,
           RPD.start_date                                  Component_start_date,
           RPD.end_date                                    Component_End_Date,
           '="'||RPT.item||'"'                             Item,
           IM.item_desc                                    Item_Description,
           '="'||TRPCT.tpnd_id||'"'                        Pack,
           IM1.item_desc                                   Pack_Description,
           decode(TRPCT.primary_tpnd,1,'Yes','No')         Primary_Pack,
           RPC.funding_percent                             Corporate_Funding_Percent,
           DP.contribution_pct                             Supplier_Funding_Percent,
           RPCT.uptake_percent                             Uptake_Percent,
           RPT.tsl_uplift_perc                             Uplift_Percent,
           NULL                                            List_Type,
           NULL                                            Buy_Type,
           NULL                                            Buy_Value,
           (CASE RTI.threshold_type
                 WHEN 0 THEN 'Amount'
                 WHEN 1 THEN 'Quantity'
                 WHEN 2 THEN 'Weight'
                 ELSE NULL
           END)                                            Get_Type,
           RTI.threshold_amount                            Get_Value,
           (CASE RTI.change_type
                 WHEN 0 THEN 'Percent Off'
                 WHEN 1 THEN 'Amount Off'
                 WHEN 2 THEN 'Fixed Price'
                 WHEN 3 THEN 'No Change'
                 WHEN 4 THEN 'Exclude'
                 WHEN 5 THEN 'ClubCard Points'
                 WHEN 6 THEN 'Voucher'
                 WHEN 7 THEN 'Cheapest Free'
                 ELSE NULL
           END)                                            Change_Type,
           RTI.change_amount                               Change_Amount,
           RTI.tsl_voucher_number                          Voucher_Number,
           NULL                                            Get_Quantity,
           RZFR.selling_uom                                Selling_UOM,
           RPCT.tsl_coupon_number                          Coupon_Number,
           RPCT.tsl_coupon_desc                            Coupon_Description,
           RPT.zone_id                                     Zone,
           RPD.Ignore_Constraints                          Ignore_Constraints,
           RPT.tsl_feature_space_end_num                   Feature_Space
      from rpm_promo RP,
           rpm_promo_comp RPC,
           rpm_promo_comp_detail RPD,
           rpm_promo_event RPE,
           rpm_promo_dept RPDT,
           rpm_promo_comp_threshold RPT,
           rpm_threshold RTH,
           rpm_threshold_interval RTI,
           v_item_master IM,
           item_supplier SU,
           rpm_promo_comp_thresh_link RPCT,
           tsl_rpm_promo_comp_tpnd TRPCT,
           v_item_master IM1,
           rpm_zone_future_retail RZFR,
           ( select isu.supplier,
                    isu.item,
                    dh.deal_id,
                    dcp.promotion_id,
                    dcp.promo_comp_id,
                    dcp.contribution_pct
               from item_supplier isu inner join
                    deal_head dh on (isu.supplier = dh.supplier)
                    inner join deal_comp_prom dcp on (dcp.deal_id = dh.deal_id) ) dp
    where RP.promo_id = RPC.promo_id
       and RPD.promo_comp_id = RPC.promo_comp_id
       and RPE.promo_event_id = RP.promo_event_id
       and RP.promo_id = RPDT.promo_id
       and RPDT.dept = IM.dept
       and DP.promotion_id (+) = RP.promo_id
       and RPT.rpm_promo_comp_detail_id = RPD.rpm_promo_comp_detail_id
       and RPT.threshold_id = RTH.threshold_id
       and RPT.threshold_id = RTI.threshold_id
       and TRPCT.rpm_promo_comp_detail_id = RPD.rpm_promo_comp_detail_id
       and RPT.item = IM.item
       and IM.item = SU.item
       and RPD.promo_comp_id = RPCT.promo_comp_id
       and TRPCT.tpnb_id = RPT.item
       and TRPCT.tpnd_id = IM1.item
       and RZFR.item = IM.item
    UNION ALL
    -- Simple Query
    select distinct RPE.promo_event_display_id             Event_Number,
           RPE.description                                 Event_Description,
           RPE.start_date                                  Event_Start_Date,
           RPE.end_date                                    Event_End_Date,
           (CASE RPD.state  
                 WHEN 'pcd.active'                     THEN 'Active'
                 WHEN 'pcd.approved'                   THEN 'Approved'
                 WHEN 'pcd.cancelled'                  THEN 'Cancelled'
                 WHEN 'pcd.conflictCheckForApproved'   THEN 'Conflict Check'
                 WHEN 'pcd.submitted'                  THEN 'Submitted'
                 WHEN 'pcd.complete'                   THEN 'Complete'
                 WHEN 'pcd.substate.working.worksheet' THEN 'Worksheet'
                 ELSE 'Unknown'                      
           END)                                            Event_Status,
           RP.promo_display_id                             Promotion_ID,
           RP.description                                  Promotion_Description,
           RP.start_date                                   Promotion_Start_Date,
           RP.end_date                                     Promotion_End_Date,
           RPDT.dept                                       Valid_Section,
           NULL                                            Threshold_Number,
           NULL                                            Threshold_Description,
           RPC.comp_display_id                             Component_ID,
           RPC.name                                        Component_Description,
           RPC.tsl_comp_level_desc                         Description_at_the_till,
           'Simple'                                        Component_Type,
           RPC.tsl_ext_promo_id                            External_ID,
           decode(RPC.funding_percent,null,'No','Yes')     Funding_Indicator,
           (CASE RPD.apply_to_code
                 WHEN 0 THEN 'Regular Only'
                 WHEN 1 THEN 'Clearance Only'
                 WHEN 2 THEN 'Regular and Clearance'
                 ELSE NULL
           END)                                            Apply_to,
           RPD.start_date                                  Component_start_date,
           RPD.end_date                                    Component_End_Date,
           '="'||RPS.item||'"'                             Item,
           IM.item_desc                                    Item_Description,
           '="'||TRPCT.tpnd_id||'"'                        Pack,
           IM1.item_desc                                   Pack_Description,
           decode(TRPCT.primary_tpnd,1,'Yes','No')         Primary_Pack,
           RPC.funding_percent                             Corporate_Funding_Percent,
           DP.contribution_pct                             Supplier_Funding_Percent,
           RPS.tsl_simple_uptake_percent                   Uptake_Percent,
           RPS.tsl_uplift_perc                             Uplift_Percent,
           NULL                                            List_Type,
           NULL                                            Buy_Type,
           NULL                                            Buy_Value,
           NULL                                            Get_Type,
           NULL                                            Get_Value,
           (CASE RPS.change_type
                 WHEN 0 THEN 'Percent Off'
                 WHEN 1 THEN 'Amount Off'
                 WHEN 2 THEN 'Fixed Price'
                 WHEN 3 THEN 'No Change'
                 WHEN 4 THEN 'Exclude'
                 WHEN 5 THEN 'ClubCard Points'
                 WHEN 6 THEN 'Voucher'
                 WHEN 7 THEN 'Cheapest Free'
                 ELSE NULL
           END)                                            Change_Type,
           RPS.change_amount                               Change_Amount,
           RPS.tsl_voucher_number                          Voucher_Number,
           NULL                                            Get_Quantity,
           RZFR.selling_uom                                Selling_UOM,
           RPS.tsl_coupon_number                           Coupon_Number,
           RPS.tsl_coupon_desc                             Coupon_Description,
           RPS.zone_id                                     Zone,
           RPD.Ignore_Constraints                          Ignore_Constraints,
           RPS.tsl_feature_space_end_num                   Feature_Space
      from rpm_promo RP,
           rpm_promo_comp RPC,
           rpm_promo_comp_detail RPD,
           rpm_promo_event RPE,
           rpm_promo_dept RPDT,
           rpm_promo_comp_simple RPS,
           v_item_master IM,
           item_supplier SU,
           tsl_rpm_promo_comp_tpnd TRPCT,
           v_item_master IM1,
           rpm_zone_future_retail RZFR,
           ( select isu.supplier,
                    isu.item,
                    dh.deal_id,
                    dcp.promotion_id,
                    dcp.promo_comp_id,
                    dcp.contribution_pct
               from item_supplier isu inner join
                    deal_head dh on (isu.supplier = dh.supplier)
                    inner join deal_comp_prom dcp on (dcp.deal_id = dh.deal_id) ) dp
    where RP.promo_id = RPC.promo_id
       and RPD.promo_comp_id = RPC.promo_comp_id
       and RPE.promo_event_id = RP.promo_event_id
       and RP.promo_id = RPDT.promo_id
       and RPDT.dept = IM.dept
       and DP.promotion_id (+) = RP.promo_id
       and RPS.rpm_promo_comp_detail_id = RPD.rpm_promo_comp_detail_id
       and TRPCT.rpm_promo_comp_detail_id = RPD.rpm_promo_comp_detail_id
       and RPS.item = IM.item
       and IM.item = SU.item
       and RZFR.item = RPS.item
       and TRPCT.tpnb_id = RPS.item
       and TRPCT.tpnd_id = IM1.item
    UNION ALL
    -- Multi-Buy Query
    select distinct RPE.promo_event_display_id             Event_Number,
           RPE.description                                 Event_Description,
           RPE.start_date                                  Event_Start_Date,
           RPE.end_date                                    Event_End_Date,
           (CASE RPD.state  
                 WHEN 'pcd.active'                     THEN 'Active'
                 WHEN 'pcd.approved'                   THEN 'Approved'
                 WHEN 'pcd.cancelled'                  THEN 'Cancelled'
                 WHEN 'pcd.conflictCheckForApproved'   THEN 'Conflict Check'
                 WHEN 'pcd.submitted'                  THEN 'Submitted'
                 WHEN 'pcd.complete'                   THEN 'Complete'
                 WHEN 'pcd.substate.working.worksheet' THEN 'Worksheet'
                 ELSE 'Unknown'                      
           END)                                            Event_Status,
           RP.promo_display_id                             Promotion_ID,
           RP.description                                  Promotion_Description,
           RP.start_date                                   Promotion_Start_Date,
           RP.end_date                                     Promotion_End_Date,
           RPDT.dept                                       Valid_Section,
           NULL                                            Threshold_Number,
           NULL                                            Threshold_Description,
           RPC.comp_display_id                             Component_ID,
           RPC.name                                        Component_Description,
           RPC.tsl_comp_level_desc                         Description_at_the_till,
           'MultiBuy'                                      Component_Type,
           RPC.tsl_ext_promo_id                            External_ID,
           decode(RPC.funding_percent,null,'No','Yes')     Funding_Indicator,
           (CASE RPD.apply_to_code
                 WHEN 0 THEN 'Regular Only'
                 WHEN 1 THEN 'Clearance Only'
                 WHEN 2 THEN 'Regular and Clearance'
                 ELSE NULL
           END)                                            Apply_to,
           RPD.start_date                                  Component_start_date,
           RPD.end_date                                    Component_End_Date,
           '="'||RPG.item||'"'                             Item,
           IM.item_desc                                    Item_Description,
           '="'||TRPCT.tpnd_id||'"'                        Pack,
           IM1.item_desc                                   Pack_Description,
           decode(TRPCT.primary_tpnd,1,'Yes','No')         Primary_Pack,
           RPC.funding_percent                             Corporate_Funding_Percent,
           DP.contribution_pct                             Supplier_Funding_Percent,
           NULL                                            Uptake_Percent,
           TRPM.uplift_perc                                Uplift_Percent,
           decode(TBD.list_type,0,'Buy List',1,'Get List') List_Type,
           TBD.buy_item_type                               Buy_Type,
           TBD.buy_item_value                              Buy_Value,
           NULL                                            Get_Type,
           NULL                                            Get_Value,
           (CASE TBD.change_type
                 WHEN 0 THEN 'Percent Off'
                 WHEN 1 THEN 'Amount Off'
                 WHEN 2 THEN 'Fixed Price'
                 WHEN 3 THEN 'No Change'
                 WHEN 4 THEN 'Exclude'
                 WHEN 5 THEN 'ClubCard Points'
                 WHEN 6 THEN 'Voucher'
                 WHEN 7 THEN 'Cheapest Free'
                 ELSE NULL
           END)                                            Change_Type,
           TBD.change_amount                               Change_Amount,
           TBD.voucher_number                              Voucher_Number,
           TBD.get_quantity                                Get_Quantity,
           RZPR.selling_uom                                Selling_UOM,               
           TB.tsl_coupon_number                            Coupon_Number,
           TB.tsl_coupon_desc                              Coupon_Description,
           TBZ.zone_id                                     Zone,
           RPD.Ignore_Constraints                          Ignore_Constraints,
           NULL                                            Feature_Space
      from rpm_promo RP,
           rpm_promo_comp RPC,
           rpm_promo_comp_detail RPD,
           rpm_promo_event RPE,
           rpm_promo_dept RPDT,
           tsl_rpm_promo_comp_m_b TB,
           tsl_rpm_promo_comp_m_b_dtl TBD,
           tsl_rpm_promo_multi_buy_zone TBZ,
           tsl_rpm_promo_get_item RPG,
           v_item_master IM,
           item_supplier SU,
           tsl_rpm_promo_comp_tpnd TRPCT,
           v_item_master IM1,
           rpm_zone_future_retail RZPR,
           tsl_rpm_promo_mb_attr TRPM,
           ( select isu.supplier,
                    isu.item,
                    dh.deal_id,
                    dcp.promotion_id,
                    dcp.promo_comp_id,
                    dcp.contribution_pct
               from item_supplier isu inner join
                    deal_head dh on (isu.supplier = dh.supplier)
                    inner join deal_comp_prom dcp on (dcp.deal_id = dh.deal_id) ) dp
    where RP.promo_id = RPC.promo_id
       and RPD.promo_comp_id = RPC.promo_comp_id
       and RPE.promo_event_id = RP.promo_event_id
       and RP.promo_id = RPDT.promo_id
       and RPDT.dept = IM.dept
       and DP.promotion_id (+) = RP.promo_id
       and RPD.rpm_promo_comp_detail_id = TB.rpm_promo_comp_detail_id
       and TB.rpm_promo_comp_detail_id = TBD.rpm_promo_comp_detail_id
       and TBD.rpm_promo_comp_detail_id = TBZ.rpm_promo_comp_detail_id
       and RPG.item = IM.item
       and IM.item = SU.item
       and TRPM.item = RPG.item
       and TRPM.rpm_promo_comp_detail_id = RPD.rpm_promo_comp_detail_id
       and TRPM.zone_id = TBZ.zone_id
       and RZPR.item = RPG.item
       and TRPCT.tpnb_id = RPG.item
       and TRPCT.tpnd_id = IM1.item

    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      4.16       4.48          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        5     53.01     276.29      91547    1615664          9          48
    total        7     57.17     280.78      91547    1615664          9          48
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 191
    Rows     Row Source Operation
         48  UNION-ALL  (cr=17287 pr=3663 pw=1876 time=2033194 us)
         13   SORT UNIQUE (cr=11286 pr=1052 pw=0 time=2033182 us)
        364    NESTED LOOPS OUTER (cr=11286 pr=1052 pw=0 time=1861854 us)
        364     NESTED LOOPS  (cr=10922 pr=1051 pw=0 time=1857466 us)
         75      NESTED LOOPS  (cr=10770 pr=1041 pw=0 time=1855506 us)
         15       NESTED LOOPS  (cr=10723 pr=1029 pw=0 time=1857844 us)
         15        NESTED LOOPS  (cr=10691 pr=1021 pw=0 time=1857525 us)
         15         NESTED LOOPS  (cr=10689 pr=1021 pw=0 time=1857391 us)
         15          NESTED LOOPS  (cr=10657 pr=1017 pw=0 time=1856760 us)
         15           NESTED LOOPS  (cr=10655 pr=1017 pw=0 time=1856639 us)
         15            NESTED LOOPS  (cr=10623 pr=1006 pw=0 time=1855895 us)
         15             NESTED LOOPS  (cr=10606 pr=1003 pw=0 time=1846410 us)
       1208              NESTED LOOPS  (cr=8188 pr=989 pw=0 time=1846542 us)
       1208               NESTED LOOPS  (cr=5770 pr=978 pw=0 time=1834421 us)
       1208                NESTED LOOPS  (cr=4560 pr=971 pw=0 time=1821047 us)
       1208                 HASH JOIN  (cr=3350 pr=970 pw=0 time=1801632 us)
       1367                  HASH JOIN  (cr=2533 pr=157 pw=0 time=25928 us)
         96                   TABLE ACCESS FULL RPM_PROMO_COMP_THRESH_LINK (cr=9 pr=8 pw=0 time=435 us)
       1371                   HASH JOIN  (cr=2524 pr=149 pw=0 time=24005 us)
       1371                    TABLE ACCESS FULL RPM_PROMO_COMP_THRESHOLD (cr=47 pr=0 pw=0 time=33 us)
    190227                    TABLE ACCESS FULL RPM_PROMO_COMP_DETAIL (cr=2477 pr=149 pw=0 time=87 us)
    132392                  TABLE ACCESS FULL TSL_RPM_PROMO_COMP_TPND (cr=817 pr=813 pw=0 time=337 us)
       1208                 TABLE ACCESS BY INDEX ROWID RPM_THRESHOLD_INTERVAL (cr=1210 pr=1 pw=0 time=16962 us)
       1208                  INDEX RANGE SCAN RPM_THRESHOLD_INTERVAL_I1 (cr=2 pr=1 pw=0 time=4680 us)(object id 459922)
       1208                TABLE ACCESS BY INDEX ROWID RPM_THRESHOLD (cr=1210 pr=7 pw=0 time=8397 us)
       1208                 INDEX UNIQUE SCAN PK_RPM_THRESHOLD (cr=2 pr=1 pw=0 time=3405 us)(object id 459954)
       1208               TABLE ACCESS BY INDEX ROWID RPM_PROMO_COMP (cr=2418 pr=11 pw=0 time=37425 us)
       1208                INDEX UNIQUE SCAN PK_RPM_PROMO_COMP (cr=1210 pr=4 pw=0 time=4700 us)(object id 459902)
         15              TABLE ACCESS BY INDEX ROWID RPM_PROMO (cr=2418 pr=14 pw=0 time=69147 us)
       1208               INDEX UNIQUE SCAN PK_RPM_PROMO (cr=1210 pr=4 pw=0 time=4755 us)(object id 459849)
         15             TABLE ACCESS BY INDEX ROWID RPM_PROMO_EVENT (cr=17 pr=3 pw=0 time=9808 us)
         15              INDEX UNIQUE SCAN PK_RPM_PROMO_EVENT (cr=2 pr=0 pw=0 time=55 us)(object id 459871)
         15            TABLE ACCESS BY INDEX ROWID ITEM_MASTER (cr=32 pr=11 pw=0 time=638 us)
         15             INDEX UNIQUE SCAN PK_ITEM_MASTER (cr=17 pr=7 pw=0 time=398 us)(object id 460014)
         15           INDEX UNIQUE SCAN PK_DEPS (cr=2 pr=0 pw=0 time=55 us)(object id 460063)
         15          TABLE ACCESS BY INDEX ROWID ITEM_MASTER (cr=32 pr=4 pw=0 time=284 us)
         15           INDEX UNIQUE SCAN PK_ITEM_MASTER (cr=17 pr=3 pw=0 time=179 us)(object id 460014)
         15         INDEX UNIQUE SCAN PK_DEPS (cr=2 pr=0 pw=0 time=47 us)(object id 460063)
         15        INDEX UNIQUE SCAN PK_RPM_PROMO_DEPT (cr=32 pr=8 pw=0 time=423 us)(object id 461683)
         75       TABLE ACCESS BY INDEX ROWID RPM_ZONE_FUTURE_RETAIL (cr=47 pr=12 pw=0 time=846 us)
         75        INDEX RANGE SCAN RPM_ZONE_FUTURE_RETAIL_I1 (cr=32 pr=12 pw=0 time=536 us)(object id 459917)
        364      INDEX RANGE SCAN PK_ITEM_SUPPLIER (cr=152 pr=10 pw=0 time=915 us)(object id 461283)
          0     VIEW PUSHED PREDICATE  (cr=364 pr=1 pw=0 time=4468 us)
          0      NESTED LOOPS  (cr=364 pr=1 pw=0 time=4023 us)
          0       NESTED LOOPS  (cr=364 pr=1 pw=0 time=3596 us)
          0        TABLE ACCESS BY INDEX ROWID DEAL_COMP_PROM (cr=364 pr=1 pw=0 time=2839 us)
          0         INDEX SKIP SCAN PK_DEAL_COMP_PROM (cr=364 pr=1 pw=0 time=2252 us)(object id 460586)
          0        TABLE ACCESS BY INDEX ROWID DEAL_HEAD (cr=0 pr=0 pw=0 time=0 us)
          0         INDEX UNIQUE SCAN PK_DEAL_HEAD (cr=0 pr=0 pw=0 time=0 us)(object id 460002)
          0       INDEX RANGE SCAN ITEM_SUPPLIER_I1 (cr=0 pr=0 pw=0 time=0 us)(object id 461281)
         35   SORT UNIQUE (cr=6001 pr=2611 pw=1876 time=1787923 us)
        483    TABLE ACCESS BY INDEX ROWID RPM_ZONE_FUTURE_RETAIL (cr=6001 pr=2611 pw=1876 time=1781697 us)
        579     NESTED LOOPS  (cr=5969 pr=2609 pw=1876 time=205507332 us)
         95      NESTED LOOPS  (cr=5777 pr=2600 pw=1876 time=1777879 us)
         41       NESTED LOOPS  (cr=5693 pr=2592 pw=1876 time=1778919 us)
         41        HASH JOIN  (cr=5609 pr=2573 pw=1876 time=1778377 us)
        276         TABLE ACCESS FULL DEPS (cr=5 pr=0 pw=0 time=36 us)
         41         NESTED LOOPS  (cr=5604 pr=2573 pw=1876 time=1776404 us)
         41          HASH JOIN  (cr=5520 pr=2567 pw=1876 time=1776506 us)
         41           NESTED LOOPS  (cr=5515 pr=2567 pw=1876 time=1753418 us)
         41            HASH JOIN  (cr=5431 pr=2555 pw=1876 time=1752249 us)
    132392             TABLE ACCESS FULL TSL_RPM_PROMO_COMP_TPND (cr=817 pr=0 pw=0 time=44 us)
         57             HASH JOIN  (cr=4614 pr=1820 pw=1099 time=1200744 us)
    129467              TABLE ACCESS FULL RPM_PROMO_COMP_SIMPLE (cr=1693 pr=164 pw=0 time=186 us)
      45903              HASH JOIN  (cr=2921 pr=557 pw=0 time=81106 us)
        236               HASH JOIN  (cr=444 pr=28 pw=0 time=37993 us)
        373                NESTED LOOPS OUTER (cr=413 pr=23 pw=0 time=10806 us)
        373                 HASH JOIN  (cr=40 pr=23 pw=0 time=6301 us)
        277                  TABLE ACCESS FULL RPM_PROMO_EVENT (cr=6 pr=1 pw=0 time=79 us)
        373                  TABLE ACCESS FULL RPM_PROMO (cr=34 pr=22 pw=0 time=4177 us)
          0                 VIEW PUSHED PREDICATE  (cr=373 pr=0 pw=0 time=4164 us)
          0                  NESTED LOOPS  (cr=373 pr=0 pw=0 time=3634 us)
          0                   NESTED LOOPS  (cr=373 pr=0 pw=0 time=3221 us)
          0                    TABLE ACCESS BY INDEX ROWID DEAL_COMP_PROM (cr=373 pr=0 pw=0 time=2799 us)
          0                     INDEX SKIP SCAN PK_DEAL_COMP_PROM (cr=373 pr=0 pw=0 time=2244 us)(object id 460586)
          0                    TABLE ACCESS BY INDEX ROWID DEAL_HEAD (cr=0 pr=0 pw=0 time=0 us)
          0                     INDEX UNIQUE SCAN PK_DEAL_HEAD (cr=0 pr=0 pw=0 time=0 us)(object id 460002)
          0                   INDEX RANGE SCAN ITEM_SUPPLIER_I1 (cr=0 pr=0 pw=0 time=0 us)(object id 461281)
       1452                TABLE ACCESS FULL RPM_PROMO_COMP (cr=31 pr=5 pw=0 time=8984 us)
    190227               TABLE ACCESS FULL RPM_PROMO_COMP_DETAIL (cr=2477 pr=529 pw=0 time=1525455 us)
         41            TABLE ACCESS BY INDEX ROWID ITEM_MASTER (cr=84 pr=12 pw=0 time=21811 us)
         41             INDEX UNIQUE SCAN PK_ITEM_MASTER (cr=43 pr=2 pw=0 time=500 us)(object id 460014)
        276           TABLE ACCESS FULL DEPS (cr=5 pr=0 pw=0 time=39 us)
         41          TABLE ACCESS BY INDEX ROWID ITEM_MASTER (cr=84 pr=6 pw=0 time=750 us)
         41           INDEX UNIQUE SCAN PK_ITEM_MASTER (cr=43 pr=2 pw=0 time=360 us)(object id 460014)
         41        INDEX UNIQUE SCAN PK_RPM_PROMO_DEPT (cr=84 pr=19 pw=0 time=1025 us)(object id 461683)
         95       INDEX RANGE SCAN PK_ITEM_SUPPLIER (cr=84 pr=8 pw=0 time=717 us)(object id 461283)
        483      INDEX RANGE SCAN RPM_ZONE_FUTURE_RETAIL_I1 (cr=192 pr=9 pw=0 time=1661 us)(object id 459917)
          0   SORT UNIQUE (cr=0 pr=0 pw=0 time=34 us)
          0    HASH JOIN  (cr=0 pr=0 pw=0 time=8 us)
        276     TABLE ACCESS FULL DEPS (cr=5 pr=0 pw=0 time=175 us)
          0     HASH JOIN  (cr=0 pr=0 pw=0 time=4 us)
    110442      TABLE ACCESS FULL RPM_ZONE_FUTURE_RETAIL (cr=990 pr=101 pw=0 time=108 us)
          0      HASH JOIN  (cr=0 pr=0 pw=0 time=11 us)
    126852       TABLE ACCESS FULL ITEM_MASTER (cr=5389 pr=5268 pw=0 time=1522285 us)
    8076819       HASH JOIN  (cr=1591993 pr=82513 pw=128338 time=97917982 us)
    1611192        HASH JOIN  (cr=1591176 pr=80224 pw=78099 time=57413444 us)
    1611192         HASH JOIN  (cr=1590457 pr=28794 pw=27384 time=20659952 us)
    793008          HASH JOIN  (cr=1589595 pr=1843 pw=1267 time=12259546 us)
        276           TABLE ACCESS FULL DEPS (cr=5 pr=0 pw=0 time=383 us)
    793008           NESTED LOOPS  (cr=1589590 pr=1843 pw=1267 time=10672032 us)
    793008            HASH JOIN  (cr=3572 pr=1815 pw=1267 time=2741847 us)
      43362             HASH JOIN  (cr=3426 pr=493 pw=0 time=379252 us)
        985              TABLE ACCESS FULL TSL_RPM_PROMO_MULTI_BUY_ZONE (cr=5 pr=4 pw=0 time=207 us)
      43362              HASH JOIN  (cr=3421 pr=489 pw=0 time=288896 us)
        388               HASH JOIN  (cr=2934 pr=5 pw=0 time=22834 us)
       1624                TABLE ACCESS FULL TSL_RPM_PROMO_COMP_M_B_DTL (cr=9 pr=0 pw=0 time=34 us)
        194                HASH JOIN  (cr=2925 pr=5 pw=0 time=30088 us)
        795                 TABLE ACCESS FULL TSL_RPM_PROMO_COMP_M_B (cr=4 pr=2 pw=0 time=179 us)
      45903                 HASH JOIN  (cr=2921 pr=3 pw=0 time=109197 us)
        236                  HASH JOIN  (cr=444 pr=3 pw=0 time=16642 us)
        373                   NESTED LOOPS OUTER (cr=413 pr=0 pw=0 time=7419 us)
        373                    HASH JOIN  (cr=40 pr=0 pw=0 time=2166 us)
        277                     TABLE ACCESS FULL RPM_PROMO_EVENT (cr=6 pr=0 pw=0 time=48 us)
        373                     TABLE ACCESS FULL RPM_PROMO (cr=34 pr=0 pw=0 time=414 us)
          0                    VIEW PUSHED PREDICATE  (cr=373 pr=0 pw=0 time=4519 us)
          0                     NESTED LOOPS  (cr=373 pr=0 pw=0 time=4033 us)
          0                      NESTED LOOPS  (cr=373 pr=0 pw=0 time=3611 us)
          0                       TABLE ACCESS BY INDEX ROWID DEAL_COMP_PROM (cr=373 pr=0 pw=0 time=3166 us)
          0                        INDEX SKIP SCAN PK_DEAL_COMP_PROM (cr=373 pr=0 pw=0 time=2559 us)(object id 460586)
          0                       TABLE ACCESS BY INDEX ROWID DEAL_HEAD (cr=0 pr=0 pw=0 time=0 us)
          0                        INDEX UNIQUE SCAN PK_DEAL_HEAD (cr=0 pr=0 pw=0 time=0 us)(object id 460002)
          0                      INDEX RANGE SCAN ITEM_SUPPLIER_I1 (cr=0 pr=0 pw=0 time=0 us)(object id 461281)
       1452                   TABLE ACCESS FULL RPM_PROMO_COMP (cr=31 pr=3 pw=0 time=38 us)
    190227                  TABLE ACCESS FULL RPM_PROMO_COMP_DETAIL (cr=2477 pr=0 pw=0 time=36 us)
      69561               TABLE ACCESS FULL TSL_RPM_PROMO_MB_ATTR (cr=487 pr=484 pw=0 time=361 us)
      25271             TABLE ACCESS FULL TSL_RPM_PROMO_GET_ITEM (cr=146 pr=55 pw=0 time=53 us)
    793008            TABLE ACCESS BY INDEX ROWID ITEM_MASTER (cr=1586018 pr=28 pw=0 time=7006432 us)
    793008             INDEX UNIQUE SCAN PK_ITEM_MASTER (cr=793010 pr=19 pw=0 time=3817845 us)(object id 460014)
    211165          INDEX FAST FULL SCAN PK_ITEM_SUPPLIER (cr=862 pr=834 pw=0 time=341 us)(object id 461283)
    378625         TABLE ACCESS FULL RPM_PROMO_DEPT (cr=719 pr=715 pw=0 time=333 us)
    132392        TABLE ACCESS FULL TSL_RPM_PROMO_COMP_TPND (cr=817 pr=0 pw=0 time=80 us)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       5        0.00          0.00
      db file sequential read                       627        0.51          1.69
      db file scattered read                        699        0.08          0.68
      SQL*Net more data to client                     1        0.00          0.00
      SQL*Net message from client                     4       50.64        149.95
      direct path write temp                      56227        0.32        219.45
      direct path read temp                       11746        0.01          0.69
      control file sequential read                    7        0.00          0.00
      SQL*Net break/reset to client                   2        0.00          0.00
    SQL ID:
    Plan Hash: 1248216388
    SELECT NAME NAME_COL_PLUS_SHOW_PARAM,DECODE(TYPE,1,'boolean',2,'string',3,
      'integer',4,'file',5,'number',        6,'big integer', 'unknown') TYPE,
      DISPLAY_VALUE VALUE_COL_PLUS_SHOW_PARAM
    FROM
    V$PARAMETER WHERE UPPER(NAME) LIKE UPPER('%USER_DUMP_DEST%') ORDER BY
      NAME_COL_PLUS_SHOW_PARAM,ROWNUM
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.01       0.01          0          0          0           1
    total        4      0.01       0.02          0          0          0           1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 191
    Rows     Row Source Operation
          1  SORT ORDER BY (cr=0 pr=0 pw=0 time=15029 us)
          1   COUNT  (cr=0 pr=0 pw=0 time=15015 us)
          1    MERGE JOIN  (cr=0 pr=0 pw=0 time=15004 us)
       1495     FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=3021 us)
          1     FILTER  (cr=0 pr=0 pw=0 time=10994 us)
          1      SORT JOIN (cr=0 pr=0 pw=0 time=9469 us)
          1       FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=7735 us)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2     2763.24       2763.24
    SQL ID:
    Plan Hash: 643305917
    SELECT 'Y'
    FROM
    SEC_USER_GROUP SUG WHERE SUG.USER_ID = SYS_CONTEXT('USERENV', 'SESSION_USER')
       AND EXISTS(SELECT 'x' FROM FILTER_GROUP_MERCH FGM WHERE FGM.SEC_GROUP_ID =
      SUG.GROUP_ID AND ROWNUM = 1) AND ROWNUM = 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.01          1          3          0           0
    total        3      0.01       0.02          1          3          0           0
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 191     (recursive depth: 2)
    Rows     Row Source Operation
          0  COUNT STOPKEY (cr=3 pr=1 pw=0 time=12073 us)
          0   INDEX FULL SCAN PK_SEC_USER_GROUP (cr=3 pr=1 pw=0 time=12070 us)(object id 460226)
          0    COUNT STOPKEY (cr=2 pr=1 pw=0 time=12026 us)
          0     INDEX RANGE SCAN UK_FILTER_GROUP_MERCH (cr=2 pr=1 pw=0 time=12023 us)(object id 461052)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                         1        0.01          0.01
    SQL ID:
    Plan Hash: 643277548
    SELECT 'Y'
    FROM
    SEC_USER_GROUP SUG WHERE SUG.USER_ID = SYS_CONTEXT('USERENV', 'SESSION_USER')
       AND (EXISTS(SELECT 'x' FROM FILTER_GROUP_ORG FGO WHERE FGO.SEC_GROUP_ID =
      SUG.GROUP_ID AND ROWNUM = 1) OR EXISTS(SELECT 'x' FROM SEC_GROUP_LOC_MATRIX
      SGLM WHERE SGLM.GROUP_ID = SUG.GROUP_ID AND ROWNUM = 1)) AND ROWNUM = 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.01          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.02       0.00          2          3          0           0
    total        3      0.03       0.02          2          3          0           0
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 191     (recursive depth: 2)
    Rows     Row Source Operation
          0  COUNT STOPKEY (cr=3 pr=2 pw=0 time=8617 us)
          0   FILTER  (cr=3 pr=2 pw=0 time=8614 us)
          1    INDEX FULL SCAN PK_SEC_USER_GROUP (cr=1 pr=0 pw=0 time=39 us)(object id 460226)
          0    COUNT STOPKEY (cr=1 pr=1 pw=0 time=5403 us)
          0     INDEX RANGE SCAN PK_FILTER_GROUP_ORG (cr=1 pr=1 pw=0 time=5400 us)(object id 461061)
          0    COUNT STOPKEY (cr=1 pr=1 pw=0 time=3127 us)
          0     INDEX SKIP SCAN UK_SEC_GROUP_LOC_MATRIX (cr=1 pr=1 pw=0 time=3125 us)(object id 460888)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                         2        0.00          0.00
    SQL ID:
    Plan Hash: 4011473558
    SELECT NAME NAME_COL_PLUS_SHOW_PARAM,DECODE(TYPE,1,'boolean',2,'string',3,
      'integer',4,'file',5,'number',        6,'big integer', 'unknown') TYPE,
      DISPLAY_VALUE VALUE_COL_PLUS_SHOW_PARAM
    FROM
    V$PARAMETER WHERE UPPER(NAME) LIKE UPPER('%USER_DUMP_DEST%') ORDER BY
      NAME_COL_PLUS_SHOW_PARAM,ROWNUM
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        2      0.01       0.01          0          0          0           1
    total        4      0.01       0.01          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: 191
    Rows     Row Source Operation
          1  SORT ORDER BY (cr=0 pr=0 pw=0 time=15250 us)
          1   COUNT  (cr=0 pr=0 pw=0 time=15226 us)
          1    MERGE JOIN  (cr=0 pr=0 pw=0 time=15207 us)
       1495     FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=3166 us)
          1     FILTER  (cr=0 pr=0 pw=0 time=11059 us)
          1      SORT JOIN (cr=0 pr=0 pw=0 time=9512 us)
          1       FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=7741 us)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     2     3143.23       3143.23
    SQL ID:
    Plan Hash: 643140929
    SELECT 'Y'
    FROM
    SEC_USER_GROUP SUG WHERE SUG.USER_ID = SYS_CONTEXT('USERENV', 'SESSION_USER')
       AND ROWNUM = 1
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          1          1          0           1
    total        3      0.00       0.01          1          1          0           1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 191     (recursive depth: 2)
    Rows     Row Source Operation
          1  COUNT STOPKEY (cr=1 pr=1 pw=0 time=6617 us)
          1   INDEX RANGE SCAN SEC_USER_GROUP_I1 (cr=1 pr=1 pw=0 time=6614 us)(object id 460225)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                         1        0.00          0.00
    SQL ID:
    Plan Hash: 642786159
    SELECT DATA_LEVEL_SECURITY_IND, DIFF_GROUP_ORG_LEVEL_CODE,
      LOC_LIST_ORG_LEVEL_CODE, LOC_TRAIT_ORG_LEVEL_CODE, SEASON_ORG_LEVEL_CODE,
      SKULIST_ORG_LEVEL_CODE, TICKET_TYPE_ORG_LEVEL_CODE, UDA_ORG_LEVEL_CODE,
      DIFF_GROUP_MERCH_LEVEL_CODE, SEASON_MERCH_LEVEL_CODE,
      TICKET_TYPE_MERCH_LEVEL_CODE, UDA_MERCH_LEVEL_CODE, TSL_LOC_SEC_IND
    FROM
    SYSTEM_OPTIONS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.01       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           0
    Fetch        1      0.00       0.00          1          4          0           1
    total        3      0.01       0.01          1          4          0           1
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 191     (recursive depth: 2)
    Rows     Row Source Operation
          1  TABLE ACCESS FULL SYSTEM_OPTIONS (cr=4 pr=1 pw=0 time=6518 us)
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                         1        0.00          0.00
    SQL ID:
    Plan Hash: 643306006
    begin :con := FILTER_POLICY_SQL.V_ITEM_MASTER_S(:sn, :on); end;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: 191     (recursive depth: 1)
    SQL ID:
    Plan Hash: 647750573
    begin :con := FILTER_POLICY_SQL.V_ITEM_MASTER_S(:sn, :on); end;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1      0.00       0.00          0          0          0           1
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.00          0          0          0           1
    Misses in library cache during parse: 0
    Optimizer mode: CHOOSE
    Parsing user id: 191     (recursive depth: 1)
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        3      4.16       4.49          0          0          0           0
    Execute      3      0.00       0.00          0          0          0           0
    Fetch        9     53.03     276.32      91547    1615664          9          50
    total       15     57.19     280.82      91547    1615664          9          50
    Misses in library cache during parse: 2
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                      10        0.00          0.00
      SQL*Net message from client                     9     3143.23       6091.69
      SQL*Net more data from client                   8        0.00          0.00
      db file sequential read                       627        0.51          1.69
      db file scattered read                        699        0.08          0.68
      SQL*Net more data to client                     1        0.00          0.00
      direct path write temp                      56227        0.32        219.45
      direct path read temp                       11746        0.01          0.69
      control file sequential read                    7        0.00          0.00
      SQL*Net break/reset to client                   2        0.00          0.00
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       93      0.08       0.07          0          0          0           0
    Execute    579      0.12       0.14          0          0          0           2
    Fetch      930      0.06       0.51         63       2154          0        3254
    total     1602      0.26       0.73         63       2154          0        3256
    Misses in library cache during parse: 25
    Misses in library cache during execute: 21
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                        63        0.14          0.47
        9  user  SQL statements in session.
      573  internal SQL statements in session.
      582  SQL statements in session.
        0  statements EXPLAINed in this session.
    Trace file: hsctst09_ora_1671386_10046.trc
    Trace file compatibility: 11.1.0.7
    Sort options: prsela  fchela  exeela
           1  session in tracefile.
           9  user  SQL statements in trace file.
         573  internal SQL statements in trace file.
         582  SQL statements in trace file.
          36  unique SQL statements in trace file.
       81769  lines in trace file.
    17819535  elapsed seconds in trace file.Thanks in advance.

  • Interpret of TKPROF Output

    Hello friends,
    I have a 'select' within a loop while...
    Viewing the file generated by tkprof, has the information below:
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 109 2.12 7.24 284 7586 111205 21582
    Fetch 0 0.00 0.00 0 0 0 0
    total 110 2.13 7.25 284 7586 111205 21582
    The field 'count' tells me that she will be parsed 1 time and executed 109 times?
    Although it is considered 1 time, is difference in performance if it were played only 1 time?
    And what I see fields to improve performance?

    If it was executed only 1 time, it would be faster, sure, but is that what you want?
    Does your tkprof output has more information? I cant see any information to help improve performance.
    Try put here some AUTOTRACE info too.
    Edited by: user10146205 on 18/09/2008 14:38

  • High thread count on store.exe

    I understand that the mdb store process utilizes as much memory as is available.  My question is regarding the thread count on the process.  One of the three mailbox servers tends to have a higher thread count than the other two.  It
    usually ranges from 150 to 200 (while the other two are usually 130 to 150) but today it is a little over 300.  The rpc thread count on all the mailbox servers stays pretty low (60 or under) and the rpc thread count on the CAS servers usually
    hang out around 55-65, so that's all good.  All three mailbox servers also use VERY close to the same amount of memory all the time, so that doesn't seem to be making a difference.  I am just trying to determine why the thread count is noticably
    higher.  This server and one of other mailbox servers replicate the public folder database, and I can understand why that would account for some additional activity, but you would think the thread count would be higher on the other server with the public
    folder database as well, but it stays pretty low.  Hardware-wise these servers are all identical.  So is there something I can monitor in perf mon for instance?  I don't want to use experfwiz because that monitors everything under the sun and
    I need it a bit more centralized.  I have googled all over the place and the only thing I can find is that with newer versions of exchange this thread count ranges from 200-300 on heavy usage, and exch07 can handle up to 500 threads, so I can't even find
    which specific things to monitor that directly correlate with this issue.  So while I understand that it's not really too high, I would like to find out why it deviates from the norm if the other two servers are equal for all intents and purposes (same
    hardware, balanced DAG. etc).  I would like to mitigate any potential issues.  Thank you.

    Hi pchw,
    Thank you for your question.
    I am sorry that we could not find the specific things to monitor this issuer directly, because there are many reason which caused it. For example: virus, big size attachment in queue, hardware performance and so on. We could refer to the following steps
    to troubleshoot:
    Restart the service of “Microsoft Exchange transport”;
    Create a new database and move mailbox to new mailbox;
    We could do some disk health check if the load test is normal;
    Collect related application log and system log to
    [email protected] for our troubleshooting.
    We could run SDP on Exchange server and send it to
    [email protected] for our troubleshooting.
    http://blogs.msdn.com/b/askie/archive/2012/05/22/introduction-to-support-diagnostics-platform-sdp.aspx
    We could use tools  and logs to analysis if there are anything wrong or abnormal on Exchange server 2013. our bottle neck is disk IO latency, store.exe do require some CPU usage, but if our disk IO speed can keep in a normal range, the
    CPU usage will be smaller. Exchange is highly rely on disk IO performance because it need lots of IO operation regarding to transaction log and database file. If Disk IO has a high latency, I will definitely impact store.exe, if it`s getting seriously sometimes
    it may cause store.exe no response.        
    We could refer to the following link:
    https://technet.microsoft.com/en-us/library/ee832791(v=exchg.141).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • Need to tune parameter from tkprof output.

    Hi,
    i want to tune my sql queries using tkprof output.
    i want to know if the performance of my query not upto the mark then which parameter will i tune and how will i get this information from tkprof output.
    regards

    855516 wrote:
    Hi,
    i want to tune my sql queries using tkprof output.
    i want to know if the performance of my query not upto the mark then which parameter will i tune and how will i get this information from tkprof output.It is upto you to define the expected level of performance (mark) from your system - of course, it goes without saying that you can expect a super computer performance from a desktop class machine.
    TKProf does not provide information/advice regarding parameters to be tuned. It only gives detailed information about the query execution, its plan and the wait events (in case).

  • Query counter : event 3100 not logged in table RSDDSTAT_OLAP

    Hi experts,
    We have a customer scenario where in the table RSDDSTAT_OLAP table is not getting populated with the eventID '3100' when a query is executed. Due to this the query counter is not getting any value ( according to extractor logic RSTC_BIRS_OLAP_AGGREGATED_DATA)
    The changes of the notes : 1250182 ,1505325, 1093755 are already present in the cutomer system.
    Hence would like to know the cases in which OLAP read eventid 000003100 would not get recorded in the table RSDDSTAT_OLAP, on execution of the query .
    Thanks in Advance,
    Keerthi

    Hi,
    It's a good decision you made because you shouldn't create objects in the SYS schema. I see you're using the add_job_email_notification procedure, so I'm assuming you're on 11g onwards.
    This procedure is meant to make the job easy for you. That is, you don't need to worry about setting up AQ, the procedure does it all for you. All you need to do is setup the mail server if not already done, and call this procedure to add the mail notification. That's it.
    You can also specify a filter to the add_job_email_notification procedure, so maybe you could specify directly your CLIENT.LOAD_DATA job to this procedure.

  • Photoshop CC can't seem to handle complex/high poly count 3D Models. Will this be addressed?

    Hello all,
    I am running Photoshop CC on 3 systems and having the relatively same problems on all. The source files are exported from ZBrush- .stl or .obj files that are complex and have high poly counts. The file sizes are into the hundreds of megabytes.  These are not the simple files like they show when people are using the 3D features- a racecar or simple toy rocket.
    Photoshop CC doesn't seem to be able to open all the files and even when it does, the structures facings or facets don't always appear correct. I've developed a partial workaround, by merging the objects and reducing the poly count (which creates a new set of problems).
    If I do get a file open, my ultimate goal is to be able to color it, add light it and render it for 2d print purposes. Again Photoshop seems to be picky- When I apply color via the airbrush tool, it usually isn't smooth. It seems to apply color by facet or facing. Same thing when I try to manually add in texture from another source file. It appears to make the detail jagged and blurry from the source file.
    The appeal of using Photoshop for this process is we have people here who can do it without too much of a learning curve. Otherwise everyone else has to learn ZBrush just to color and light the models.
    I've pretty much done all the troubleshooting I can and exhausted all the tools at hand. I have tried both texture painting and projections painting and all the other options. I believe the meshes are just too complicated. And if there is something incorrect in the file, such as a reversed normal, Photoshop doesn't seem to know how to deal with it. My systems have more than enough to handle the files.
    Does anyone have any similar issues and is Adobe working on them in the form of a new release?
    Thanks!

    Hi Everyone. Thank you for writing back. I have two 2011 imacs running intel 2.93 ghz, one with 20gb or ram and one with 16gb, both have 1tb hard drives, 1gb vram, one running os 10.6 the other 10.9. I have a 3rd computer, a PC  that notably handles the files more quickly, but still crashes if it doesn't like something from the original 3d model. This one has a 3.7ghz intel quadcore processor, 24gb of ram, 3tb hard drive, and a 4gb nvidia geforce video card, running Windows 8.1.
    So the reason I make the statement about Photoshop and not about my computers, is that all the above computers can handle the original files in zbrush. All the above computers can handle the files in meshlab. With ease. But when I get to photoshop, I face long load times, crashing, and a lag using the tools within the 3d space. And sometimes it handles the models differently than it does in any other 3d program. It seems picky for lack of a better word.
    When I say high poly count, I mean 4 million to 8 million. I am able to knock down the poly count in meshlab and that can help. But sometimes the files just don't want to open in Photoshop. 
    With all that said, it may be in something how some of the models were built, but again, Photoshop is the only one having an issue. And I have to add that I have been using Photoshop for 20 years and I absolutely love it. I am trying to make a case for my company to use it for coloring, lighting, and processing 3d models, but I just can't with the above issues.
    Any help would be greatly appreciated.
    Chris, if you need files, I can see about getting them to you. The only real issue is the work is highly proprietary and kept under wraps. So I would need to get approval and feel comfortable that is will be protected. Thanks!

  • Skype 4.2.0.11 has abnormally high CPU usage while...

    Skype 4.2.0.11 has abnormally high CPU usage while idle.
    I can't get my laptop under 70 degrees celsius unless I cpulimit or quit skype, and cpulimiting it actually makes it completely unresponsive, as if some other thread is constantly generating a lot of work and taking priority over the UI thread.
    What the heck is skype doing? (And why do any of its threads need nice -10?) It takes up more CPU time than pulseaudio, truecrypt, and deluged combined.
    Its CPU usage is constantly between 5 and 50 percent*, it's absolutely horrible.
    *While idle. I'm unable to make calls.
    I know this is expected from a linux user, but for all I know, Skype is malware. It's not open-source, so I can't find out for myself, and there are no open-source alternatives so the frankly shameful amount of bugs I encounter in Skype will never be fixed.
    There are several bugs I'd love to be fixed in Skype, but first, PLEASE, optimize your code. It's absolutely horriffic at the moment.

    Attached are statistics from my desktop over approximately a 24 hour period for the processes shown (other than firefox and adb).
    Pulseaudio tops skype this time but that's because I've had music playing through mpd for a few hours. Skype uses more than 16 times the CPU that pidgin does, and almost double the RAM! RAM isn't shown in the screenshot but take my word for it. Bear in mind that I haven't taken (or made) any calls in this period of time, and pidgin has been signed into three different services and using encrypted chat.
    I really wish that at least the protocol would be documented so someone could work around this, at the moment I don't think the guys writing skype realize just how unstable the linux port is. At least it's better than the Android port.
    [Edit for those unfamiliar with linux processes: "TIME" is the cumulative time that the program has been scheduled for on any core, effectively making it a measure of total CPU usage for a given time period]
    Attachments:
    2014-06-22-233238_530x119_scrot.png ‏9 KB

  • Viewing Bind variable values in TKPROF output

    DB Version:10gR2
    After tracing a Stored proc , i can see the bind variable values in the raw trace file. But the TKPROF output of this trace file doesn't show Bind variable values. Is there a way i could see Bind variable values in TKPROF output?

    I guess when you think about it, TKPROF is primarily intended to aggregate and summarise repeated SQLs and related statistics from raw trace files. While waits can reasonably be aggregated over multiple exeuctions of the same SQL, bind variables are explicitly associated with individual executions of an SQL and hence cannot be aggregated in the same fashion.

Maybe you are looking for

  • Not able to open file...maybe you can help.

    Last Saturday I was recording direct to hard drive using Adobe Premiere Elements 9 and my computer shut down. I have a 41GB file saved with a .avi extension but it is not able to be opened in any program yet. From what I understand, in Adobe, once th

  • Using Macbook Pro Closed

    I would have looked this up in the forums because i'm sure others have asked this. but the search is down. my question is, is it bad to use the macbook pro, while closed on an external monitor/hdtv? like will it overheat?

  • MAX Function not returning MAX

    I have a query that is pulling in EDI 214 status codes, and want to pull in the last received status for status type "AG". To do this, I'm using the MAX function on the INSERT_DATE field of the status code AG, but the query keeps returning both AG st

  • Is "Baseline Date" stored anywhere in the 2010 Draft/Published/Reporting Databases?

        I have a need to display Baseline Date in views and reports, but can't find anything in Reporting DB, or available fields in PC views that has it. This is a pretty important piece of information IMHO, and as of now, we have to open each Project i

  • Photoshop CC: Could not open Photoshop because of a Program Error. How do I fix this?

    Photoshop CC: Could not open Photoshop because of a Program Error. How do I Make sure your OS X user account has Read & Write access for the following path: /Users//Library/Preferences/Adobe