Production Cube painfully slow when resolving partitioned data

Hi,
We have a few 10g cubes in our production environment on Unix servers. For the most part the users are very satisfied with the response time. Most are of a similar design Global Composites, compressed around 9 dimensions.
Recently we introduced a new cube and took advantage of the Parallell processing
feature and partitioned it on the month level of time . It has 9 dimensions (see portion of load log below for specifics). All dimensions are sparse , global composites, Compression, 15 measures .. Most dimensions are aggregated fully or 1 below the top with the exception product aggregated only to the leaf level.
The load works fine 9million data rows loaded and aggregated in 2 hours. The problem we are having is in the response time to a query. It's fine when only 1 month is selected. When you select qtr and years the query becomes painfully slow. When selecting 1 measure for 1 month it takes about 15 seconds to return. When selecting the same measure for the year or qtr it takes about 6 minutes to return. The same is true when I run a report from the Olap worksheet using olap DML so i know that it has nothing to do with the front end or network.
Any ideas on what could be causing the bottleneck in summing the partitions or on how to diagnose the problem. Version is 10.2.0.2
There are only 7 months in the cube and it's 25gb.
thx
Mike
SQL> select xml_loadid, xml_recordid, xml_date, xml_message
2 from OLAPSYS.xml_load_log
3 where xml_loadid = 1006;
XML_LOADID XML_RECORDID XML_DATE XML_MESSAGE
1006 1 12-AUG-07 14:17:30 Job# AWXML$_1006 to Build(Refresh) Analytic Workspace RLCUBEMGR.ACP_MTH Submitted to the Queue.
1006 11 12-AUG-07 14:17:31 Started Build(Refresh) of RLCUBEMGR.ACP_MTH Analytic Workspace.
1006 12 12-AUG-07 14:17:31 Attached AW RLCUBEMGR.ACP_MTH in RW Mode.
1006 13 12-AUG-07 14:17:31 Started Loading Dimensions.
1006 14 12-AUG-07 14:17:33 Started Loading Dimension Members.
1006 15 12-AUG-07 14:17:33 Started Loading Dimension Members for A_FICO_MTH.DIMENSION (1 out of 8 Dimensions).
1006 16 12-AUG-07 14:17:34 Finished Loading Members for A_FICO_MTH.DIMENSION. Added: 27. No Longer Present: 0.
1006 17 12-AUG-07 14:17:34 Started Loading Dimension Members for A_GEN4_MTH.DIMENSION (2 out of 8 Dimensions).
1006 18 12-AUG-07 14:17:34 Finished Loading Members for A_GEN4_MTH.DIMENSION. Added: 11. No Longer Present: 0.
1006 19 12-AUG-07 14:17:34 Started Loading Dimension Members for A_LOC_MTH.DIMENSION (3 out of 8 Dimensions).
1006 20 12-AUG-07 14:17:44 Finished Loading Members for A_LOC_MTH.DIMENSION. Added: 22,887. No Longer Present: 0.
1006 21 12-AUG-07 14:17:44 Started Loading Dimension Members for A_MAKE_MTH.DIMENSION (4 out of 8 Dimensions).
1006 22 12-AUG-07 14:17:45 Finished Loading Members for A_MAKE_MTH.DIMENSION. Added: 59. No Longer Present: 0.
1006 23 12-AUG-07 14:17:45 Started Loading Dimension Members for A_PROD_MTH.DIMENSION (5 out of 8 Dimensions).
1006 24 12-AUG-07 14:17:45 Finished Loading Members for A_PROD_MTH.DIMENSION. Added: 31. No Longer Present: 0.
1006 25 12-AUG-07 14:17:45 Started Loading Dimension Members for A_SUBV_MTH.DIMENSION (6 out of 8 Dimensions).
1006 26 12-AUG-07 14:17:45 Finished Loading Members for A_SUBV_MTH.DIMENSION. Added: 3. No Longer Present: 0.
1006 27 12-AUG-07 14:17:45 Started Loading Dimension Members for A_TERM_MTH.DIMENSION (7 out of 8 Dimensions).
1006 28 12-AUG-07 14:17:45 Finished Loading Members for A_TERM_MTH.DIMENSION. Added: 12. No Longer Present: 0.
1006 29 12-AUG-07 14:17:45 Started Loading Dimension Members for A_TIME_MTH.DIMENSION (8 out of 8 Dimensions).
1006 30 12-AUG-07 14:17:45 Finished Loading Members for A_TIME_MTH.DIMENSION. Added: 11. No Longer Present: 0.
1006 31 12-AUG-07 14:17:45 Finished Loading Dimension Members.
1006 32 12-AUG-07 14:17:45 Started Loading Hierarchies.
1006 33 12-AUG-07 14:17:45 Started Loading Hierarchies for A_FICO_MTH.DIMENSION (1 out of 8 Dimensions).
1006 34 12-AUG-07 14:17:46 Finished Loading Hierarchies for A_FICO_MTH.DIMENSION. 1 hierarchy(s) STANDARD Processed.
1006 35 12-AUG-07 14:17:46 Started Loading Hierarchies for A_GEN4_MTH.DIMENSION (2 out of 8 Dimensions).
1006 36 12-AUG-07 14:17:47 Finished Loading Hierarchies for A_GEN4_MTH.DIMENSION. 1 hierarchy(s) STANDARD Processed.
1006 37 12-AUG-07 14:17:47 Started Loading Hierarchies for A_LOC_MTH.DIMENSION (3 out of 8 Dimensions).
1006 38 12-AUG-07 14:18:03 Finished Loading Hierarchies for A_LOC_MTH.DIMENSION. 5 hierarchy(s) DLRGRP, RGNDLRGRP, RGNSTATE, STANDAR
D, STATE Processed.
1006 39 12-AUG-07 14:18:03 Started Loading Hierarchies for A_MAKE_MTH.DIMENSION (4 out of 8 Dimensions).
1006 40 12-AUG-07 14:18:03 Finished Loading Hierarchies for A_MAKE_MTH.DIMENSION. 1 hierarchy(s) STANDARD Processed.
1006 41 12-AUG-07 14:18:03 Started Loading Hierarchies for A_PROD_MTH.DIMENSION (5 out of 8 Dimensions).
1006 42 12-AUG-07 14:18:03 Finished Loading Hierarchies for A_PROD_MTH.DIMENSION. 2 hierarchy(s) NEWUSED, STANDARD Processed.
1006 43 12-AUG-07 14:18:03 Started Loading Hierarchies for A_SUBV_MTH.DIMENSION (6 out of 8 Dimensions).
1006 44 12-AUG-07 14:18:03 Finished Loading Hierarchies for A_SUBV_MTH.DIMENSION. 1 hierarchy(s) STANDARD Processed.
1006 45 12-AUG-07 14:18:03 Started Loading Hierarchies for A_TERM_MTH.DIMENSION (7 out of 8 Dimensions).
1006 46 12-AUG-07 14:18:04 Finished Loading Hierarchies for A_TERM_MTH.DIMENSION. 1 hierarchy(s) STANDARD Processed.
1006 47 12-AUG-07 14:18:04 Started Loading Hierarchies for A_TIME_MTH.DIMENSION (8 out of 8 Dimensions).
1006 48 12-AUG-07 14:18:04 Finished Loading Hierarchies for A_TIME_MTH.DIMENSION. 1 hierarchy(s) STANDARD Processed.
1006 49 12-AUG-07 14:18:04 Finished Loading Hierarchies.
1006 50 12-AUG-07 14:18:04 Started Loading Attributes.
1006 51 12-AUG-07 14:18:04 Started Loading Attributes for A_FICO_MTH.DIMENSION (1 out of 8 Dimensions).
1006 52 12-AUG-07 14:18:04 Finished Loading Attributes for A_FICO_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 53 12-AUG-07 14:18:04 Started Loading Attributes for A_GEN4_MTH.DIMENSION (2 out of 8 Dimensions).
1006 54 12-AUG-07 14:18:04 Finished Loading Attributes for A_GEN4_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 55 12-AUG-07 14:18:04 Started Loading Attributes for A_LOC_MTH.DIMENSION (3 out of 8 Dimensions).
1006 56 12-AUG-07 14:18:11 Finished Loading Attributes for A_LOC_MTH.DIMENSION. 11 attribute(s) A_DEALER_AMERICREDIT_IND, A_DEALER_E
CONTRACTING_IND, A_DEALER_MARKET_SEGMENT, A_DEALER_ONEGAP_IND, A_DEALER_RESERVE_PLAN, A_DEALER_RETAIL_SALES_AGR_APV, A_D
EALER_SEGMENT, A_DEALER_STATUS_CD, A_FLOOR_PLAN_PROVIDER_NAME, LONG_DESCRIPTION, SHORT_DESCRIPTION Processed.
1006 57 12-AUG-07 14:18:11 Started Loading Attributes for A_MAKE_MTH.DIMENSION (4 out of 8 Dimensions).
1006 58 12-AUG-07 14:18:11 Finished Loading Attributes for A_MAKE_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 59 12-AUG-07 14:18:11 Started Loading Attributes for A_PROD_MTH.DIMENSION (5 out of 8 Dimensions).
1006 60 12-AUG-07 14:18:11 Finished Loading Attributes for A_PROD_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 61 12-AUG-07 14:18:11 Started Loading Attributes for A_SUBV_MTH.DIMENSION (6 out of 8 Dimensions).
1006 62 12-AUG-07 14:18:11 Finished Loading Attributes for A_SUBV_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 63 12-AUG-07 14:18:11 Started Loading Attributes for A_TERM_MTH.DIMENSION (7 out of 8 Dimensions).
1006 64 12-AUG-07 14:18:11 Finished Loading Attributes for A_TERM_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 65 12-AUG-07 14:18:11 Started Loading Attributes for A_TIME_MTH.DIMENSION (8 out of 8 Dimensions).
1006 66 12-AUG-07 14:18:12 Finished Loading Attributes for A_TIME_MTH.DIMENSION. 2 attribute(s) LONG_DESCRIPTION, SHORT_DESCRIPTION
Processed.
1006 67 12-AUG-07 14:18:12 Finished Loading Attributes.
1006 68 12-AUG-07 14:18:12 Finished Loading Dimensions.
1006 69 12-AUG-07 14:18:12 Started Updating Partitions.
1006 70 12-AUG-07 14:18:12 Finished Updating Partitions.
1006 71 12-AUG-07 14:18:26 Detached AW RLCUBEMGR.ACP_MTH.
1006 72 12-AUG-07 14:18:26 Starting Parallel Processing.
1006 10073 12-AUG-07 14:18:27 Attached AW RLCUBEMGR.ACP_MTH in MULTI Mode.
1006 10074 12-AUG-07 14:18:27 Started Load of Measures: V_APP_RECEIVED, V_APP_APPROVED, V_APP_COUNTERED, V_APP_CANCELLED, V_APP_DECISIONE
D, V_BKD_UNIT, V_BKD_DOLLAR, V_OS_UNIT, V_OS_DOLLAR, V_DELQ_UNIT, V_DELQ_DOLLAR, V_CHGOFF_UNIT, V_CHGOFF_DOLLAR, V_REPO_
UNIT, V_DLRRSVUNEARN from Cube ACPMTH.CUBE. DEFAULT Partition.
1006 10075 12-AUG-07 14:18:42 Finished Load of Measures: V_APP_RECEIVED, V_APP_APPROVED, V_APP_COUNTERED, V_APP_CANCELLED, V_APP_DECISION
ED, V_BKD_UNIT, V_BKD_DOLLAR, V_OS_UNIT, V_OS_DOLLAR, V_DELQ_UNIT, V_DELQ_DOLLAR, V_CHGOFF_UNIT, V_CHGOFF_DOLLAR, V_REPO
UNIT, VDLRRSVUNEARN from Cube ACPMTH.CUBE. DEFAULT Partition. Processed 0 Records. Rejected 0 Records.
1006 10076 12-AUG-07 14:18:42 Started Auto Solve for Measures: V_APP_APPROVED, V_APP_CANCELLED, V_APP_COUNTERED, V_APP_DECISIONED, V_APP_
RECEIVED, V_BKD_DOLLAR, V_BKD_UNIT, V_CHGOFF_DOLLAR, V_CHGOFF_UNIT, V_DELQ_DOLLAR, V_DELQ_UNIT, V_DLRRSVUNEARN, V_OS_DOL
LAR, V_OS_UNIT, V_REPO_UNIT from Cube ACPMTH.CUBE. DEFAULT Partition.
1006 90112 12-AUG-07 16:09:33 Running Jobs: AWXML$_1006_577, AWXML$_1006_578. Waiting for Tasks to Finish...
1006 90113 12-AUG-07 16:18:57 Finished Parallel Processing.
1006 90114 12-AUG-07 16:18:57 Completed Build(Refresh) of RLCUBEMGR.ACP_MTH Analytic Workspace.
SQL> COLUMN DBMS_LOB.GETLENGTH(AWLOB) HEADING "Bytes";
SQL> SELECT EXTNUM, SUM(DBMS_LOB.GETLENGTH(AWLOB)) FROM AW$acp_MTH GROUP BY EXTNUM;
EXTNUM SUM(DBMS_LOB.GETLENGTH(AWLOB))
1 5715538444
3 3758960128
2 3758960128
0 1.1173E+10
4 2295138076

