07.02.2013 Views

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

Best Practices for SAP BI using DB2 9 for z/OS - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A cost-based optimizer relies on current and correct statistics to ensure<br />

optimal SQL access path selection. In an <strong>SAP</strong> <strong>BI</strong> environment, statistics do<br />

not require re-collection unless the object's data content has altered based<br />

upon a load, <strong>SAP</strong> compression, rollup, deletion, attribute change run, or data<br />

archive. There<strong>for</strong>e it is only these activities that require the updating of <strong>DB2</strong><br />

statistics, and mostly the RUNSTATS are triggered automatically by the <strong>SAP</strong><br />

<strong>BI</strong> functions itself.<br />

With a load, new packets are loaded into the F- fact table. Without knowledge<br />

of the newly loaded data, the optimizer may not choose an optimal access<br />

path <strong>for</strong> subsequent reporting queries, aggregate rollups, or <strong>SAP</strong><br />

compressions that specify a search criteria <strong>for</strong> the individual packet number.<br />

There<strong>for</strong>e it is important to ensure the RUNSTATS is triggered as part of the<br />

load process by selecting RSA1 → Manage InfoCube → Per<strong>for</strong>mance →<br />

Create Statistics (Btch).<br />

For process chains see <strong>SAP</strong> Note 778437.<br />

5. Keep current with <strong>SAP</strong> support packs and <strong>DB2</strong> maintenance level.<br />

Each new <strong>SAP</strong> support pack delivers fixes and also per<strong>for</strong>mance<br />

enhancements based upon prior customer requirements or identified areas<br />

<strong>for</strong> improvement by joint <strong>DB2</strong> and <strong>SAP</strong> development.<br />

As with the <strong>SAP</strong> software, each maintenance release of <strong>DB2</strong> provides<br />

additional fixes and enhancements based upon prior customer problems and<br />

requirements. To minimize exposure to known problems, we recommend that<br />

you stay current with the <strong>SAP</strong> certified maintenance level and apply additional<br />

PTFs identified in <strong>SAP</strong> note 81737.<br />

6. Utilize <strong>SAP</strong> compression (E- fact table).<br />

When F- fact table packets are consolidated into the E- fact table via a<br />

process known as InfoCube compression, queries on the E- fact table filter by<br />

meaningful dimension/master data characteristics rather than the arbitrary<br />

packet number. This can result in better exploitation of available indexes on<br />

the E- fact table since the F- fact table must carry an index led by packet<br />

number to improve compression and rollup per<strong>for</strong>mance, but not query<br />

per<strong>for</strong>mance.<br />

Given the volatility of the F- fact table, RUNSTATS is required more<br />

frequently than on the E- fact table. There<strong>for</strong>e keeping the F- fact table a<br />

moderate size by compressing packets to E can improve overall RUNSTATS<br />

per<strong>for</strong>mance and cost <strong>for</strong> the entire InfoCube.<br />

And finally the most important reason <strong>for</strong> <strong>SAP</strong> compression is <strong>for</strong><br />

non-cumulative key figures whereby an additional row is inserted or updated<br />

in the E- fact table holding <strong>for</strong> each combination of dimension IDs the most<br />

current key figure values. Rather than requiring to sum all delta values from<br />

Chapter 3. Top ten <strong>SAP</strong> <strong>BI</strong> recommendations 31

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!