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.

added. If you do not manage PSA properly, you may have too many partitions<br />

and wasted storage space <strong>for</strong> a new load. A best practice is to reclaim usage of<br />

space occupied by obsolete data in the PSA. Reuse of the same number of<br />

partitions is greatly facilitated by <strong>DB2</strong> partition rotation. Partition rotation is the<br />

process whereby the number of partitions is kept the same, but the oldest<br />

partition now becomes the newest. Essentially, this occurs when the old data is<br />

archived or deleted and the space is now required <strong>for</strong> reuse.<br />

Note that <strong>SAP</strong> BW has a PSA tablespace created with default option<br />

COMPRESS YES, which results in <strong>DB2</strong> data compression. Data loaded into the<br />

PSA is often repeated character strings, so storage size usage benefits from<br />

compression. In addition to the storage space usage benefit, per<strong>for</strong>mance<br />

benefits from data transfer with less I/O activities, improving utilization of the<br />

buffer pool, which improves overall per<strong>for</strong>mance.<br />

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

Because character strings are often repeated in the PSA table, <strong>DB2</strong><br />

compression usually improves the load per<strong>for</strong>mance. The repeated strings allow<br />

a high degree of compression <strong>for</strong> the data in the PSA table. In <strong>SAP</strong> <strong>BI</strong>, the<br />

tablespaces <strong>for</strong> PSA tables are created with the COMPRESS YES option and<br />

the <strong>DB2</strong> data compression is activated. Compression leads to less I/O and<br />

improved utilization of the bufferpool which, in turn, enhances overall<br />

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

Compression can be turned off by setting <strong>DB2</strong>_PSA_COMPRESS = NO in the<br />

table RSADMIN, but this should be done on an exception basis.<br />

Chapter 5. <strong>Best</strong> practices <strong>for</strong> PSA 69

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

Saved successfully!

Ooh no, something went wrong!