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.

4.2.1 Processing RUNSTATS <strong>for</strong> <strong>BI</strong> tables<br />

Up from BW 3.0 Support Package 30, 3.1C Support Package 24, 3.5 Support<br />

Package 16, and <strong>BI</strong> 7.0 Support Package 6, <strong>SAP</strong> has optimized the ABAP<br />

coding <strong>for</strong> processing RUNSTATS on <strong>BI</strong> tables. The first newly introduced main<br />

feature is RUNSTATS on partition level. Call RUNSTATS only if necessary. And<br />

up from BW 3.5 Support Package 20 and <strong>BI</strong> 7.0 Support Package 11, <strong>SAP</strong><br />

supports the new <strong>DB2</strong> 9 feature, histogram statistics.<br />

On <strong>SAP</strong> <strong>BI</strong> systems on <strong>DB2</strong> <strong>for</strong> z/<strong>OS</strong> all database statistics <strong>for</strong> <strong>BI</strong> tables are<br />

refreshed by the function module RSDU_ANALYZE_TABLE_<strong>DB2</strong>. Figure 4-4<br />

explains the most relevant parameter switches.<br />

New parameters <strong>for</strong> function RSDU_ANALYZE_TABLE_<strong>DB2</strong><br />

(note 915398) allow easy call of RUNSTATS within SE37<br />

I_SIMULATE = X<br />

I_FORCE_RUNSTATS = X<br />

I_PARTITION = 3<br />

I_SHOW_RUNSTATS_PROTOCOL = X<br />

Figure 4-4 Parameters <strong>for</strong> RSDU_ANALYZE_TABLE_<strong>DB2</strong><br />

40 <strong>Best</strong> <strong>Practices</strong> <strong>for</strong> <strong>SAP</strong> <strong>BI</strong> <strong>using</strong> <strong>DB2</strong> 9 <strong>for</strong> z/<strong>OS</strong><br />

Simulation mode, shows only the generated<br />

RUNSTATS command, without execution. Is<br />

empty, if the statistics are sufficient<br />

Ignore the current statistics and recalculate<br />

them. If I_SIMULATE=X, show the<br />

generated RUNSTATS command<br />

Work only on partition 3 of the given table<br />

Shows the RUNSTATS command and the<br />

output in a easy readable <strong>for</strong>mat

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

Saved successfully!

Ooh no, something went wrong!