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.

<strong>DB2</strong> Plan Table<br />

Figure 8-42 <strong>DB2</strong> plan table<br />

As a <strong>DB2</strong> per<strong>for</strong>mance expert you would like to see all of the in<strong>for</strong>mation from the<br />

<strong>DB2</strong> plan table <strong>for</strong> the corresponding query. For this you have to click the button<br />

View plan table (Figure 8-37 on page 181). Figure 8-42 shows an example of<br />

the rows in the <strong>DB2</strong> plan table <strong>for</strong> a given query. In this example, the optimizer<br />

does a star join (JOIN_TYPE = S) and creates a sparse index <strong>for</strong> the<br />

materialized dimension branch (ACCESSTYPE = T).<br />

QBLOCKNO|APPLNAME|PLANNO|METHOD| TNAME |TABNO|ACCESSTYPE|MATCHCOLS|ACCESSNAME |INDEXONLY<br />

----------------------------------------------------------------------------------------------------------<br />

1 | | 1 | 0 | /<strong>BI</strong>C/DJOCUBET | 8 | I | 0 |/<strong>BI</strong>C/DJOCUBET~0 |N<br />

1 | | 2 | 1 | DSN_DIM_TBLX(03) | 13 | T | 0 | |N<br />

1 | | 3 | 1 | /<strong>BI</strong>C/DJOCUBE2 | 10 | T | 0 | |N<br />

sparse<br />

1 | | 4 | 1 | /<strong>BI</strong>C/EJOCUBE | 1 | I | 3 |/<strong>BI</strong>C/EJOCUBE~0 |N<br />

1 | | 5 | 2 | DSN_DIM_TBLX(02) | 12 | R index<br />

| 0 | |N<br />

1 | | 6 | 1 | /<strong>BI</strong>C/DJOCUBEU | 5 | I | 1 |/<strong>BI</strong>C/DJOCUBEU~0 |N<br />

1 | | 7 | 1 | /<strong>BI</strong>C/DJOCUBEP | 9 | I | 1 |/<strong>BI</strong>C/DJOCUBEP~0 |N<br />

1 | | 8 | 3 | | 0 | | 0 | |N<br />

2 | | 1 | 0 | /<strong>BI</strong>0/0200000003 | 11 | R | 0 | |N<br />

2 | | 2 | 1 | /<strong>BI</strong>0/XCUSTOMER | 3 | R | 0 | |N<br />

2 | | 3 | 1 | /<strong>BI</strong>C/DJOCUBE3 | 2 | I | 1 |/<strong>BI</strong>C/DJOCUBE3~010 |N<br />

2 | | 4 | 1 | /<strong>BI</strong>0/SACCNT_GRP | 4 | I | 1 |/<strong>BI</strong>0/SACCNT_GRP~00|N<br />

3 | | 1 | 0 | /<strong>BI</strong>0/XMATERIAL | 7 | I | 1 |/<strong>BI</strong>0/XMATERIAL~0 |N<br />

3 | | 2 | 1 | /<strong>BI</strong>C/DJOCUBE1 | 6 | I | 1 |/<strong>BI</strong>C/DJOCUBE1~010 |N<br />

----------------------------------------------------------------------------------------------------------<br />

TNAME |SRTN_JOIN|SRTC_JOIN|SRTC_GRPBY|PREFETCH|ACCESS_DEG|PARA_MODE|CORR_NAME|PAGE_RNG|JOIN_TYPE<br />

------------------------------------------------------------------------------------------------------------<br />

/<strong>BI</strong>C/DJOCUBET |N |N |N | | 0 | |DT | |S<br />

DSN_DIM_TBLX(03) |Y |N |N | | 0 | | | |S<br />

/<strong>BI</strong>C/DJOCUBE2 |Y |N |N | | 0 | |D2 | |S<br />

/<strong>BI</strong>C/EJOCUBE |N |N |N | | 0 | |F |Y |S<br />

DSN_DIM_TBLX(02) |Y |Y |N |S | 0 | | | |<br />

/<strong>BI</strong>C/DJOCUBEU |N |N |N | | 0 | |DU | |<br />

/<strong>BI</strong>C/DJOCUBEP |N |N |N | | 0 | |DP | |<br />

|N |N |Y | | 0 | | | |<br />

/<strong>BI</strong>0/0200000003 |N |N |N |S | 0 | |H1 | |<br />

/<strong>BI</strong>0/XCUSTOMER |N |N |N |S | 0 | |X1 | |<br />

/<strong>BI</strong>C/DJOCUBE3 |N |Y |N | | 10 |C |D3 | |<br />

/<strong>BI</strong>0/SACCNT_GRP |N |N |N | | 10 |C |S1 | |<br />

/<strong>BI</strong>0/XMATERIAL |N |N |N | | 0 | |X3 | |<br />

/<strong>BI</strong>C/DJOCUBE1 |N |N |N | | 0 | |D1 | |<br />

------------------------------------------------------------------------------------------------------------<br />

8.5.2 <strong>SAP</strong> Query Visualizer<br />

In this section we discuss the <strong>SAP</strong> Query Visualizer<br />

How you I call the <strong>SAP</strong> Query Visualizer<br />

Execute the <strong>BI</strong> query with transaction RSRT and click the option, as shown in<br />

Figure 8-35 on page 179. Then, when the program stops by showing one of the<br />

generated SQL queries, click the button <strong>for</strong> the <strong>SAP</strong> Query Visualizer, as shown<br />

in Figure 8-43 on page 187.<br />

186 <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 />

star<br />

join

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

Saved successfully!

Ooh no, something went wrong!