<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error in large OLAP cube generation in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42013#M353</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to OLAP and have been trying create a large OLAP cube from SAS ABM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact table has about 150 million rows. 16 dimensions, each having on average 3-level hierarchies and not more than 4 levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OLAP server runs on a machine with the following specs:&lt;/P&gt;&lt;P&gt;- 8 core&lt;/P&gt;&lt;P&gt;- 32 gb of memory&lt;/P&gt;&lt;P&gt;- 500 GB dedicated disk for tempdb&lt;/P&gt;&lt;P&gt;- underlying RDBMS is MSSQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I face 2 problems in generating the cube with the following settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Aggregation with index&lt;/P&gt;&lt;P&gt;- the 500gb-tempdb gets maximised causing a cube generation to stop with tempdb full error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) No aggregation index (NOINDEX option applied to PROC OLAP)&lt;/P&gt;&lt;P&gt;- the tempdb does not max out and grows up to approximately 200 gb&lt;/P&gt;&lt;P&gt;- however,the OLAP cube generation runs for more than 8 hours before ending with a "...Class selection..." error&lt;/P&gt;&lt;P&gt;- SQL is telling me that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - there are 100 parallel threads each doing the same select statement of the entire fact table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - each statement is suspended with CXPACKET wait types&lt;/P&gt;&lt;P&gt;- Window Perfmon is telling me that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - tempdb disk queue length of about 0.8 to 1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - disk write is on average is 8mb/s and disk writes on average is 32mb/s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Page life expetancy of about 220 (An MS SQL 2005 recommends &amp;gt; 300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe all the above are happening due to the size of our fact table. Reducing dimensions is not an option due to business requirements. I was thinking of splitting the fact table into smaller tranches where each selection query can fit into memory and avoid going into disk i/o. Appreciate insights/ advice on the above problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Nov 2011 08:13:12 GMT</pubDate>
    <dc:creator>cbasah</dc:creator>
    <dc:date>2011-11-05T08:13:12Z</dc:date>
    <item>
      <title>Error in large OLAP cube generation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42013#M353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to OLAP and have been trying create a large OLAP cube from SAS ABM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fact table has about 150 million rows. 16 dimensions, each having on average 3-level hierarchies and not more than 4 levels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The OLAP server runs on a machine with the following specs:&lt;/P&gt;&lt;P&gt;- 8 core&lt;/P&gt;&lt;P&gt;- 32 gb of memory&lt;/P&gt;&lt;P&gt;- 500 GB dedicated disk for tempdb&lt;/P&gt;&lt;P&gt;- underlying RDBMS is MSSQL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I face 2 problems in generating the cube with the following settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Aggregation with index&lt;/P&gt;&lt;P&gt;- the 500gb-tempdb gets maximised causing a cube generation to stop with tempdb full error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) No aggregation index (NOINDEX option applied to PROC OLAP)&lt;/P&gt;&lt;P&gt;- the tempdb does not max out and grows up to approximately 200 gb&lt;/P&gt;&lt;P&gt;- however,the OLAP cube generation runs for more than 8 hours before ending with a "...Class selection..." error&lt;/P&gt;&lt;P&gt;- SQL is telling me that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - there are 100 parallel threads each doing the same select statement of the entire fact table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - each statement is suspended with CXPACKET wait types&lt;/P&gt;&lt;P&gt;- Window Perfmon is telling me that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - tempdb disk queue length of about 0.8 to 1.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - disk write is on average is 8mb/s and disk writes on average is 32mb/s&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Page life expetancy of about 220 (An MS SQL 2005 recommends &amp;gt; 300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe all the above are happening due to the size of our fact table. Reducing dimensions is not an option due to business requirements. I was thinking of splitting the fact table into smaller tranches where each selection query can fit into memory and avoid going into disk i/o. Appreciate insights/ advice on the above problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Nov 2011 08:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42013#M353</guid>
      <dc:creator>cbasah</dc:creator>
      <dc:date>2011-11-05T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Error in large OLAP cube generation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42014#M354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first question that comes into mind is, do you really need all 150'' rows in the cube?&lt;/P&gt;&lt;P&gt;Maybe, some detail level could be accessible via drill-through?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the fact table aggregated to the lowest level of the dimensions? If not, try to summarize it before the PROC OLAP.&lt;/P&gt;&lt;P&gt;If yes, are you using COMPACT_NWAY? Try without it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you hav more dimensions than cores, you might want to try setting ASYNCINDEXLIMIT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For testing purposes, try load let's say a 10th of the fact table, and try differnet option settings to see how they influence your cube build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you on 64-bit Windows? And during the job, are you getting all available RAM for you SAS process?&lt;/P&gt;&lt;P&gt;I'm not very familiar with Perfmon statistics. But if you find some of these alarming, maybe you should make a call/send message to SAS tech support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Linus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Nov 2011 20:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42014#M354</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2011-11-06T20:44:58Z</dc:date>
    </item>
    <item>
      <title>Error in large OLAP cube generation</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42015#M355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to create the cube using the NONUPDATEABLE flag which means my dimensions are non-updateable. The cube is created monthly though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jan 2012 02:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Error-in-large-OLAP-cube-generation/m-p/42015#M355</guid>
      <dc:creator>cbasah</dc:creator>
      <dc:date>2012-01-06T02:44:12Z</dc:date>
    </item>
  </channel>
</rss>