Watrost makes some very valid points and you should review the suggestions he has made.
In addition I would like to add the following. When deciding on how and when to use partitioning and parallel processing I would suggest considering these points:
1) The partition dimension - most people partition on time, probably because all the examples I have seen in this area show this as if it were the "normal" method. Using time is a good idea if you want to perform some form of rolling time window and need to quickly and easily drop data for a specific time period. However, partitioning does impact on query performance and you need to balance the needs of "ease of maintenance" against query performance for your users. Once you have selected a level to use as the partition key you will notice on the Summary tab that levels above this key are in fact grayed out and cannot be selected. As Watrost points out, the partition key in effect becomes your top level of pre-aggregation. All other levels are summed at query time. This is normally ok, but for a 9 dimensional model it means you have no summary levels computed across any of your other 8 dimensions for levels above the partition key. This will have a serious impact on your query performance.
2) Parallel processing - many people seem to implement partitioning in the expectation that their cubes will aggregate more quickly. In most cases this can be true but there are many factors to consider. To be really effective you need to have multiple CPUs, and you should set the number of parallel jobs to a maximum of No of CPUs-1. For some reason I have seen many DBAs just randomly pick a number for this value that greatly exceeds the number of CPUs and then wonder why their cube build takes such a long time. I would start by using the No of CPUs/2 and scaling up to No of CPUs-1 to determine the sweet spot for your system based on resources. Don't forget it is not just CPUs that are important in this situation you also need fast disks as I/O contention can occur very easily.
3) Partial vs Full aggregation - If you upgrade to the latest 10.2.0.3 patcheset and apply the OLAP A Patch as well (available from Metalink) which will allow you to take advantage of partial aggregation features. When loading data into a cube you should only aggregate data for incoming values rather than re-aggregating data for the whole cube. Although AWM does provide a radio button to control this on the second page of the maintenance wizard it is only with the above patchsets that this actually works.
4) Sortarea size : check your sortarea size. Typically, this is set very small in most instances and OLAP operations are very sort intensive. Therefore, increasing this to 1M or higher can have a significant impact on load performance.
5) Monitoring Builds - There are some free performance views you can download from OTN that will help you monitor what is happening during a build. See the link for SQL Scripts for OLAP DBAs and the associated readme at:
http://www.oracle.com/technology/products/bi/olap/OLAP_DBA_scripts.ZIP
http://www.oracle.com/technology/products/bi/olap/OLAP_DBA_README.htm
I would look at the views AW_WAIT_EVENTS, OLAP_PGA_USE and AW_LONGOPS as well as generally monitoring your instance via OEM using the ADDM reports that can be generated. These will help you discover performance bottlenecks in your system
Now for the dilemma - parallel processing vs partitioning. Most people would agree that partial aggregation is a good idea as there is no need to re-aggregate a complete cube when there have been no changes to the dimensions/hierarchies and you are loading data for just the current month. But if you partition by month you will never get parallel processing because you will only be aggregating data within a single partition and for parallel processing to occur aggregation must occur across multiple partitions. What it does mean is that the time take for each load and partial aggregation should be consistent which makes it easy to plan.
If this is proving to be a significant problem then it is possible to use partitioning and generate a fully solved cube. In 11g this will be resolved using a new aggregation feature. For 10gR2 it is possible to create this type of solution. In fact I have just re-designed a customers physical data model to reduce the query time for one of their main user reports from 14 minutes to 10 seconds. The problem was the query accessed the data within the partition that was not aggregated.
It is quite a simple process and does not change your current logical data model. Quite simply you create a surrogate partition dimension with only one two levels - All and "Level 1". Partition on "Level 1". If you are using time, which most people do, level 1 contains all the values for all months, all quarters and all years. Next create a source table that contains using GROUPING SETS to compute totals for months, quarters and years only for base levels across all your other dimensions. This will created an embedded total fact table for your surrogate time dimension.
In the mapping editor, map the surrogate time dimension column in the fact table to your surrogate dimension "Level 1". In the Rules tab within AWM set the aggregation for this surrogate dimension to "Do not Aggregate". Load your data.
In your existing cube you replace your existing stored measures with calculated measures, using the same name, that point to the new physical cubes via a QDR from the standard time dimension to the surrogate time dimension.
Hope this helps.
Keith Laker
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/

