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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4.4 Extended sparse index and in-memory workfile . . . . . . . . . . . . . . . . . . . . 49<br />

4.5 TRUNCATE TABLE statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50<br />

4.6 FETCH FIRST n ROWS ONLY in subselects . . . . . . . . . . . . . . . . . . . . . . 51<br />

4.7 RENAME INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53<br />

4.8 RANK expression . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53<br />

4.9 Further <strong>DB2</strong> 9 enhancements and new features. . . . . . . . . . . . . . . . . . . . 53<br />

Chapter 5. <strong>Best</strong> practices <strong>for</strong> PSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55<br />

5.1 Load PSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56<br />

5.1.1 Load PSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58<br />

5.1.2 Management of PSA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68<br />

5.1.3 Load PSA <strong>DB2</strong> compression. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69<br />

5.1.4 PSA partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70<br />

Chapter 6. <strong>Best</strong> practices <strong>for</strong> InfoCubes . . . . . . . . . . . . . . . . . . . . . . . . . . . 73<br />

6.1 Types of InfoCubes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76<br />

6.1.1 Physical data stores (data targets) . . . . . . . . . . . . . . . . . . . . . . . . . . 76<br />

6.1.2 VirtualProviders. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76<br />

6.2 Repartitioning of InfoCubes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78<br />

6.2.1 Repartitioning implementation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80<br />

6.2.2 Advantages of partitioning/repartitioning. . . . . . . . . . . . . . . . . . . . . . 88<br />

6.3 Remodeling InfoProviders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89<br />

6.3.1 Procedure <strong>for</strong> remodeling an InfoProvider . . . . . . . . . . . . . . . . . . . . 91<br />

6.3.2 Benefits of remodeling InfoProviders . . . . . . . . . . . . . . . . . . . . . . . . 96<br />

6.4 <strong>SAP</strong> compression <strong>for</strong> loads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96<br />

6.4.1 Advantages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96<br />

6.4.2 Data validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97<br />

6.4.3 Cumulative data versus non-cumulative key figures. . . . . . . . . . . . . 98<br />

6.4.4 Areas of impact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98<br />

6.4.5 Implementing <strong>SAP</strong> compression . . . . . . . . . . . . . . . . . . . . . . . . . . . 100<br />

6.4.6 Speed up compression of non-cumulative cubes . . . . . . . . . . . . . . 100<br />

6.4.7 <strong>Best</strong> practices <strong>for</strong> compressing large requests . . . . . . . . . . . . . . . . 100<br />

Chapter 7. <strong>Best</strong> practices <strong>for</strong> DataStore . . . . . . . . . . . . . . . . . . . . . . . . . . 103<br />

7.1 Differences between DataStore and ODS. . . . . . . . . . . . . . . . . . . . . . . . 104<br />

7.2 Types of DataStore . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br />

7.2.1 Standard DataStore object . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104<br />

7.2.2 DataStore object <strong>for</strong> direct update . . . . . . . . . . . . . . . . . . . . . . . . . 105<br />

7.2.3 Write-optimized DataStore object . . . . . . . . . . . . . . . . . . . . . . . . . . 105<br />

7.3 Secondary indexes on DataStore objects . . . . . . . . . . . . . . . . . . . . . . . . 105<br />

7.3.1 Creating a secondary index on a DataStore object (DSO) . . . . . . . 107<br />

7.4 Partitioning and clustering . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108<br />

7.4.1 Choosing the partitioning key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110<br />

7.4.2 Choosing and changing the clustering index . . . . . . . . . . . . . . . . . 112<br />

iv <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>

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

Saved successfully!

Ooh no, something went wrong!