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.

oad map to determine the cause of the slow retrieval of records and high<br />

database time.<br />

RSDU_ANALYZE_TOOL_<strong>DB2</strong><br />

Another tool to help you analyze the need <strong>for</strong> aggregates, or to determine<br />

whether further database analysis is needed, is the function module<br />

RSDU_ANALYZE_TOOL_<strong>DB2</strong>. You can execute this function module from<br />

transaction SE37.<br />

This tool provides you with in<strong>for</strong>mation about your query, such as the number of<br />

rows examined by <strong>DB2</strong>, selected rows (be<strong>for</strong>e the aggregation), and transported<br />

rows (after the aggregation). In addition, the per<strong>for</strong>mance indicators we<br />

discussed are also calculated:<br />

► Examined rows per selected row<br />

► Selected rows per transported rows<br />

► Selected rows per second<br />

Note that some values in the list are determined from the statistics of the <strong>DB2</strong><br />

Dynamic Statement Cache. These values are 0 if the corresponding SQL<br />

statement is no longer in the cache. For more in<strong>for</strong>mation about this tool, read<br />

<strong>OS</strong>S note 633832.<br />

The next steps<br />

Once you have determined that aggregates may help the per<strong>for</strong>mance of the<br />

query, you can discuss creating aggregates <strong>for</strong> the InfoCube with the BW<br />

functional consultant responsible <strong>for</strong> the design of the InfoCube.<br />

Keep in mind that, while aggregates help query per<strong>for</strong>mance, the updating of<br />

these aggregates with data adds time to your data load process, and requires<br />

extra system resources during the build process. However, as this is normally<br />

done during off-peak hours (usually overnight), then <strong>for</strong> most installations it does<br />

not create any problems.<br />

In this book we do not go into detail about the proposal and building of<br />

aggregates. However, we introduce the RSA1 tool, which can be used to do this.<br />

For a more detailed discussion of this subject, refer to the following <strong>IBM</strong><br />

whitepaper: <strong>SAP</strong> BW Query Per<strong>for</strong>mance with <strong>DB2</strong> on zSeries:<br />

http://www-1.ibm.com/support/docview.wss?uid=tss1wp100322<br />

Using RSA1 to propose and build aggregates<br />

The BW workbench tool RSA1 can be used to help propose and generate<br />

aggregates <strong>for</strong> an InfoCube. Use the following menu access path to reach this<br />

functionary: RSA1 → Modeling → InfoProvider, then right-click the InfoCube<br />

Chapter 8. Query and Load per<strong>for</strong>mance 163

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

Saved successfully!

Ooh no, something went wrong!