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.

Loading from a flat file<br />

You can avoid I/O per<strong>for</strong>mance by placing very large flat files on the application<br />

server, instead of remotely on a client machine over a slow network or from tape,<br />

or on the same disk that has heavy I/O activity. In addition, you can try to use<br />

fixed-length ASCII <strong>for</strong>mat instead of CVS, where it internally converts into fixed<br />

length <strong>for</strong>mat. If possible, split large flat files <strong>for</strong> parallel processing.<br />

Loading from an R/3 system<br />

If loading from an R/3 system, you can use SM50, SM51, and SM66 to look <strong>for</strong><br />

long-running processes to determine whether there is a resource problem on the<br />

source system. Also, you can use Extractor Checker (RSA3) to check <strong>for</strong> any<br />

extraction problem in the first place.<br />

There are specific <strong>SAP</strong> notes addressing application areas, and you may want to<br />

refer to them <strong>for</strong> guidance. You can temporarily turn on an ST05 trace to analyze<br />

SQL statements to identify expensive SQL statements.<br />

Determine whether indexes of datasource tables are okay, and not missing or<br />

needed. Having indexes on the source tables avoids full table scans.<br />

For ST05 trace capture, make sure that you filter only with user-running<br />

extraction and make sure no other parallel extraction is in progress. Next, check<br />

whether runstats are up-to-date <strong>for</strong> tables that are read from.<br />

If there are more application servers, you may want to spread the load to other<br />

servers in order to avoid bottlenecks from a single server’s CPU and memory<br />

resources. You can do this by configuring table ROIDOCPRMS.<br />

Also note that the data package size defined in this table impacts the frequency<br />

of database commits. In general, define smaller package size <strong>for</strong><br />

resource-constrained systems, and larger ones <strong>for</strong> larger systems (but make<br />

sure that they are not so large that they impact communication processes and<br />

result in a holdup of work processes on the source system). Refer to <strong>SAP</strong> note<br />

409641 <strong>for</strong> more details.<br />

A number of other factors can contribute to high extraction time (<strong>for</strong> example, the<br />

general per<strong>for</strong>mance of the R/3 system, a slow network between the R/3 system<br />

and the BW system, resource constraints like not enough CPU, or the memory<br />

resources of the R/3 system).<br />

If custom enhancement exits are used <strong>for</strong> extraction, the ABAP Runtime Analysis<br />

tool (SE30) can be used to help with debug per<strong>for</strong>mance of ABAP coding. It can<br />

help isolate whether the problem is in the area of ABAP, I/O, or SQL by looking at<br />

the time spent in each subroutine.<br />

154 <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!