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.

| sql:<br />

| DELETE FROM DDSTORAGE<br />

| WHERE DBSYSABBR = '<strong>DB2</strong>'<br />

| AND TABNAME = '/<strong>BI</strong>C/ADSOTEST00'<br />

| AND INDEXNAME = ''<br />

| DDL time(___7): .........3 milliseconds<br />

| sql:<br />

| CREATE TYPE 2 INDEX "/<strong>BI</strong>C/ADSOTEST00~01" ON "/<strong>BI</strong>C/ADSOTEST00"<br />

| ("/<strong>BI</strong>C/CALDAY" )<br />

| USING STOGROUP <strong>BI</strong>9ODI PRIQTY 16<br />

| SECQTY 40960 FREEPAGE 0 PCTFREE 10<br />

| GBPCACHE CHANGED<br />

| BUFFERPOOL BP3 COPY NO<br />

| PIECESIZE 2097152 K<br />

| DDL time(___8): .......263 milliseconds<br />

| sql:<br />

| COMMIT WORK<br />

| DDL time(___9): .........3 milliseconds<br />

| sql:<br />

| DELETE FROM DDSTORAGE<br />

| WHERE DBSYSABBR = '<strong>DB2</strong>'<br />

| AND TABNAME = '/<strong>BI</strong>C/ADSOTEST00'<br />

| AND INDEXNAME = '010'<br />

| DDL time(__10): .........1 milliseconds<br />

| Request <strong>for</strong> /<strong>BI</strong>C/ADSOTEST00 executed successfully<br />

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

Example of <strong>SAP</strong> object log <strong>for</strong> index-controlled partitioning<br />

When converting a table from non-partitioned to partitioned, if you choose an<br />

index instead of table-controlled, then <strong>SAP</strong> creates DDL <strong>for</strong> index-controlled<br />

partitioning instead of table-controlled partitioning. See Example 7-5.<br />

Example 7-5 <strong>SAP</strong> Object log from the partitioning of a table <strong>using</strong> an index<br />

DB-TABL-<strong>BI</strong>D-ADSOTEST00<br />

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

| Request: Delete and recreate Table /<strong>BI</strong>C/ADSOTEST00 (CARD<strong>OS</strong>O/04.04.07/15:57)<br />

| Process: sap02_2<br />

| Enhancement category <strong>for</strong> table missing<br />

| Test activation of Table /<strong>BI</strong>C/ADSOTEST00 successful<br />

| Activation and DDL statements <strong>for</strong> Table /<strong>BI</strong>C/ADSOTEST00 required<br />

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

| Activate table /<strong>BI</strong>C/ADSOTEST00 (CARD<strong>OS</strong>O/04.04.07/15:57)<br />

| Enhancement category <strong>for</strong> table missing<br />

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

| Activate dependent table type /<strong>BI</strong>C/WADSOTEST00<br />

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