Similar Messages

  • XP computer painfully slow when latest Firefox is installed

    I have a win vista computer which has worked for years and run Firefox fine, Two weeks ago I upgraded firefox as usual and Firefox became painfully slow. A nerdy friend tried reloading the latest Firefox and concluded Firefox was much slower than Explorer or than Opera. My wife is very unhappy. What do I do now?

    Well you could start with giving us the troubleshooting information from the Firefox installation that's having problems<br>
    *Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting Information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.

  • Retrieval very Slow when using Partition in ASO

    <p>Hi -<br><br>I have partitioned my ASO cube using Transparent partition and I amretrieving it thru BSO.The retrieval for some combinations are VERYVERY SLOW in Excel.We have over 250,000 members.I have usedRetrieval Buffer and Retrieval Sort Buffer sizes of 10000KB and1000KB respectively.Some retrievals take more than 4 minutes.<br>When Designing Aggregation for ASO, I have used the Recommendedviews to materialize aggregation.<br>Do I have to do or change some settings for better Performance?<br>Any help would be greatly appreciated.<br><br>Thanks,<br>Narain</p>

    <p>Making direct I/O (in place of default buffered I/O) candefinitely help a lot.</p><p>Then you can increase some data file cache upto 2GB [as per yoursys support]. Also check about your dedicated parallel processsides.</p><p>I wish it helps.</p>

  • My Macbook Pro 15" has become painfully slow when transferring files to USB or my Externel HardDrive. Any ideas?

    I's unsure when it started but for quite some time copying even 100-200MB files is taken 5-10 minutes. I have tried many different USB's and External HardDrives, but nothing seems to be working, no matter what USB port it is plugged into. I have researched online and have found many people with the same issue, but no one seems to have a fix. If I am in a rush to get to school it's the last thing I want to have to deal with. I am running Lion 10.7.4 on my 15" Macbook Pro.

    From the Safari menu bar, select
    Safari ▹ Preferences ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.
    If you wish, you may be able to salvage the errant extension by uninstalling and reinstalling it. Its settings will revert to their defaults. If the extension still causes a problem, remove it permanently or refer to its developer for support.

  • Query is running very slow when consulting history data in EBS

    SELECT *
      FROM (select NVL(TO_CHAR(aps.vendor_id), 'SIN PROVEEDOR') CODIGO,
                   NVL(aps.vendor_name, 'SIN PROVEEDOR') PROVEEDOR,
                   null IMPORTE_TRANSACCIONAL,
                   SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
                       NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
              from ra_customer_trx_all cta,
                   ra_cust_trx_types_all ctt,
                   ra_customer_trx_lines_all ctl,
                   mtl_system_items_b inv,
                   hz_cust_accounts ca,
                   hz_parties p,
                   AR_CUSTOMERS ac,
                   hz_cust_acct_sites_all hcca,
                   hz_cust_site_uses_all hcsua,
                   RA_TERRITORIES rt,
                   Jtf_Rs_Salesreps vend,
                   gl_code_combinations glc,
                   ap_suppliers aps,
                   (select paa.item_id, paa.vendor_id
                      from PO_ASL_ATTRIBUTES paa, PO_APPROVED_SUPPLIER_LIST PASL
                     where Paa.Asl_Id = PASL.Asl_Id(+)
                       and pasl.disable_flag is null) paa2
             where CTA.cust_trx_type_id = ctt.cust_trx_type_id
               and ctl.customer_trx_id = cta.customer_trx_id
               and ctl.Inventory_Item_Id = inv.inventory_item_id(+)
               and ctt.gl_id_rec = glc.code_combination_id
               and ca.cust_account_id = cta.bill_to_customer_id
               and p.party_id = ca.party_id
               and ac.CUSTOMER_ID = cta.bill_to_customer_id
               and hcca.cust_account_id = ca.cust_account_id
               and hcca.org_id = '82'
               and hcsua.site_use_id = cta.bill_to_site_use_id
               and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
               and hcsua.org_id = '82'
               and rt.territory_id(+) = hcca.territory_id
               and cta.primary_salesrep_id = vend.salesrep_id(+)
               and inv.organization_id = '84'
               and paa2.vendor_id = aps.vendor_id(+)
               and ctl.inventory_item_id = paa2.item_id(+)
               AND CTT.TYPE IN ('INV', 'CM')
               and ca.cust_account_id(+) = cta.bill_to_customer_id
               and p.party_id(+) = ca.party_id
               and ctl.Line_Type = 'LINE'
               and cta.complete_flag = 'Y'
               and cta.status_trx not in ('VD')
               and cta.legal_entity_id = '23274'
               and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
                   to_Date('13/10/2014', 'dd/MM/yyyy')
             group by aps.vendor_id, aps.vendor_name
            UNION
            select 'SIN ITEM' CODIGO,
                   'SIN ITEM' PROVEEDOR,
                   null IMPORTE_TRANSACCIONAL,
                   SUM(nvl(CTL.GROSS_EXTENDED_AMOUNT, CTL.EXTENDED_AMOUNT) *
                       NVL(Cta.EXCHANGE_RATE, 1)) IMPORTE_FUNCIONAL
              from ra_customer_trx_all       cta,
                   ra_cust_trx_types_all     ctt,
                   ra_customer_trx_lines_all ctl,
                   hz_cust_accounts          ca,
                   hz_parties                p,
                   AR_CUSTOMERS              ac,
                   hz_cust_acct_sites_all    hcca,
                   hz_cust_site_uses_all     hcsua,
                   RA_TERRITORIES            rt,
                   Jtf_Rs_Salesreps          vend,
                   gl_code_combinations      glc
             where CTA.cust_trx_type_id = ctt.cust_trx_type_id
               and ctl.customer_trx_id = cta.customer_trx_id
               and ctl.Inventory_Item_Id is null
               and ctt.gl_id_rec = glc.code_combination_id
               and ca.cust_account_id = cta.bill_to_customer_id
               and p.party_id = ca.party_id
               and ac.CUSTOMER_ID = cta.bill_to_customer_id
               and hcca.cust_account_id = ca.cust_account_id
               and hcca.org_id = '82'
               and hcsua.site_use_id = cta.bill_to_site_use_id
               and hcsua.cust_acct_site_id = hcca.cust_acct_site_id
               and hcsua.org_id = '82'
               and rt.territory_id(+) = hcca.territory_id
               and cta.primary_salesrep_id = vend.salesrep_id(+)
               AND CTT.TYPE IN ('INV', 'CM')
               and ca.cust_account_id(+) = cta.bill_to_customer_id
               and p.party_id(+) = ca.party_id
               and ctl.Line_Type = 'LINE'
               and cta.complete_flag = 'Y'
               and cta.status_trx not in ('VD')
               and cta.legal_entity_id = '23274'
               and cta.trx_date between to_Date('01/10/2014', 'dd/MM/yyyy') AND
                   to_Date('13/10/2014', 'dd/MM/yyyy')
             group by 'SIN ITEM', 'SIN ITEM') T_GRUPO
    order by DECODE(T_GRUPO.PROVEEDOR,
                     'SIN ITEM',
                     'A',
                     'SIN PROVEEDOR',
                     'A',
                     T_GRUPO.PROVEEDOR)

    Hi Hussein,
    APP 12.1.3
    Database 11.2.0.3.0
    SO linux x86-64
    stadistics: 0ne month ago 
    this  slowness is from three months ago
    Execution Plan
    | Id  | Operation                                                  | Name                                  | Rows  | Bytes | Cost (%CPU)|
    |   0 | SELECT STATEMENT                                 |                                          |      2 |   318 | 12680   (1)|
    |   1 |  SORT ORDER BY                                      |                                          |      2 |   318 | 12680   (1)|
    |   2 |   VIEW                                                        |                                          |      2 |   318 | 12679   (1)|
    |   3 |    SORT UNIQUE                                          |                                         |      2 |   697 | 12679  (51)|                                      
    |   4 |     UNION-ALL                                              |                                          |        |            |               |                                
    |   5 |      HASH GROUP BY                                   |                                           |      1 |   377 |  6338   (1)|                                      
    |   6 |       NESTED LOOPS OUTER                        |                                            |      1 |   377 |  6336   (1)|                                      
    |   7 |        NESTED LOOPS OUTER                       |                                           |      1 |   343 |  6336   (1)|                                      
    |   8 |         NESTED LOOPS                                 |                                              |      1 |   328 |  6335   (1)|                                      
    |   9 |          NESTED LOOPS                                |                                              |      1 |   323 |  6335   (1)|                                      
    |  10 |           NESTED LOOPS OUTER                 |                                                 |      1 |   311 |  6333   (1)|                                      
    |  11 |            NESTED LOOPS                           |                                                    |      1 |   304 |  6332   (1)|                                      
    |  12 |             NESTED LOOPS                          |                                                  |      1 |   296 |  6332   (1)|                                      
    |  13 |              NESTED LOOPS                        |                                                   |      1 |   275 |  6329   (1)|                                      
    |* 14 |               HASH JOIN                               |                                                   |      1 |   192 |  6328   (1)|                                      
    |* 15 |                HASH JOIN                    |                                                              |  6493 |   450K|  5778   (1)|                                       
    |* 16 |                 HASH JOIN                   | |                                                              6493 |   367K|  5432   (1)|                                       
    |* 17 |        TABLE ACCESS BY INDEX ROWID | RA_CUSTOMER_TRX_ALL                  |  6556 |   288K|  4635   (1)|                                       
    |* 18 |                   INDEX RANGE SCAN          | RA_CUSTOMER_TRX_N5                     | 26223 |        |    97   (2)|                                      
    |* 19 |                  TABLE ACCESS FULL          | HZ_CUST_SITE_USES_ALL                  | 40227 |   510K|   797   (3)|                                       
    |* 20 |                 TABLE ACCESS FULL           | HZ_CUST_ACCT_SITES_ALL                  | 20020 |   254K|   345   (3)|                                       
    |  21 |                TABLE ACCESS FULL            | HZ_CUST_ACCOUNTS                             | 40020 |  4728K|   549   (3)|                                       
    |* 22 |               INDEX UNIQUE SCAN             | HZ_PARTIES_U1                                       |      1|                  |     0   (0)|                                       
    |* 23 |       TABLE ACCESS BY INDEX ROWID    | RA_CUSTOMER_TRX_LINES_ALL           |     1 |    21      |     3   (0)|                                       
    |* 24 |               INDEX RANGE SCAN              | RA_CUSTOMER_TRX_LINES_N2                |      4 |            |     2   (0)|                                      
    |* 25 |             INDEX UNIQUE SCAN               | MTL_SYSTEM_ITEMS_B_U1                      |      1 |     8      |     0   (0)|                                      
    |* 26 |            INDEX RANGE SCAN                 | JTF_RS_SALESREPS_U1                           |      1 |     7      |     1   (0)|                                      
    |* 27 |           TABLE ACCESS BY INDEX ROWID       | RA_CUST_TRX_TYPES_ALL              |      1 |    12      |     2   (0)|                                      
    |* 28 |            INDEX RANGE SCAN                 | RA_CUST_TRX_TYPES_U1                           |      1 |            |     1   (0)                                       
    |* 29 |          INDEX UNIQUE SCAN                  | GL_CODE_COMBINATIONS_U1                     |      1 |     5      |     0   (0)|                                      
    |  30 |         VIEW PUSHED PREDICATE               |                                                                |      1 |    15      |     1   (0)|                                      
    |* 31 |          FILTER                             |                                                                                 |        |       |            |                                      
    |  32 |           NESTED LOOPS OUTER                  |                                                                 |      1 |    54      |     1   (0)|                                      
    |  33 |            TABLE ACCESS BY INDEX ROWID      | PO_ASL_ATTRIBUTES                          |      1 |    39      |     1   (0)|                                      
    |* 34 |             INDEX SKIP SCAN                              | PO_ASL_ATTRIBUTES_N1                    |      1 |               |     1   (0)|                                      
    |  35 |            TABLE ACCESS BY INDEX ROWID    | PO_APPROVED_SUPPLIER_LIST           |     1      |    15     |     0   (0)|                                       
    |* 36 |             INDEX UNIQUE SCAN                      | PO_APPROVED_SUPPLIER_LIST_U1        |     1      |              |     0   (0)|                                       
    |  37 |        TABLE ACCESS BY INDEX ROWID        | AP_SUPPLIERS                                       |      1      |    34       |     0   (0)|                                      
    |* 38 |         INDEX UNIQUE SCAN                         | AP_SUPPLIERS_U1                                    |      1      |              |     0   (0)|                                      
    |  39 |      SORT GROUP BY NOSORT                   |                                                               |      1 |   320           |  6341   (1)|                                      
    |  40 |       NESTED LOOPS                          |                                                                       |        |                      |            |                                      
    |  41 |        NESTED LOOPS                         |                                                                        |      1 |   320           |  6340   (1)|                                      
    |  42 |         NESTED LOOPS                        |                                                                       |      1 |        299      |  6337   (1)|                                     
    |  43 |          NESTED LOOPS OUTER                 |                                                                  |      1 |   216           |  6336   (1)|                                      
    |* 44 |           HASH JOIN                         |                                                                              |      1 |   209      |  6335   (1)|                                      
    |* 45 |            TABLE ACCESS FULL                | HZ_CUST_ACCT_SITES_ALL                        | 20020  |   254K      |   345   (3)|                                      
    |* 46 |            HASH JOIN                        |                                                                           |  5819      |  1113K     |  5989   (1)|                                      
    |* 47 |             HASH JOIN                       |                                                                            |  5875      |   430K     |      5439   (1)|                                      
    |* 48 |              HASH JOIN                      |                                                                            |  5931      |   359K     |  4641   (1)|                                      
    |  49 |               NESTED LOOPS                  |                                                                       |     38      |   646      |     6   (0)|                                     
    |* 50 |                TABLE ACCESS FULL            | RA_CUST_TRX_TYPES_ALL                        |          38 |   456      |     6   (0)|                                     
    |* 51 |                INDEX UNIQUE SCAN            | GL_CODE_COMBINATIONS_U1                       |      1      |     5      |     0   (0)|                                     
    |* 52 |       TABLE ACCESS BY INDEX ROWID   | RA_CUSTOMER_TRX_ALL                              |  6556 |   288K |  4635   (1)|                                     
    |* 53 |                INDEX RANGE SCAN             | RA_CUSTOMER_TRX_N5                               | 26223    |        |    97   (2)|                                     
    |* 54 |              TABLE ACCESS FULL              | HZ_CUST_SITE_USES_ALL                         | 40227 |   510K |   797   (3)|                                     
    |  55 |             TABLE ACCESS FULL               | HZ_CUST_ACCOUNTS                                 | 40020 |  4728K |   549   (3)|                                     
    |* 56 |           INDEX RANGE SCAN                  | JTF_RS_SALESREPS_U1                             |      1      |     7      |     1   (0)|                                     
    |* 57 |          INDEX UNIQUE SCAN                  | HZ_PARTIES_U1                                             |       1      |       |     0   (0)|                                     
    |* 58 |         INDEX RANGE SCAN                    | RA_CUSTOMER_TRX_LINES_N2                     |      4      |         |     2   (0)|                                     
    |* 59 |        TABLE ACCESS BY INDEX ROWID          | RA_CUSTOMER_TRX_LINES_ALL           |     1       |    21     |     3   (0)|                                    
    Predicate Information (identified by operation id):
      14 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID" AND
                  "HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID")
      15 - access("HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
      16 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
      17 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."                                                                            LEGAL_ENTITY_ID"=23274)
      18 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss') AND
                  "CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss'))
      19 - filter("HCSUA"."ORG_ID"=82)
      20 - filter("HCCA"."ORG_ID"=82)
      22 - access("PARTY_ID"="PARTY_ID")
      23 - filter("CTL"."INVENTORY_ITEM_ID" IS NOT NULL AND "CTL"."LINE_TYPE"='LINE'                                                                             
      24 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
      25 - access("CTL"."INVENTORY_ITEM_ID"="INV"."INVENTORY_ITEM_ID" AND "INV"."ORG                                                                             
    ANIZATION_ID"=84)
      26 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
      27 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP                                                                             
    E"='INV'))
      28 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
      29 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
      31 - filter("PASL"."DISABLE_FLAG" IS NULL)
      34 - access("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
           filter("PAA"."ITEM_ID"="CTL"."INVENTORY_ITEM_ID")
      36 - access("PAA"."ASL_ID"="PASL"."ASL_ID"(+))
      38 - access("PAA2"."VENDOR_ID"="APS"."VENDOR_ID"(+))
      44 - access("HCCA"."CUST_ACCOUNT_ID"="CUST_ACCOUNT_ID" AND
                  "HCSUA"."CUST_ACCT_SITE_ID"="HCCA"."CUST_ACCT_SITE_ID")
      45 - filter("HCCA"."ORG_ID"=82)
      46 - access("CUST"."CUST_ACCOUNT_ID"="CTA"."BILL_TO_CUSTOMER_ID")
      47 - access("HCSUA"."SITE_USE_ID"="CTA"."BILL_TO_SITE_USE_ID")
      48 - access("CTA"."CUST_TRX_TYPE_ID"="CTT"."CUST_TRX_TYPE_ID")
      50 - filter("CTT"."GL_ID_REC" IS NOT NULL AND ("CTT"."TYPE"='CM' OR "CTT"."TYP                                                                             
    E"='INV'))
      51 - access("CTT"."GL_ID_REC"="GLC"."CODE_COMBINATION_ID")
      52 - filter("CTA"."COMPLETE_FLAG"='Y' AND "CTA"."STATUS_TRX"<>'VD' AND "CTA"."                                                                             
    LEGAL_ENTITY_ID"=23274)
      53 - access("CTA"."TRX_DATE">=TO_DATE(' 2014-01-01 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss') AND
                  "CTA"."TRX_DATE"<=TO_DATE(' 2014-10-13 00:00:00', 'syyyy-mm-dd hh2                                                                             
    4:mi:ss'))
      54 - filter("HCSUA"."ORG_ID"=82)
      56 - access("CTA"."PRIMARY_SALESREP_ID"="VEND"."SALESREP_ID"(+))
      57 - access("PARTY_ID"="PARTY_ID")
      58 - access("CTL"."CUSTOMER_TRX_ID"="CTA"."CUSTOMER_TRX_ID")
      59 - filter("CTL"."INVENTORY_ITEM_ID" IS NULL AND "CTL"."LINE_TYPE"='LINE')
    Note
       - 'PLAN_TABLE' is old version
    Statistics
             15  recursive calls
              0  db block gets
       62543652  consistent gets
         269141  physical reads
            172  redo size
          12832  bytes sent via SQL*Net to client
            674  bytes received via SQL*Net from client
             16  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
            212  rows processed

  • Outlook 2010 painfully slow when sharing calendars

    Hello - we are using Exchange Server 2003 with Outlook 2010 and one of the main admin assistants here shares MANY calendars.  When she tries to open other calendars that she has been granted full rights to, the calendar will sit there on her screen
    and say "Busy" for up to five minutes before it provides her with the details of each calendar entry.  This is not an "every time" occurrence.  But it does happen most times.  And almost always there will be some type of significant delay.
    Are there any settings on the Exchange server or within Outlook that could affect this?  My concern is that she may be opening up too many simultaneous calendars or a bunch of calendars that total too many simultaneous entries.
    Any thoughts?  HELP!!!!!!

     Hi,
    Create a new profile to try if this issue fixed. No need to delete the old profile just yet, just make a new one to see if the problem is fixed.
    If this fixes the problem, you can delete the old profile.
    Sincerely

  • Mac mini running generals painfully slow compared to ibook...

    hi, i have a new mac mini 1.5 solo core with 1gb of ram. Also running it with a 19"monitor. The game seems to run painfully slow when compared to my old ibook with a 1.33ghz processor and 1gb of ram.
    thanks

    Hi
    Unfortunately your report is correct, depending on the game used, which name you don't give : if it's not Universal Binary , the mac runs it through Rosetta (powerpc emulator) resulting in -comparatively- poor performance...That, plus the fact that the ibook doesn't have to cope with shared memory for its graphic card...So in this situation, the theoretical advantage of the new mini on your previous configuration vanishes !

  • Will More Ram stop the GB 08 painful slow down

    Will More Ram stop GB 08 from running painful slow ?
    I had 3GB of ram and GB on some songs GB would become painfully slow when it came to deleting notes, perhaps 30 seconds to execute the command.
    The same with start and stop and many other functions like solo ect, I added two more GB of ram and it did not change this lack of processing problem.
    In GB perfs I have Automatic set for all three catagories in the Advanced section
    Any ideas?

    It's true that more ram will make garageband run better, but I'm afraid that's not true in your case. I have a 2 year old macbook that had the ram upgraded 1 to 2Gigs and GB did run faster under heavy loads but I would say your processor and OS are maybe a little outdated if you're running GB 08. Then again maybe its something else but you have more than enough ram in my opinion.

  • YouTube extremely slow when accessed using WiFi

    I find that, in the last day or so, accessing YouTube has become painfully slow when using WiFi. It was working fine earlier in the week.
    EDGE connections have faster downloads but the quality is really poor.
    Anyone with similar problems? Any explanations as to what might be causing this?
    Thanks,
    Anil

    Bump to this, I am also experience the same issues as well with Youtube being slow on WiFi compared to the horrific version on EDGE. I would think this to be a Router issue, but I have yet to test it out by shutting down all other applications that access the router as well as other computers that use the router.

  • Internet explorer browsing VERY SLOW when itunes is importing CD - why??!!

    The title of this thread sums up my question!
    Any ideas?!
    My internet browsing (via dial up modem) becomes painfully slow when i hit the import button. As soon as the CD has been imported, my internet instantly speeds back up again.

    importing uses a fair amount of CPU to complete as does burning, you can experience some painful lags when either of these are in process.

  • Acrobat 8 painfully slow on Vista

    I've installed Acrobat 8 as part of CS3 Master Collection. The product is painfully slow, regularly taking 3-4 minutes or more to open/view a small file, eating virtually 100% of CPU.
    Any suggestions? I see some discussion in the Mac forum about this, but no recent discussions here.
    I'm using;
    * Windows Vista 32-bit
    * Intel Core Duo 2.13Ghz
    * 2 gigs Ram
    Thanks in advance for any suggestions.
    Regards,
    Derek Gould
    Newfoundland, Canada

    Opening Acrobat (without a document) is slow. Let me clarify; the application opens reasonably quickly, shows me the menu and a blank work area. Then, I see the hourglass and the application is unresponsive for several minutes. I can switch to other applications and they are responsive, it's just the Adobe window that is crawling. The hourglass disappears after 2-3 minutes, and then the application runs and responds normally.
    If I open a PDF file, either locally or through a browser, the same thing happens.

  • Cube Processing approach when Process only the Current Partition?

    Could you validate my SSAS Processing strategy for the given scenarios:<o:p></o:p>
    Background about cube and data:<o:p></o:p>
    A Sales cube has Partitions for each year for "Sales" Measure Group and it associated with dimensions "Product" and "Sales
    Rep". Both are type 1 Dimensions.<o:p></o:p>
    Here some time user will re-classify the products, product Hierarchy(Product -> Sub Category - > Category);  <o:p></o:p>
    Similarly re-classify Sales Rep (Sales Rep –> District Manager -> Regional Manager)<o:p></o:p>
    Processing strategy:<o:p></o:p>
    1. Process(full process) only the current Partition every day.<o:p></o:p>
    2. Perform "Process update” for all the dimensions. (going for process update, as Dimension full process is processing all the old partitions
    of measure groups)<o:p></o:p>
    Questions:<o:p></o:p>
    1.   
    What are disadvantages when processing only the current partition? <o:p></o:p>
    2.   
    Does the old partitions data will roll up as per the hierarchy changes, when I go for Dimension “process update” options.<o:p></o:p>
     Thanks,
    Liyasker Samraj K

    1.   
    What are disadvantages when processing only the current partition? <o:p></o:p>
    2.   
    Does the old partitions data will roll up as per the hierarchy changes, when I go for Dimension “process update” options.<o:p></o:p>
    The strategy looks good. Partitioning is the way to go to reduce processing time. However, keep in mind that partitions are only supported in the enterprise version.
    1. Other than not being able to refresh older data from other partitions, i don't see a downside in processing the most recent partitions. 
    2. Yes. A process update should touch all the dependent partitions.
    SS

  • Hi from the last two days my iphone have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    Hi,  from the last two days my iphone( iphone 4 with ios 5) have very slow to open the apps and very slow when i check the notification window , it taking too much time to open when i tap to down . help me to resolve the issue.

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore...
    iPhone Reset
    http://support.apple.com/kb/ht1430
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    If that does not help... See Here:
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • Migrate SQL 2008 Analysis database to 2012 AS database along with data level security defined in current production cube

    I want to migrate Analysis Services 2008 database to 2012 AS database along with data level security defined in current production cube
    Note: Only Production environment have security, while no security is defined in development environment
    Potential Approach:
    1 - Using Synchronization Wizard: Gives me error : "The OLAP element at line1 can not appear under envelope......" and this is because Synchrinzation works only for same version
    and in my case, there are different versions of SQL (SQL 2008 and 2012)
    2 - Using Visual studio conversion wizard - Convert SQL 2008 AS project to 2012 and then process cube, so I can get the cube working but then how can I get data level security since 100's of data level security is defined in production Cube, so how can I
    migrate that across
    3 - Script out XMLA and deploy cube - But then again having issues with how can i script SSAS security
    4 - Would taking backup of SSAS 2008 database and restore to SSAS 2012 will help ?
    Any suggestions would be appreciated
    Thanks,
    Mihir

    Hi Mihir,
    According to your description, you want to migrate the SQL Server Analysis Services (SSAS) 2008 database which have some security setting with it to SSAS 2012, right? We can migrate existing Analysis Services databases either during Setup, by upgrading an
    existing instance of Analysis Services, or after Setup, by running the Migration Wizard. Generally, when migrating a database to another server, all the setting will be migrated. So in your scenario, you can refer to the steps on the links below to migrate
    your SSAS database.
    How to: Migrate Analysis Services Databases
    Migrating Existing Analysis Services Databases
    Regards,
    Charlie Liao
    TechNet Community Support

  • Error when updating the data from DSO to cube

    Hi,
    I am getting the error when uploading the data from the ods to cube.
    The following is the error message.
    Unable to determine period for date 20090101, fiscal year variant Z2: Error #
    How can i solve this issue.
    Regards
    Annie

    Hi ,
    fiscal year variant, go into Customizing for Financial Accounting (FI) under Financial Accounting Global Settings >>>Fiscal Year >>>Maintain Fiscal Year Variant.
    check this link ..
    http://help.sap.com/saphelp_scm41/helpdata/en/50/0d89f2ad919c40b95b9ae7583c8c96/frameset.htm
    http://help.sap.com/saphelp_scm41/helpdata/en/50/0d89f2ad919c40b95b9ae7583c8c96/content.htm
    Regards,
    shikha

Maybe you are looking for

  • Downgraded to itunes 6.0.5 and still having problems. HELP

    I just downgraded from 7 to 6.0.5 and for whatever reason itunes still slows down the whole works when ripping, rips at really slow (3-4x) speeds, and plays all garbled when trying to do more than one thing at a time (i.e. use any other program in co

  • Ipod mini wont turn on or respond

    updated to the latest itunes, transferred some songs to ipod mini, properly disconnected an ipod through itunes, unplugged. about 15 minutes later wanted to listen to ipod but it would not turn on. the screen remained blank, tried plugging ipod back

  • Dereferenc​ing a pointer from a Windows API call within labview

    I was looking into using the CreateFile windows API funciton within a labview project I'm working on.  I found some C code to do essentially what I want to do with this fuction (c code and details are within the attached VI).  Unfortanatly its return

  • Export Issue - Aperture 3

    Yesterday I finally upgraded to Snow Leopard (I know, it takes me a while to do such things). Once that was complete I upgraded from Aperture 2 to 3. Everything finished processing about 2 hours ago (no more spinning "gear"). I'm attempting to export

  • Apple ID associated with iCloud is no longer accessible want to change my Apple Id

    Hi, I have forgot the apple id's email password which was associated with my iCloud account, Can you please let me know how can i retain this iCloud account to my other apple id. Thanks in advance....