Professional Documents
Culture Documents
Prepare, install, and configure your SAP BW on OS/390 Administer your SAP BW databases Recommended sizing approaches
ibm.com/redbooks
SG24-5681-00
September 2000
Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix E, Special notices on page 119.
First Edition (September 2000) This edition applies to SAP Business Information Warehouse 1.2B (SAP R/3 4.5B). Data server uses DB2 UDB for OS/390 Version 6 (5665-DB2) with OS/390 V2R7. Application server uses AIX 4.3.3 (5765-603) as an operating system. This document created or updated on September 11, 2000. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. HYJ Mail Station P099 2455 South Road Poughkeepsie, NY 12601-5400 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you.
Copyright International Business Machines Corporation 2000. All rights reserved. Note to U.S Government Users Documentation related to restricted rights Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp.
Contents
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii Tables. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .ix Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xi The team that wrote this redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi Comments welcome . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Chapter 1. SAP Business Information Warehouse (BW) overview 1.1 Why use Business Information Warehousing . . . . . . . . . . . . . . . . 1.2 Why use BW on SAP R/3 on OS/390 . . . . . . . . . . . . . . . . . . . . . . 1.3 The architecture of SAP Business Information Warehouse . . . . . . 1.3.1 The components of the Business Information Warehouse. . . 1.3.2 How things are done with SAP BW . . . . . . . . . . . . . . . . . . . . 1.3.3 BW data structures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3.4 Database Management System (DBMS). . . . . . . . . . . . . . . . 1.3.5 Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3.6 The presentation layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.4 The terminology used in this redbook . . . . . . . . . . . . . . . . . . . . . . Chapter 2. Our system environment . . . . . . . . . 2.1 OS/390 for SAP BW and R/3 database server 2.1.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . 2.1.2 Software environment. . . . . . . . . . . . . . . 2.2 AIX for SAP BW and R/3 application server . . 2.2.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.3 System setup for SAP BW . . . . . . . . . . . 2.2.4 System setup for SAP R/3 . . . . . . . . . . . 2.3 Windows NT for Presentation Server . . . . . . . 2.3.1 Hardware . . . . . . . . . . . . . . . . . . . . . . . . 2.3.2 Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1 . .1 . .2 . .4 . .4 . .6 . .6 . .8 . .9 . .9 . 10 . 13 . 14 . 14 . 15 . 19 . 20 . 20 . 20 . 22 . 22 . 22 . 22 . 25 . 26 . 28 . 30 . 30 . 31 . 31 . 32
Chapter 3. Preparing OS/390 and AIX . . . . . . . . . . . . . . . . . . . . . . . 3.1 Pre-installation checking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Defining the configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Installation prerequisites. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 Database server setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.2 Application server setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Database server and application server connectivity testing . 3.3.4 DASD initialization on the database server . . . . . . . . . . . . . .
iii
3.3.5 Configuring OSA-2 on the database server. . . . . . . . . . . . . . . 3.3.6 Installing DB2 for OS/390 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.7 Configuring SMS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.8 Customizing OS/390 UNIX . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.9 Customizing TCP/IP on the database server . . . . . . . . . . . . . 3.3.10 Customizing the ICLI Server . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.11 Customizing RACF or equivalent . . . . . . . . . . . . . . . . . . . . . 3.3.12 Set OS/390 dispatching and I/O priorities . . . . . . . . . . . . . . . 3.3.13 Customizing TCP/IP on the central instance . . . . . . . . . . . . . 3.3.14 Setting up the ICLI client . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.15 Testing connectivity -- central instance and database server 3.4 Installing SAP BW on DB2 for OS/390 . . . . . . . . . . . . . . . . . . . . . . 3.4.1 General notes on the installation from AIX . . . . . . . . . . . . . . . 3.4.2 Hints and tips -- installing with AIX . . . . . . . . . . . . . . . . . . . . . Chapter 4. Preparing DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Inside the SAP BW database . . . . . . . . . . . . . . . . . . . . . . 4.2 Prerequisites of DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 OS/390 setup for DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.4 Setting up RRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.5 Customizing DB2 parameters . . . . . . . . . . . . . . . . . . . . . . 4.6 DB2 system database requirements . . . . . . . . . . . . . . . . . 4.6.1 DB2 catalog and directory database size . . . . . . . . . 4.6.2 Additional DB2 catalog indexes . . . . . . . . . . . . . . . . 4.7 Preparing the DB2 log . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.8 DB2 Binding for the ICLI server . . . . . . . . . . . . . . . . . . . . 4.9 DB2 authorizations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.10 Maintaining DB2 catalog statistics . . . . . . . . . . . . . . . . . 4.10.1 RUNSTATS utility considerations . . . . . . . . . . . . . . 4.10.2 Updating DB2 catalog statistics manually . . . . . . . . 4.10.3 Maintaining catalog statistics for R/3 cluster tables . 4.11 Post-installation tasks. . . . . . . . . . . . . . . . . . . . . . . . . . . 4.11.1 Reorganization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.11.2 DB2 temporary database (DSNDB07). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. 32 . 33 . 34 . 34 . 34 . 36 . 37 . 39 . 40 . 42 . 42 . 43 . 43 . 43 . 47 . 47 . 47 . 48 . 48 . 48 . 50 . 51 . 52 . 52 . 53 . 54 . 54 . 54 . 55 . 56 . 58 . 58 . 58 . 59 . 59 . 60 . 60 . 61 . 62 . 62 . 62
Chapter 5. Installing SAP BW OS/390 with AIX Application Servers. 5.1 SAP BW installation overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 SAP BW pre-installation: data gathering . . . . . . . . . . . . . . . . . . . . . . 5.2.1 Gathering the SAP notes via SAPNet R/3 Frontend . . . . . . . . . 5.2.2 Searching for SAP notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2.3 Downloading patches and other information from SAPSERVx . 5.2.4 Searching for installation documentation . . . . . . . . . . . . . . . . . 5.3 SAP BW pre-installation: system check . . . . . . . . . . . . . . . . . . . . . .
iv
5.4 SAP BW pre-installation: final preparation phase . . . . . . . . . . 5.5 SAP BW installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.5.1 Starting BW installation . . . . . . . . . . . . . . . . . . . . . . . . . 5.5.2 Building the BW database . . . . . . . . . . . . . . . . . . . . . . . 5.5.3 Loading the BW database. . . . . . . . . . . . . . . . . . . . . . . . 5.5.4 R3SETUP problem solving . . . . . . . . . . . . . . . . . . . . . . . 5.6 SAP BW post installation: completing the install . . . . . . . . . . . 5.6.1 Summary of the BW database . . . . . . . . . . . . . . . . . . . . 5.6.2 Summary of the SAP R/3 source system . . . . . . . . . . . . 5.6.3 SAPGUI/BWGUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.6.4 BW Patch installation . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.7 Installing the R/3 PlugIn PI 99 or PI-A 99 for SAP BW . . . . . . 5.7.1 PlugIn -A 99 pre-installation: data gathering . . . . . . . . . . 5.7.2 PlugIn -A 99 pre-installation: system check . . . . . . . . . . 5.7.3 PlugIn -A 99 pre-installation: final preparations. . . . . . . . 5.7.4 PlugIn -A 99 installation . . . . . . . . . . . . . . . . . . . . . . . . . 5.7.5 PlugIn -A 99 post-installation: completing the installation 5.8 What to do with those leftover CD-ROMs . . . . . . . . . . . . . . . . 5.9 Useful URLs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Chapter 6. Managing SAP BW database . 6.1 Administrators workbench . . . . . . . . . . 6.2 SAP R/3 tools . . . . . . . . . . . . . . . . . . . . 6.3 DB2 utilities . . . . . . . . . . . . . . . . . . . . . 6.4 Backup and recovery strategy . . . . . . . Chapter 7. Tests performed at ITSO . 7.1 Loading the ODS . . . . . . . . . . . . . . 7.2 Updating the InfoCube . . . . . . . . . . 7.3 Aggregate build . . . . . . . . . . . . . . . 7.4 .Running queries . . . . . . . . . . . . . . 7.5 Incremental DataPackage update . . 7.6 Partitioning tables in SAP BW . . . . 7.6.1 Partitioning in the ODS . . . . . . 7.6.2 Partitioning in the InfoCube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. .. .. .. .. .. .. .. .. .. .. .. .. .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
.. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. ..
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
. 64 . 66 . 66 . 67 . 67 . 68 . 69 . 70 . 71 . 71 . 71 . 72 . 73 . 73 . 73 . 75 . 75 . 76 . 76 . 79 . 79 . 80 . 81 . 81 . 83 . 83 . 84 . 85 . 85 . 86 . 86 . 86 . 87 . 89 . 89 . 90 . 91 . 91 . 91 . 92 . 93
Chapter 8. Sizing, performance, and tuning considerations . 8.1 Special considerations for BW applications . . . . . . . . . . . . . 8.1.1 BW administration tasks . . . . . . . . . . . . . . . . . . . . . . . . 8.1.2 Using RUNSTATS . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8.2 General sizing and tuning approach . . . . . . . . . . . . . . . . . . . 8.2.1 Pre-installation and planning phase . . . . . . . . . . . . . . . 8.2.2 Pilot or evaluation phase . . . . . . . . . . . . . . . . . . . . . . . 8.2.3 Production start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
8.2.4 Running BW . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 Appendix A. Whats new in SAP BW 2.0. . . . . . . . . . . . . . . . . . . . . . . . . . 95 Appendix B. DB2 Installation parameters . . . . . . . . . . . . . . . . . . . . . . . . 97 B.1 DSNZPARM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 B.2 IRLMPROC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 B.3 DB2 parameters using a SAP transaction . . . . . . . . . . . . . . . . . . . . . . . 104 Appendix C. How to set up RRS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109 Appendix D. Enterprise Storage Server (ESS) . . . . . . . . . . . . . . . . . . . 115 Appendix E. Special notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 Appendix F. Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 F.1 IBM Redbooks. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 F.2 IBM Redbooks collections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 F.3 Other resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123 F.4 Referenced Web sites . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 How to get IBM Redbooks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125 IBM Redbooks fax order form . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 IBM Redbooks review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
vi
Figures
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. SAP BW architecture overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Table structure of an InfoCube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 Business Explorer example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Test system environment for SAP BW application . . . . . . . . . . . . . . . . . . 13 A storage class definition for SAP applications . . . . . . . . . . . . . . . . . . . . . 17 A storage group definition for SAP applications. . . . . . . . . . . . . . . . . . . . . 17 Physical SAP BW system configuration. . . . . . . . . . . . . . . . . . . . . . . . . . . 28 I/O configuration for the FDDI connection . . . . . . . . . . . . . . . . . . . . . . . . . 33 ICLI environment file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 ICLI started procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 Allocating DB2 active log data sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 An example of DB2 catalog updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56 Sample SQL statements for updating catalog statistics for cluster tables . 57 Sample SQL statements to avoid deadlock . . . . . . . . . . . . . . . . . . . . . . . . 57 DB2 installation parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104 DB2 buffer pool allocation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 DB2 storage sizes and connections. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 DB2 trace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 DB2 locks and IRLM definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106 DB2 archive log parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 DB2 active log parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107 DB2 application parameters. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 DB2 operation and DDF parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . 108 Sample JCL to define an RRS LOGR couple data set . . . . . . . . . . . . . . 110 Sample couple data set definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Sample JCL to define RRS log streams . . . . . . . . . . . . . . . . . . . . . . . . . 112 Sample RRS started task procedure . . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
vii
viii
Tables
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. Official names and usage in this redbook . . . . . . . . . . . . . . . . . . . . . . . . . 11 SMS naming convention for SAP applications. . . . . . . . . . . . . . . . . . . . . . 16 Information about DB2 systems. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 User ID definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 SAP BW definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 User ID information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Physical volume information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 File system allocation for SAP BW code installation . . . . . . . . . . . . . . . . . 21 User ID setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 TCPIP definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Other definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 Statistics of the DB2 objects of SAP BW . . . . . . . . . . . . . . . . . . . . . . . . . . 47 DB2 parameter checked by R3SETUP (BW). . . . . . . . . . . . . . . . . . . . . . . 49 Highly recommended IRLM parameters . . . . . . . . . . . . . . . . . . . . . . . . . . 50 Recommended DB2 bufferpool allocation . . . . . . . . . . . . . . . . . . . . . . . . . 50 DB2 installation panel DSNTPID . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 New indexes created against the DB2 catalog tables during R3SETUP . . 52 DB2 authorization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 Installation activities and runtime durations . . . . . . . . . . . . . . . . . . . . . . . . 60 SAPNet R/3 Frontend Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 AIX file system layout. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 AIX language filesets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 R3SETUP input required . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 Debugging file and locations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 R3SETUP problem-solving tips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 R/3 Profile parameter changes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 SAP BW DB2 UDB 6.1 OS/390 database statistics. . . . . . . . . . . . . . . . . . 70 SAP R/3 DB2 UDB 6.1 OS/390 database statistics. . . . . . . . . . . . . . . . . . 71 File system size for PlugIn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 PlugIn variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 Useful URLs - SAP logon required . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 Useful URLs - Public . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 TP parameters for JCL submitted with FTP out of SAP R/3 . . . . . . . . . . . 80
ix
Preface
This redbook explores the SAP Business Information Warehouse (BW) 1.2B on the S/390 system. It takes a close look at the tasks and functions that are specific to the S/390 environment. It is designed to assist S/390 technical specialists, DB2 database administrators, and SAP Basis consultants in implementing this technology. This redbook offers valuable information that includes: An overview of BW The preparation of the BW installation The BW installation process Recommendations on administering BW databases to: improve query response time, improve performance of loading databases, update delta information, gather database statistics, and more. Preliminary sizing recommendations based on tests and SAP recommendations We assume that the readers have already installed the SAP R/3 system and are familiar with SAP applications, terminology, prerequisites, documentation, and technology.
xi
years with 15 years spent on MVS and OS/390. He has over 10 years of experience in migration projects in the area of OS/390, DB2, and multiplatform environments. Recently he participated in a pilot study of porting UNIX/Informix applications to OS/390 UNIX. Christoph is the region manager of GUIDE SHARE Europe for the German Region, and formerly led the OS/390 working group. Gert Ruland is a BI specialist at the S/390 New Technology Center, Montpellier, France. Before joining NTC Montpellier he worked for IBM Germany in the S/390 division as a system engineer and sales representative. He has 22 years of experience in different areas of IT. Thanks to the following people for their contributions to this project: Jan Baisden International Technical Support Organization, Poughkeepsie Center David Bennin Rich Conway Robert Haimowitz Vasilis Karras International Technical Support Organization, Poughkeepsie Center Terry Barthel Alfred Schwab Denny Sell Ella Buslovich International Technical Support Organization, Poughkeepsie Center Benno Staebler Joachim Rese SAP R/3 on DB2 for OS/390 Porting team: Business Warehouse, IBM Germany Christine Gaul-Gaensslen Customer support for SAP R/3 on DB2 for OS/390, IBM Germany Michael Sheets IBM SAP International Competency Center - S/390 Lee Siegmund IBM Dallas System Center
xii
Don Geissler Scott Bell IBM ERP Competency Center, The Americas
Comments welcome
Your comments are important to us! We want our Redbooks to be as helpful as possible. Please send us your comments about this or other Redbooks in one of the following ways: Fax the evaluation form found in IBM Redbooks review on page 133 to the fax number shown on the form. Use the online evaluation form found at http://www.redbooks.ibm.com/ Send your comments in an Internet note to redbook@us.ibm.com
xiii
xiv
BW provides a steadily-growing base of knowledge about your companys business and your customers behavior (for example, the results of certain marketing campaigns), and about the relationships between these factors. BW can extract, store, and provide quick and easy access to all this business knowledge. You, in turn, can use this knowledge to make successful business decisions by querying BW. BW can help you determine the future direction of your company. This is why more and more customers are using it.
For customers already using OS/390 systems 1. Existing skills in OS/390 and DB2 can be used:
There is no need to build up new skills and hire additional staff. There is less learning involved; therefore, a quicker start is possible. 2. Production data (the base for deriving BW data) is already on OS/390; this means: There are no connectivity problems. There is high speed data transfer. You have secure interfaces. 3. Important data is on a proven platform: You can avoid increasing IT complexity. Proven existing backup and recovery mechanisms can be used. Existing automation can be used and new jobs can easily migrate to it. You can use existing systems management procedures. You can keep the number of servers small (server consolidation results in reduced costs).
1. Scalability One hardware system powers multiple LPARs, systems, and databases in a most flexible way, without having to IPL or redefine parameters for each change. Hardware growth benefits all applications and systems.
For customers using OS/390 as a new platform These reasons for using SAP on OS/390 for BW were cited by both groups of customers:
1. Availability S/390 platforms and storage subsystems are well known for high availability in the marketplace. Using the Parallel Sysplex facilities will increase availability to the highest possible level. Changes to hardware and software can be made in flight, without disrupting applications. 2. Security OS/390 is acknowledged to be one of the most secure systems--and all customers want the best possible protection for strategic data, such as that stored in BW systems. OS/390 UNIX System Services is especially secure, because RACF is used for security instead of standard UNIX security. If BW data may be accessed from the Internet, thus making security concerns particularly important. 3. Accounting, tuning and measurement A BW application will contain a large and ever-increasing mountain of data, so it is particularly important to track (and probably, bill) the users who are producing and using this data. For accurate accounting, you first need to perform measurements, collecting data from the system and the subsystems, so users are fairly charged. Accurate and continuous measurement is the base for all system tuning activities, as well--and you also need measurement data to predict your systems and storage growth and to contract service level agreements with your users or IT customers that you will be able to fulfill. All these considerations are especially important in a BW application, which holds strategic information for your company and will likely be used by every employee who makes business decisions. For more than twenty years, OS/390 has performed measurement and accounting tasks as normal business, processing large amounts of data,
handling great numbers of users, and providing parallelism--so all the tools needed for these tasks in a BW environment are already available and ready for you to use. UNIX and PC systems simply do not offer the measurement and accounting capabilities of OS/390. So if you need detailed information about database activity or storage usage to do measurement, tuning, accounting, service-level design or IT growth projections, OS/390 can be the solution--and these OS/390capabilities become even more important if you enter a multi-customer service center environment.
SAP R/3 on DB2 for OS/390: Implementing with AIX or Windows NT Applications Servers, SG24-4945
1.3.1.1 Business Explorer Business Explorer is a graphical user interface (GUI), hosted by MS EXCEL, that provides analyzing and viewing functions for end users. SAP provides several ready-made reports for the standard R/3 system.
Business Explorer
Report Catalog Browser
Reporting and Analysis for Excel
BAPI
OLAP Processor InfoCubes Meta Data Repository Meta Data Manager Data Manager
Operational
Staging Engine
Data Store
BAPI
OLTP Reporting
1.3.1.2 Business Information Warehouse Server The OLAP processor manages the supply of data that is requested by a user for analysis. It interfaces with the Meta Data Manager to get information about where to get the data, and with the data manager to get the actual data. The interface to the Business Explorer of the SAP BW frontend is the Business Application Interface (BAPI). Data Manager takes care of the data in the InfoCubes and Operational Data Store. InfoCubes is the container for the data tables for OLAP processing, and the Operational Data Store (ODS) holds the data in flat file-type tables.
The Staging engine is responsible for loading the data that is extracted from the application data. The interface to the extracted data is supplied by SAP BW, in the case of SAP R/3 and SAP R/2 systems. For other OLTP applications, you have to develop it yourself. Meta Data Manager keeps track of the data warehouse environment and stores its tables in the Meta Data Repository. 1.3.1.3 OLTP systems At the bottom of the Figure 1 on page 5 are the production systems, from which the data is extracted and loaded into SAP BW. Administrator Workbench The Administrator Workbench tool can also help in BW administration. This SAPGUI-based tool is used for BW implementation, maintenance, customizing, scheduling, and monitoring. The Business Content (BCT) BCT is meta data information used to assist in synchronizing the meta data of SAP BW and SAP R/3.
create the data warehouse on your BW system, you start by creating your InfoObjects.
Characteristics are the elements of a companys business, for example company code, product, material, customer group, fiscal year, period, or sales region. They may have a hierarchical structure; products, for example, may be grouped together into product groups. Characteristics are stored in dimension tables. Key figures are the values or quantities in a companys business, such as sales revenue, sales quantity, or fixed costs. They are stored in fact tables.
A fact table contains all the key figures at the lowest level of detail. A dimension table contains characteristics that are required both in reporting and in the analysis of the key figures. Dimension tables are independent of one another. Only the fact table connects dimension tables through key figures. The largest organizational unit is an InfoCube; see Figure 2 on page 8 for an example. You can think of an InfoCube as a data mart. An InfoCube is used to answer specific end-user queries and to provide information for specific analysis. It consists of a number of tables that are put together in a extended star schema. A large fact table is surrounded by several dimension tables.
M aster
M a ste r
S ID Table
S ID Table
SID Attr
S ID Table
D im en s io n tab le
Tem p Tab
S ID Table
M a ste r
M a ster
S ID Table
D im en sio n tab le
FACT
D im en sio n tab le
SID Attr
SID Attr
M a ster
S ID Table
D im en s io n tab le
S ID Table
S ID Table
M aster
F act Tab le Dimen sion M a ste r SID Tab le Temp Tab SID Attr
SID Attr
S ID Table
SID Attr
M a ste r
M a ste r
SID Attr
Tem p Tab
SID Attr
SID Attr
SID Attr
Dimension tables are linked to the fact table using surrogate keys. A surrogate key is used as a unique key within each dimension table. The master data table and the dimension table are linked by system-generated identifications called Set IDs that are stored in Set ID (SID) tables. The master table contains attributes of characteristics, while the dimension table contains the representation of the characteristics. Master tables contain information that can be used by other InfoCubes. Thus, the dimension table with its associated SID table and its master data table builds one dimension.
information about ICLI, refer to SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964.
1.3.5 Security
Access to reports that contain sensitive data must be restricted to authorized persons only. SAP BW provides various controls on different levels. Access rights may defined for a report as a whole, or for certain key figures (for example, salary in a personnel InfoCube), or even for specific values of a characteristic (for example, a certain cost center). You manage access rights with the Administrator Workbench.
10
Official product name DB2 UDB for OS/390 SAP R/3 Application server SAP R/3 Database server SAP R/3 Central Instance SAP Business Information Warehouse SAP Business Information Warehouse Database Server SAP Business Information Warehouse Application Server SAP Business Information Warehouse Central Instance
Shorter version used in this redbook DB2 Application Server DB server Central Instance SAP BW or BW SAP BW DB server SAP BW Application server SAP BW Central Instance
11
12
RS/6000 F50
SAPGUI
9.12.0.73
T o k e n R i n g
T O K E N R I N G
9672-X77 (1 LPAR)
OS/390 V2R7
OSA
I C TOKEN- L I RING S E R V E R S
DB2 V6
DBH1
AIX 4.3.3
ALE
RS/6000 F50
DB2 V6
OSA
F D D I R I N G
DB2Q
FDDI
AIX 4.3.3
ESS Shark
13
Because SAP BW is designed to run in a 3-tier architecture environment, we assumed that different groups of system programmers need to work together. Therefore, we divided our work from the viewpoint of the SAP R/3 server-level concept based on the hardware platforms as follows: S/390 platform for the database server RS/6000 platform for the application server Netfinity for the presentation server
2.1.1 Hardware
We used the following hardware in our tests:
Processor We used an IBM 9672-X77, which is a 7-way processor of the G6 family. We ran 15 LPARs on this processor, and the OS/390 system that we used for this redbook ran on one of the LPARs. We were given two shared processors at first and later were assigned two additional shared processors. All time estimates are related to the four-processor environment, unless stated otherwise.
We did not see any degradation of our LPAR from the other LPARs on our server. The OS/390 we ran always got as much power as it required. Even though the 9672-X77 ran in a Parallel Sysplex with three other 9672 machines and three Coupling Facilities, our LPAR did not participate in the sysplex. It worked as a standalone system.
Storage We had 1024 MB of real storage and 64 MB of expanded storage. We did not see any memory constraints. Enterprise Storage Server (ESS) We used 10 volumes of ESS DASD (Shark) for the source SAP R/3 databases, and 12 volumes of ESS DASD for the SAP BW database. After installation of SAP BW, all volumes had about 50 to 80 percent free space. We recommend that you have at least 10 volumes for SAP BW installation.
14
The ESS provides a highly available, scalable, easy-to-manage storage subsystem that complements the strengths of S/390. The logical disk architecture of the ESS spreads data across all the available disks, reducing the requirement for data placement to avoid hot spots. Additional physical storage capacity can be added nondisruptively. For more information about ESS, refer to Appendix D, Enterprise Storage Server (ESS) on page 115. The volumes resided on an IBM ESS subsystem which was connected by multiple controllers via switched ESCON. A pair of 2 volumes for each database used one controller. Each controller had 2 ESCON paths. All DASD was shared with the other LPARs. We did not see major impacts to our work from the I/O subsystem. The DASD response time we saw was about 3 to 5 milliseconds. Connectivity The OS/390 LPAR used two OSA-2 Adapters on the 9672-X77, which are also shared by other LPARs: The EN-TR OSA-2 Adapter connected to a 16 Mb token-ring LAN and was used for non-BW access to OS/390. The FDDI OSA-2 Adapter was used for all SAP BW and SAP R/3 application server-to-database server communication. These definitions are not specific for SAP R/3 or BW. For more information about connectivity, refer to SAP R/3 on DB2 for OS/390: Connectivity Guide, SC33-7965.
Workload Manager (WLM) For our tests, the WLM setup was as simple as possible. We only used the system-provided service classes SYSTEM, SYSSTC, TSO and BATCH. SYSTEM is given distinct address spaces automatically. All other work, except BATCH or TSO, is in service class SYSSTC, including the DB2
15
address spaces and the ICLIs for a production SAP R/3 and BW. The definitions to the service classes apply to standard recommendations in the planning guide. See SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964 for details. We did not experience situations where one of our jobs or DB2 or ICLI was waiting for CPU, storage or DASD resources claimed by other address spaces in the system.
System Managed Storage (SMS) We defined SMS for SAP application databases as shown in Table 2. (We did not use SMS for DB2 system databases.)
Table 2. SMS naming convention for SAP applications
SAP BW appl. Number of volumes Storage group Storage class Management class Data class VSAM data set alias 12 SGSAPBW SAPBW default default SAPBW
In all constructs, additional parameters, such as those used for performance or availability, were not used. Management class and data class were set corresponding to system standards. That specifically means that DB2 data sets are not migrated in any way. We changed an ACS routine (definition of storage class and storage group) to make these definitions effective. Figure 5 on page 17 shows the definition of the storage class. Figure 6 on page 17 shows the storage definition that connects storage class with storage group. Storage class SAPBW includes all data sets that use SAPBW as a first qualifier. All data sets that belong to storage class SAPBW are created in the volumes that belong to storage group SGSAPBW. Of course, 12 volumes were defined in the storage group SGSAPBW for the SAP BW application.
16
PROC STORCLAS FILTLIST JANLOG INCLUDE(DB2V510U.ARCHLOG%.**) FILTLIST SAPBWDS INCLUDE(SAPBW.**) FILTLIST SAPR3DS INCLUDE(SAPR3.**) /* FILTLIST REQ_SMS INCLUDE('LIBRARY','PIPE','HFS') */ .... WHEN (&DSN = &SAPBWDS) DO SET &STORCLAS = 'SAPBW' EXIT END WHEN (&DSN = &SAPR3DS) DO SET &STORCLAS = 'SAPR3' EXIT END .....
Figure 5. A storage class definition for SAP applications
PROC STORGRP WHEN ( &STORCLAS = DO SET &STORGRP EXIT END WHEN ( &STORCLAS DO SET &STORGRP EXIT END
'SAPBW' ) = 'SGSAPBW'
= 'SAPR3' ) = 'SGSAPR3'
ICLI server Integrated Call Level Interface (ICLI) comes with OS/390 and provides a remote SQL connection between application servers and database servers. For SAP BW 1.2B, ICLI for SAP R/3 kernel 4.5B was needed. If your system does not have the ICLI component, ask your OS/390 system programmer to install it. See SAP OSS Note 81737 and the planning guide for more information about ICLI Server.
17
During the execution of R3SETUP for BW installation, one DB2 plan and three DB2 packages were created, as shown in Table 3, and the plan was granted to the user ID of ICLIRUN automatically. In our test, we used ICLIBLU as the ICLI server name, and user ID ICLIBLU as a user who runs ICLI server. Therefore, we granted user ID ICLIBLU the authority to run the plan explicitly, and authorized user ID ICLIBLU to run started task ICLIBLU in the RACF database. For more information about ICLI, refer to SAP R/3 on DB2 for OS/390: Implementing with AIX or WIndows NT Application Servers, SG24-4945. 2.1.2.2 DB2 layout We used DB2 V6.1 at PutLevel 9911 and checked Note 81737 for additional required maintenance. In order to test the functions of the SAP BW application, we needed test data. Possible sources to extract such data from, as described by SAP R/3, are: SAP R/3 SAP R/2 Non-SAP source We generated test data into flat files. We had two DB2 systems in the same OS/390, as shown in Table 3.
Table 3. Information about DB2 systems
SAP BW application DB2 subsystem name IRLM name HLQ of DB2 data set DB2 Load library ICLI plan name ICLI package name DBH1 IRH1 DB2V61H1 DSN610.SDSNLOAD (V6) FOMEP45B FOME45B1, FOME45B2, FOME45B3
SAP R/3 application DB2Q IRLQ DB2V610Q DSN610.SDSNLOAD (V6) FOMEP45B FOME45B1, FOME45B2, FOME45B3
All DB2 system parameters were configured as recommended in SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964. You can find the initial DB2 setup parameters of our DB2 system as shown in Appendix B, DB2 Installation parameters on page 97.
18
There are minor differences between SAP R/3 and BW, from the DB2 perspective. If you already have an SAP R/3 system at your location, you can refer to those DB2 system parameters for the SAP BW system; see the SAP BW Installation manual for details. 2.1.2.3 Network connectivity TCP/IP was used as the communication protocol between the OS/390 and RISC/6000 running AIX. Access to our OS/390 system for TSO was on a different LAN than the OSA-2 adapter that was used for OMVS. These LANs were both token rings, running 16 Mb. IBM Personal Communications was used for access TSO and OMVS. SAP and BW connectivity used the FDDI OSA-2 adapter in the 9672 that is shared by other LPARs. For more information about connectivity, refer to SAP R/3 on DB2 for OS/390: Connectivity Guide, SC33-7965, or ask your network administrator. We did not find any significant delays caused by connectivity during our tests. 2.1.2.4 User information Table 4 shows the user ID information at the database server. These definitions were all defined in RACF.
Table 4. User ID definitions
User ID
OMVS user
Remark Group ID
UID(0) UID(0)
SAP system administrator ID ICLI server user ID SAP user IDs for tests
ICLIBLU should be authorized to run ICLI server under its ID (RACF). SAPR3 should be defined and authorized properly by DB2 before the execution of R3SETUP.
19
2.2.1 Hardware
We used two IBM RS/6000 F50 systems of the same size, one for SAP R/3 and the other for SAP BW, as follows: Two CPUs 1 GB of Memory 50 GB of disk space CD-ROM (important for installation) IBM token ring adapter IBM FDDI adapter
2.2.2 Software
We installed the following software in each AIX machine: IBM AIX Version 4.3.3 SAP BW Version 1.2B central instance Maintenance required from SAP Note 81737 FDDI Driver: SK-NET FDDI PCI Adapter V2.2
Our definition SAP system name SAP mount ICLI procedure name Hostname IP address Subnet mask FDDI interface LANG= BLU /sapcd ICLIBLU erprisc1 10.1.1.73 255.255.255.0 fi0 en_US
Remark 3 byte
20
Our definition
Remark
User information
Table 6. User ID information
Remark
SAPGUI user
Volume information We created two volume groups in the physical volume, as shown in Table 7.
Table 7. Physical volume information
Partition size 16 64
File systems and raw devices We allocated several file systems based on the recommendations in the installation manual. But during our test, we met several storage shortage problems, so we increased the size of those file systems. Table 8 shows the file system allocation after the SAP BW installation.
Table 8. File system allocation for SAP BW code installation
Description Global transport directory for all SAP systems Instance-specific data, symbolic links to the data for one system Software and data for one SAP system Installation directory
Space used (# block) 514288 (200 MB) 622592 (300 MB) 786432 (380 MB) 622592 (300 MB)
21
2.3.1 Hardware
We used up to four PC systems. (The number of PCs you need depends on the number of users that are working concurrently.) IBM Netfinity 3000 Pentium II at 350 Mhz 64 to 192 MB RAM Token Ring Adapter SCSI DASD
2.3.2 Software
All products used were at base level, unless otherwise stated.
22
Notes The SAP Frontend Installation for UNIX is described in chapter 6 of the BW installation manual 51007613.
We used the download manager of SAPNet, which recently became available. It was self-explanatory but we encountered some time-out problems while downloading. Since we did not find the reason, we started several times and the download manager restarted without doing completed work again. The Frontend Patch Level 09 was cumulative (all previous patches were included). This patch installs manually: you get a zip file that extracts about 30 files in one directory, and then you have to manually copy the 30 files into distinct SAP program directories. We installed Office 2000 for the SAP Business Explorer BEx. To ensure we did not miss something needed later, we installed all the EXCEL components, all converters, filters, and so on. This needs about 500 MB on DASD. The latest OS/390 Library Collection CDs contains the Library Reader 2.02. Be sure to use this version, as it is able to read all books of the December 1999 collection. Older versions will show error messages such as book not properly stamped and so on.
23
24
25
ChecklistInstallation Requirements: DB2 for OS/390, Material Number: 51006374 SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B , SC33-7964 Installation of the SAP Business Information Warehouse on UNIX DB2 for OS/390, Material Number: 51007613 R/3 Installation on UNIX: OS Dependencies , Material Number: 51005979 OSS Note #149473-DB2/390: 4.5B R/3 Installation on UNIX or WinNT OSS Note #81737-DB2/390: APAR List As a three-tier client/server application, SAP BW on DB2 for OS/390 requires certain hardware and software to be set up on the database server, on the central instance, and on the presentation server. You must also set up communication between them. Refer to ChecklistInstallation Requirements: DB2 for OS/390 51006374 for the hardware and software requirements needed for the SAP BW on DB2 for OS/390 installation. The database server for SAP BW on DB2 for OS/390 runs on any S/390 (or compatible) processor capable of supporting OS/390 Version 2.6 or higher. Connectivity from the database server can be achieved in various ways. By using ESCON channel feature(s) on the S/390 database server and ESCON channel adapter(s) on the gateway AIX application server(s). By using FDDI OSA-2 feature(s) on the S/390 database server and FDDI LAN adapter(s) on the gateway AIX or NT application server(s). By using Fast Ethernet OSA-2 features on the S/390 database server and FAST Ethernet adapter(s) on the gateway AIX or NT application server(s). By using OSA-EXPRESS Gigabit Ethernet feature(s) on the S/390 database server and Gigabit Ethernet PCI adapter(s) on the gateway AIX application server(s).
26
By using an ESCON, FDDI, or Fast Ethernet connection from the database server to a router (such as the IBM 2216 Multi protocol Router) and a LAN connection from that router to the gateway application servers. One of the means of connection in the preceding list must be used. Refer to SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964, and SAP R/3 on DB2 for OS390 Connectivity Guide, SC33-7965, for specific configuration information. The central instance runs on any processor that supports AIX Version 4.3.2 or higher, or Windows NT Version 4.0. The presentation service runs on Windows 3.1, Windows 95, Windows NT, Motif(UNIX), OS/2, and MacIntosh. Note that a Java version of the GUI is now also available.
SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964, describes the preparatory steps and actual settings to be used during and after installation. The installation guide, Installation of the SAP Business Information Warehouse on UNIX DB2 for OS/390, 51007613, directs you to use the values from the SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B over the ones it has listed in the case that any should differ. The latest SAP R/3 planning guide for SAP R/3 will have the more recent information.
The R/3 Installation on UNIX: OS Dependencies booklet contains detailed information on the OS-dependent settings to be used. Review OSS Notes 142990 and 149473 to get the latest list of the installation requirements. Review OSS Note #81737-DB2/390: APAR List to get the latest information about the software fixes needed.
27
D a ta b as e S e rve r
LAN
FD D I LAN
O S /3 9 0 s ys tem d is k s
System requirements for database server IBM S/390 mainframe with an OSA-2 adapter or ESCON channel
Real and expanded storage DASD for OS/390 and DB2 system data sets DASD for SAP BW database OS/390 Version 2.7 or higher OS/390 UNIX enabled OSA-2 feature enabled in case you use OSA-2 adapter DB2 UDB Version 6 with PTFs
28
Description SAP DB Owner ICLI server Submit job and OS/390 UNIX
Table 10. TCPIP definitions
TSO No No Yes
DBServer
Central Instance
Parameter Description ICLI connection port ICLI keep alive port SAP system name SAP system number DB2 subsystem name DB2 group attach name (Data Sharing only)
Your value
29
30
31
The OSA-2 feature from the database server can be connected to the FDDI network as shown in Figure 8.
32
O S /3 9 0 C H P ID = 0 C 22C0 22C4 22 C5
IP = 1 0 .1 .1 .2 1 2
O S A -2 F e a tu re
FDD I LAN
F D D I R in g
FD D I A d a p te r IP = 1 0 .1 .1 .7 3 A IX o r W in d o ws N T
See SAP R/3 Connectivity Guide, SC33-8965, for details on how to install and configure the OSA-2 adapter.
SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964 DB2 for OS/390 V5 Installation Guide, GC26-9008 BC SAP Database Administration Guide: DB2 for OS/390, Material Number: 51006377
The DB2 for OS/390 product must have been installed prior to the SAP BW on DB2 for OS/390 installation. After completing the SMP/E installation of the DB2 for OS/390 product, we continued with the setup of DB2 for OS/390 parameters by considering the recommended values given by SAP. For detailed information about DB2 preparation, refer to Chapter 4, Preparing DB2 on page 47.
33
DFSMS/MVS V1R5 Implementing System-Managed Storage, SC26-3123 DFSMS/MVS V1R5 DFSMSdfp Storage Administration Reference , SC26-4920 DFSMS/MVS V1R5 General Information , GC26-4900
SMS-managed storage is required to store hierarchical file system (HFS) data sets that are used by OS/390 UNIX. Define at least one volume on disk to be managed by SMS. With the SAP BW application, there a large number of DB2 tablespaces and indexes. We therefore strongly recommend that you use SMS-managed storage for SAP BW data sets efficiently. This will significantly reduce the amount of work you have to do to define DB2 Objects.
Before customizing TCP/IP, you have to set up an OS/390 UNIX environment, according to the steps described in OS/390 UNIX System Services Planning, SC28-1890. Normal TCP/IP for OS/390 UNIX must also be set up according to the steps described in OS/390 UNIX System Services Planning. In our case, we used Standard TCP/IP connectivity over FDDI for the application server-to-database server communications.
34
For successful ICLI server and client communication, the ICLI server must know which port to monitor for ICLI client connection requests. There are three methods for specifying the ICLI connection port to the ICLI server: 1. Specify the ICLI connection port in the OS/390 UNIX /etc/services file, in the <TCPIP>.ETC.SERVICE file, or in <ICLI user ID>.ETC.SERVICES. These files are interrogated in the order listed if the SERVICENAME or PORT is not specified as an argument to the fome45bs command. 2. Specify the ICLI connection port via the SERVICENAME argument of the fome45bs command. This will be used to interrogate the file(s) listed in option 1. The files will be searched in the order listed for a matching service name. 3. Specify the ICLI connection port via the PORT argument of the fome45bs command. This will override any port number derived from a service name. We recommend that you use the first method, except when you are running multiple ICLI servers in the same OS/390 LPAR. See Chapter 9 in SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B for details. The redbook team used the third method. 3.3.9.1 Service name and port entries The connection port used by ICLI and by ICLI keep-alive can be chosen freely from the available services. The values must match the specification in the services file and TPPARAM on the central instance. In our environment, we chose 33666 as the ICLI connection port, and 33667 as the ICLI keep-alive connection port. Note that the keep-alive port number is not necessary when using TCP/IP. We used the PORT argument of the fome45bs command to tell the ICLI server which port to monitor for ICLI client connection requests. We added the following entries to the OS/390 UNIX /etc/services file to document that the ports are in use.
35
SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B ,
The steps to customize the ICLI server are as follows: Define the environment file. Define the start up JCL. The bind and grant activities required for the ICLI server are performed by R3SETUP during the central instance installation. For more information, see Chapter 4, Preparing DB2 on page 47. 3.3.10.1 Define the Environment File Following are the environment variables used by the ICLI server started task. In our test, this was defined in the file /u/bluadm/iclienv; see Figure 9.
During the testing of ICLI, you can set the ICLI_TRACE_LEVEL to 1, 2, or 3. However, we recommend that when you load the database, and then begin running the system, you set the ICLI_TRACE_LEVEL to 0 to reduce the storage space requirement of the OS/390 UNIX HFS and provide better performance. 3.3.10.2 Define the startup JCL You can use the started task technique to start ICLI. The ICLI started task JCL can be put as a member in SYS1.PROCLIB or another PROCLIB. Figure 10 on page 37 is a copy of the ICLI server started task JCL, called ICLIBLU, that we used.
36
//********************************************************************* //* * //* * //* ICLI server startup for SAP BW on DB2 for OS/390 * //* * //* * //********************************************************************* //ICLIBLU EXEC PGM=BPXBATCH,TIME=NOLIMIT,REGION=200M, // PARM='PGM /usr/sbin/fome45bs -PLAN FOMEP45B -LOGDIR /u/bluadm/ -TCP // -PORT 33666' //STDENV DD PATH='/u/bluadm/iclienv' //STEPLIB DD DISP=SHR,DSN=DSN610.SDSNLOAD //STDERR DD PATH='/u/bluadm/icliserv.err', // PATHOPTS=(OWRONLY,OCREAT,OTRUNC), // PATHMODE=(SIRWXU) //STDOUT DD PATH='/u/bluadm/icliserv.out', // PATHOPTS=(OWRONLY,OCREAT,OTRUNC), // PATHMODE=(SIRWXU) //SYSUDUMP DD SYSOUT=* //SYSMDUMP DD SYSOUT=*
You can use a copy of the file /u/bluadm/iclitask.jcl (where bluadm is SAP administrators ID) and adapt it to your needs. Remember to specify -TCP for the protocol in use. Note that it is possible to use //STDENV DD * and specify variables within this JCL stream. Some installations have found this to be convenient.
OS/390 Security Server (RACF) Security , SC28-1915 OS/390 Security Server (RACF) Support for OpenEdition DCE, SOMobjects for MVS, and SystemView for MVS , GC28-1924
The following definitions should be established when you configure the security using RACF or equivalent: User definition OS/390 UNIX facility Started task protection
37
3.3.11.1 User definition The following user IDs must be defined to RACF: SAP DB owner (in our case, SAPR3) ICLI server user ID (in our case, ICLIBLU) SAP system administrator ID (in our case, BLUADM) The RACF commands that you can use to define the group and user ID are as follows:
Note that ICLIBLU is defined as an OS/390 UNIX user. The superuser has UID(0), and can bypass all file security, as well as run any administrative commands. 3.3.11.2 The OS/390 UNIX facility OS/390 UNIX uses a new RACF class, FACILITY, and the FACILITY class profile BPX.DAEMON. If they are not defined on your system, they can be defined with the following statements:
We created an OS/390 UNIX user ICLIBLU and granted it the class profile for daemon administration, BPX.DAEMON, as can be seen in the following RACF statements:
3.3.11.3 ICLI started task We used the RACF STARTED class to associate the ICLIBLU user ID with the ICLI started task. When the ICLI procedure is started at the console, it runs as the ICLIBLU user.
38
We added a new WLM subsystem with the name SAP. To do this, we started the ISPF application of WLM, chose option 6 (classification rules), and used option 1 to create a new subsystem. The following entries were made in this subsystem definition:
39
Subsystem-Type Xref Notes Options Help -------------------------------------------------------------------------Modify Rules for the Subsystem Type Row 1 to 7 of 7 Command ===> ____________________________________________ SCROLL ===> PAGE Subsystem Type . : SAP Fold qualifier names? Description . . . WLM definition for SAP R/3 4.5B Action codes: A=After B=Before C=Copy D=Delete row M=Move R=Repeat Y (Y or N)
-------Qualifier------------Type Name Start 1 UI 2 TN 2 TN 2 TN 2 TN 2 TN 2 TN ICLIBLU ___ GENERIC ___ DIALOG ___ UPDATE ___ UPDATE2 ___ SPOOL ___ BATCH ___
I=Insert rule IS=Insert Sub-rule More ===> -------Class-------Service Report DEFAULTS: SAPICLI ________ SAPICLI ________ SAPICLI ________ SAPICLI ________ SAPICLI ________ SAPICLI ________ SAPICLI ________ SAPICLI ________
Installation of the SAP Business Information Warehouse on UNIX DB2 for OS/390, Material Number 51007613
SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964 BC SAP Database Administration Guide: DB2 for OS/390, Material Number: 51006377
On the central instance, we modified the /etc/hosts file. The R3SETUP tool adds the appropriate ICLI client and keeps alive port entries to the /etc/services and /usr/sap/trans/bin/TPPARAM files. 3.3.13.1 Hosts file We added the following entries to the /etc/hosts file:
40
10.1.1.212 10.1.1.73
wtsc62f #OS/390 address by UDP from AIX erprisc1 #AIX address by UDP from OS/390
3.3.13.2 Services file R3SETUP adds the following entries to the /etc/services file:
# SAP specific services sapdp00 3200/tcp # SAP R/3 dispatcher port | | v v sapdp99 3299/tcp sapgw00 3300/tcp # SAP R/3 gateway port | | v V sapgw99 3399/tcp sapmsBLU 3600/tcp # SAP R/3 message server port # ICLI specific services sapdb2BLU 33377/tcp # ICLI port iclikaBLU 33378/tcp # ICLI Keep Alive Port
41
3.3.14
SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964
BC SAP Database Administration Guide: DB2 for OS/390, Material Number: 51006377
The ICLI client code is provided in the OS/390 PTF containing the ICLI server. The executables FOME45BA(client) and FOME45BK(keep alive) can be found in the <HLQ>.SFOMDATA, where HLQ is the High Level Qualifier for your UNIX System Services data sets. R3SETUP will download these to the /sapmnt/<SAPSID>/exe directory and rename FOME45BA to ibmiclic.o and FOME45BK to ibmiclika. 3.3.14.1 ICLI client code The ICLI client code is downloaded by R3SETUP from the OS/390 system during the installation of the central instance. If the ICLI server on the OS/390 system is changed, you will have to manually transfer the members FOME<REL>A and FOME<REL>K from the OS/390 SYS1.SFOMDATA data set to the central instance. Rename FOME<REL>A to ibmiclic.o and FOME<REL>K ibmiclika, and place them in the /sapmnt/<SAPSID>/exe/ directory. Ensure that these files belong to <sapsid>adm and have permissions set to 755(-rwxr-xr-x).
Notes
<sapsid> is the SAP system name in lowercase. <SAPSID> is the SAP system name in uppercase.
42
From within OS/390 UNIX on the database server: oping -c 1 10.1.1.73 If the ping and oping commands are successful, then the connectivity between the database server and the central instance has been established.
Installation of the SAP Business Information Warehouse on UNIX DB2 for OS/390, Material Number 51007613 SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B , SC33-7964
This section describes the steps we performed during the installation of SAP BW.
43
installation work directory when running INSTTOOL.SH. This documentation is HTML-based and can be viewed and printed with any Web browser. 2. Make sure that the worksheet has been prepared before executing the installation shell script and R3SETUP. 3. If you make a mistake in typing an answer during the build process of the command file, re-execute the build process from the beginning. One way to do this is to rename the current command file, CENTRAL.R3S for example. Then rename the initial command file CENTRAL.R3S.1 to CENTRAL.R3S. 4. The command file will be updated by the R3SETUP program during the install process. 5. To use the INSTGUI tool, you will need either Windows 95 or NT, or Motif installed on an AIX system. 6. To view the R3SETUP documentation and help files, you will need a browser that supports frames, such as Netscape. 7. The first time you start the R3SETUP program, it will ask if you want to use the graphical installation tool. If you answer Yes, it will start INSTGUI for you. 8. When you later need to restart the installation process, the INSTGUI program must be started before the R3SETUP program. The R3SETUP program must then be started with the following options:
9. Every time R3SETUP is restarted, it will copy the log from the last run to a different file. The current log file will always have the name <command file>.log, while the old log is named <command file>.log.<number>. The file with the highest number will be the newest old log file. 10.We recommend restarting INSTGUI when you are restarting R3SETUP. The reason is that the number of errors and error messages shown by INSTGUI are accumulated from the previous failed R3SETUP runs. It can be difficult to determine which errors occurred in the current execution of R3SETUP if you do not restart INSTGUI also. 11.The percentage indication on the INSTGUI does not show the percentage of the actual work completed in hours. Instead, it shows the percentage of steps completed.
44
12.Each phase of the database load has a unique name. This name is assigned to the load process and log associated with a particular phase. If an error occurs with one of the processes, you must check two logs: DBBW.log and <process name>.log.
Reference
Installation of the SAP Business Information Warehouse on UNIX DB2 for OS/390, Material Number: 51007613
The SAP BW on DB2 for OS/390 installation can only be started if the network connection has been established between the database server and the central instance. Refer to 3.3.15, Testing connectivity -- central instance and database server on page 42. The steps needed for SAP BW installation are detailed in Chapter 5, Installing SAP BW OS/390 with AIX Application Servers on page 59.
45
46
Items Number of DB2 databases Number of tablespaces Number of tables Number of indexes Average number of rows per table Number of rows of the largest table
Statistics of the DB2 objects 2201 2201 4164 4459 1655 500,585
The SAP BW system has its own structure of DB2 objects, such as a large number of databases, tablespaces, and so on. Therefore, prior to installing SAP BW code, you need to prepare your DB2 system to manipulate those DB2 objects effectively.
47
Large VTOC The SAP BW installation includes a very large number of data sets. It is therefore recommended that you initialize the volumes that are associated with the DB2 storage groups with a large VTOC that is at least 250 tracks on a 3390 DASD unit for BW application. (For SAP R/3 applications, 400 tracks are recommended.) Refer to SAP BW installation documentation for more information. Separate VSAM user catalog With regard to the VSAM catalog size of the SAP BW data sets, we recommend that you create a separate user catalog with a size of 20 cylinders for the primary allocation and 5 cylinders of secondary allocation. This is based on a 3390 DASD unit. If you are going to use the VSAM catalog of the DB2 subsystem, make sure that it is large enough to hold all the information contained in the SAP BW data sets.
48
For the settings we used in our installation, refer to Appendix B, DB2 Installation parameters on page 97 .
Required DB2 system parameters Table 13 shows the required DB2 parameters for setting up SAP BW 1.2B. Most parameters are defined in DSNZPARM, while some are in DSNHDECP.
Table 13. DB2 parameter checked by R3SETUP (BW)
Remark Save prepared, dynamic SQL statement for later use. Maximum number of DB2 data sets open at a time. You can have up to 6660 data sets for tablespaces and indexes. Zero (0) means there is no limit to the number of page and row locks a program can acquire. US English in ASCII AIX. Defined in DSNHDECP. Specify the default format in which to store data in DB2. SAP BW application uses ASCII format data, defined in DSNHDECP. Class 1 provides information about system services and database statistics. Class 3 provides information about deadlocks and time-outs. SMF record type 102 should be defined. It does not allow a precision greater than 15 digits.
0 819 ASCII
SMFSTAT
1,3
DECARTH DECIMAL
DEC15 . (period)
Recommended DB2 system parameters The recommended DB2 parameters are also listed under SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964. Invalid parameters in DB2 V6 The following parameters are no longer valid in DB2 Version 6:
ALPOOLX INBUFF OJPERFEH
49
Recommended IRLM parameters These values are defined in the IRLM start procedure:
Table 14. Highly recommended IRLM parameters
Parameter PC
Value Yes
Recommended value Yes puts the lock control block structure in the IRLM private address space, and the program call instruction is used to address to the structure. 5 specifies the local deadlock detection cycle. 1 specifies the number of local deadlock cycles that must expire before the IRLM performs global deadlock detection processing. This is used only for data sharing.
DEADLOK
5,1
Bufferpools allocation Table 15 shows the recommended DB2 bufferpool settings for SAP BW tablespaces, indexes, work files, and DB2 system databases.
Table 15. Recommended DB2 bufferpool allocation
Buffer pool BP0 (system) BP1 (work files) BP2 (4 KB tablespaces) BP3 (index spaces) BP4 (VB protocol) BP32K (tablespaces)
VPSEQT 50 100 50 40 10 50
DWQT 50 70 30 30 70 30
VDWQT 10 50 5 5 50 5
HPSEQT
CASTOUT
50 40
YES YES
50
YES
We recommend that you allocate BP0 as 5000 because the SAP BW application uses dynamic SQL, and because a large number of DB2 objects will be created.
50
Field DATABASE TABLES COLUMNS VIEWS TABLESPACES PLANS PLAN statements PACKAGES PACKAGE statements PACKAGE lists EXECUTED statements TABLES in statement TEMP 4 KB SPACES TEMP 4 KB data sets TEMP 32 KB SPACES TEMP 32 KB data sets
Standard SAP recommended values 7000 3 20 1 1 100 30 200 30 2 30 2 See 4.11.2, DB2 temporary database (DSNDB07) on page 58 See 4.11.2, DB2 temporary database (DSNDB07) on page 58 40 MB 2
51
52
LOGCOPY 1
LOGCOPY 2
DS01 DS03
DS02 DS04
DS01 DS03
DS02 DS04
Note the following recommendations: Use tape for archiving log data sets. Use dual logging and dual archiving. Do not share volumes on which DB2 log data sets reside with other highly active data sets. Turn on the DASD Fast Write feature if possible. Add as much non-volatile storage (NVS) as you can afford.
53
User ID SAPR3
Remarks Some privileges are granted during R3SETUP automatically. But we recommend you grant SAPR3 as DB2 SYSADM. These are granted during R3SETUP automatically. If you use different a user ID under which the ICLI Server runs, you have to grant the required privileges to the new user ID manually.
ICLIRUN
R3SETUP creates the bind and grant JCL with defaults, provides an opportunity to modify the defaults, and then submits the jobs. If you look at member SYS1.SAMPLIB(FOME45BG), you will see what kind of privileges and authorizations are granted during the installation process. Do not change the original job because the R3SETUP installation step needs the original version of the job. Instead, adapt a copy of the FOME45BG job to your requirements.
54
At maintenance (delta update or aggregation) Sometimes the SAP BW system generates new DB2 objects that did not exist at data loading, delta updating, and so on. However, DB2 database administrators may not notice this, and therefore, they may not run the RUNSTATS utility for these new objects. This can result in the DB2 optimizer building less than optimal access paths with old statistical information about the data when you run analytical queries.
To avoid this situation, we strongly recommend that you build procedures using REXX, COBOL, or any other language that builds RUNSTATS jobs by querying the DB2 catalog.
55
UPDATE SYSIBM.SYSTABLES SET CARDF=50, NPAGES=10 WHERE CREATOR = 'SAPR3' AND TYPE='T' AND NPAGES <= 10; UPDATE SYSIBM.SYSTABLESPACE SET NACTIVE=10 WHERE CREATOR = 'SAPR3' AND NACTIVE <= 10; UPDATE SYSIBM.SYSTABSTATS SET CARD=50, NPAGES=10 WHERE OWNER = 'SAPR3' AND TSNAME IN (SELECT NAME FROM SYSIBM.SYSTABLESPACE WHERE CREATOR='SAPR3' AND NACTIVE <= 10) ; UPDATE SYSIBM.SYSINDEXES SET CLUSTERRATIO=0, FIRSTKEYCARDF=-1, FULLKEYCARDF=-1, NLEAF=-1, NLEVELS=-1 WHERE TBCREATOR = 'SAPR3' AND TBNAME IN (SELECT NAME FROM SYSIBM.SYSTABLES WHERE CREATOR='SAPR3' AND TYPE='T' AND NPAGES <= 10) ; UPDATE SYSIBM.SYSCOLUMNS SET COLCARDF=-1, HIGH2KEY='', LOW2KEY='' WHERE TBCREATOR='SAPR3' AND TBNAME IN (SELECT NAME FROM SYSIBM.SYSTABLES WHERE NPAGES <= 10); DELETE FROM SYSIBM.SYSCOLDIST WHERE TBOWNER = 'SAPR3' AND TBNAME IN (SELECT NAME FROM SYSIBM.SYSTABLES WHERE CREATOR='SAPR3' AND TYPE='T' AND NPAGES <= 10) ;
56
In order to ensure that the cluster tables are accessed properly the catalog statistics for the cluster tables need to be maintained as shown Figure 13.
update sysibm.systables set npages=100, cardf=1000 where creator='SAPR3' and name in ( select tabname from sapr3.ddntt where tabform='T' and tabtype='C' with ur) ; update sysibm.sysindexes set clusterratio=100, fullkeycardf=1000 where tbcreator='SAPR3' and uniquerule='P' and tbname in ( select tabname from sapr3.ddntt where tabform='T' and tabtype='C' with ur) ;
Figure 13. Sample SQL statements for updating catalog statistics for cluster tables
If deadlocks occur even after catalog update, consider further updates as shown in Figure 14.
update sysibm.sysindexes set clusterratio=100, firstkeycardf=1000, fullkeycardf=1000 where tbcreator='SAPR3' and uniquerule='P' and tbname in ( select tabname from sapr3.ddntt where tabform='T' and tabtype='C' ) ; update sysibm.syscolumns set colcardf=1000 where tbcreator='SAPR3' and keyseq=1 and and tbname in ( select tabname from sapr3.ddntt where tabform='T' and tabtype='C' ) ;
Figure 14. Sample SQL statements to avoid deadlock
Monitor your system carefully in order to detect if these catalog changes adversely affect some access paths on the cluster tables. We recommend that you refer to the latest documentation of SAP; it is available as PDF files at:
http://www.s390.ibm.com/os390/bkserv/latest.html
57
4.11.1 Reorganization
After installation and testing, some data sets (most of them are index spaces) have more than 20 extents (in extreme cases, they can have more than 100 extents), because the secondary space defined by SAP is too small. Therefore, we recommend that you run the DB2 reorganization utility for those indexes (or data sets) in order to achieve better extent management and to prevent possible extension errors.
58
59
Installation activities Pre-installation: data gathering Pre-installation: system check Pre-installation: final preparations SAP BW installation Completing the installation SAP R/3 Plug In installation
Reference item description DB2/390: Installing saposcol manually DB2/390: 4.5A Installation on UNIX or WinNT Installation/copying client 000 in the BW System
60
Reference item Note 118901 Note 121067 Note 135873 Note 137480 Note 142990 Note 144978 Note 149473 Note 149686 Note 154342 Note 165121 Note 165122 Note 169100 Note 175534 Note 176616 Note 178376 Note 187537 Note 197240 Note 77589 Note 81737
Reference item description DB2/390: Transports for 4.5A Help for BW notes Additional info on installation BW-BCT 1.2B INST: 4.5B R/3 Inst. on UNIX - OS Dependencies INST: 4.5B R/3 Installation on UNIX Your system has not been installed correctly SAP R/3 4.5B Installation on UNIX and Windows NT Known problems when applying BW patches Applying BW Patch with SPAM leads to error TW103 BW Translation error BW Translation error DB2/390: BW Rel. 1.2B SR1 Installation on UNIX or NT Large BW Systems and Performance of Aggregate build BW Statistics Problems w/ user exit variables with BW12B patch 12 SAPBWNews for BW 1.2B Support Package 16 SAP BW 1.2B performance patches DB2/390: tp profile parameters in TPPARAM APAR List for SAP R/3 on DB2 for OS/390
61
62
on the AIX or NT Application Server (AIX, TCPIP, NFS/mounts, etc.). The information necessary to configure these components is found in: SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964 SAP R/3 on DB2 for OS/390: Connectivity Guide, SC33-7965 R/3 Installation on UNIX OS Dependencies , Material Number 51005979 In addition, the manual R/3 Installation on UNIX DB2 for OS390, Release 4.5B, Material Number 51006375 may prove to be useful since installing SAP R/3 is nearly identical to installing SAP BW. We found that R3SETUP looks for adequate free disk space during the installation, and we were forced to make the changes before continuing with R3SETUP. The file system sizes we used for the redbook project are contained in Table 21:
Table 21. AIX file system layout
File system/directory name /sapmnt/<sid> /usr/sap/<sid> /usr/sap/trans /tmp/install directory for Export CD copy
At this time you should verify that all software maintenance is current or at least equal to the minimum information contained in Note 81737. Always obtain the most recent copy of Note 81737, as the information changes regularly. Dont forget to install the German language fileset on the AIX Application Server. While we have not been able to find a written requirement for this, we have found nonetheless that it is necessary. You can check this with the AIX command locale -a, and then look for the two languages in Table 22.
Table 22. AIX language filesets
63
Now apply the remaining information from the data gathered in 5.2, SAP BW pre-installation: data gathering on page 60.
R3SETUP variable name SAP BW system name SAP BW system number SAP BW installation directory SAP BW global directory SAP BW CD-ROM location (on application server) Message Server port number (3600 + SAP system #) R/2 Gateway Sysplex Failover (yes or no) Sysplex Failover Hostname Sysplex Failover Port # Pass Tickets (yes or no) DB2 subsystem name DB2 Group Attach name DBServer hostname OS/390 UNIX
Your value
no no
no DBH1
wtsc62oe
64
R3SETUP variable name DBServer hostname - FTP & Telnet DB2 plan name for ICLI server DB2 load library name DB2 runlib library name DB2 Usercat name for BW data JES held job class ICLI port number User ID for ICLI Server User ID for ftp to OS/390 (uid=0 & DB2 sysadm) OS/390 ICLI code location SAPOSCOL install (yes for now, no for later) SAPOSCOL destination (RFC destination name) SAPOSCOL gw host (hostname gw service runs on) SAPOSCOL gw service (from /etc/services) SAPOSCOL code directory in OS/390 Open Edition (any OS/390 UNIX directory)
Our value wtsc62 FOMEP45B DSN610.LOADLIB DB2V6H1.RUNLIB SAPBW X 33377 ICLIBLU BLUADM SYS1.FOMEDATA no BWBLU erprisc1
Your value
sapgw00 /u/<sid>/SAPOSCOL
It is also necessary to know how to code a jobcard for a batch job. If you do not know the format of your organizations job card, ask your system programmer to print you a hardcopy. The final preparation activity is to draw a diagram of your entire SAP BW environment. Such a diagram is useful to refer to both during R3SETUP and
65
later as a record of your installation. If feasible, ask the project team to review it; this gives them an opportunity to see the entire system at a glance.
See 5.5.4, R3SETUP problem solving on page 68 for a few ideas on where to turn if you should encounter problems during installation. In addition, do not forget about the files that can be used for debugging (and the parameters that turn them on and off). Some of these files are listed in Table 24.
Table 24. Debugging file and locations
Created by/location See environment variable ICLI_TRACE_LEVEL See ICLI STC or script SDSF
66
The command we entered to start the SAP BW Database Server installation was: ./R3SETUP -f DBBW.R3S Keep in mind that the installation of SAP products via R3SETUP and INSTGUI is an interactive and iterative process. The GUI interface provided by SAP prompts you to enter installation configuration information, and will probably be stopped and restarted several times. Dont get frustrated if this happens more than you expected. It merely suggests that you probably could have spent more time preparing for the installation. Additionally, there are a few tips in 5.5.4, R3SETUP problem solving on page 68 to help you with this task.
67
Note: SAP recommends that you do not modify the installation log files unless you know exactly what you are doing. Be sure that you are comfortable performing a reinstallation from the beginning if you should happen to do this incorrectly or inadvertently.
Possible solution Check spelling, punctuation, and capitalization (e.g. ./R3SETUP -f CENTRAL.R3S e.g. ./R3SETUP -f DBBW.R3S) Find someone familiar with exporting the display. See if you can run without the INSTGUI. Was the DECHDECP module linked with all of the parms in the planning guide? Does ping work? Does traceroute follow the correct path? Are ICLI and DB2 started? Look up ICLI messages in Appendix E of the SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B. Did you make the correct authorizations? Does TPPARAM have the required entries? Is the TP_DOMAIN_<SID> file correct? Is the problem with R3trans or tp? Search for SAP Notes. Ftp the jobs to OS/390 and manually run them from there. Dont forget to update the STATUS field in the R3SETUP.R3S file to the value OK. Check the JES2 parm SWA=ABOVE for STC. Ask BASIS team or consulting partner to assist and request customer IDs. Ask BASIS team or consulting partner to assist and request customer IDs.
68
Problem encountered Not sure what the problem is SAPGUI - incorrect installation message
Possible solution Check OS/390 UNIX file systems (df -k). Check AIX file systems (df -k). Check contents of table INSTVERS; if there are two rows with the same timestamp, change the second entry timestamp to be 1 second later; save your changes. Check SAPNet R/3 Frontend for notes.
Values Set default language to English. Set default start menu to SAP BW Administrator Workbench. See Note 156957. See Note 156957. See Note 25528.
Stop SAP BW and restart it to activate your profile changes. Initialize the transport environment via SE06 and STMS. SAP provides information on how to do this in the online documentation CD-ROM. Log on as SAP* & Client 000 and use transaction SE06 to initialize your SAP BW environment as a single system environment (or multi, if you know your landscape). Activate your system via transaction STMS. Apply the SPAM update that is available for your SAP BW 1.2B BASIS kernel level (ours was 4.5B). At this point you are able to apply the mandatory transports that are described in the SAP Notes. Start the application of SAP BW Support Patches. Since our version of SAP BW was 1.2B with SR1, the next Support Patch to be added started with number nine and ended with
69
number seventeen. You can check the level of SPAM and applied Support Packages on your system via transaction SPAM. Fill out the paperwork to request a license from SAP. This takes only a few minutes and is best done as soon as possible. Fax the form to the SAP number that is pre-printed on the form. SAP is quite speedy and will probably have a response to your license request within 24 hours. Start a client copy of client 000 to client 100, and choose the profile SAP_ALL. Now its time to run backups. Create JCL to perform OS/390 Full Volume Dumps of all volumes, and also scheduled tape backups of your AIX Application Server.
BW DB2 UDB OS/390 object type Storage groups Databases Tablespaces Tables Indexes AIX BW disp+work patch level
Number of objects 16 2201 2201 4164 4459 July 30, 1999 patch number 156 DBSL patch number 151
70
R/3 DB2 UDB OS/390 object type Storage groups Databases Tablespaces Tables Views Indexes AIX R/3 disp+work patch level
Number of objects 24 7348 7348 16438 3776 19,210 July 30, 1999 compile date patch number 156 with DBSL patch number 151
5.6.3 SAPGUI/BWGUI
Prior to installing the SAP Frontend software for PCs and the Business Explorer, you have to check the SAPNet R/3 Frontend notes for available patches. The patches for Business Explorer will be delivered cumulatively, which is different from the normal patch process. You only have to apply the latest patch. To apply a patch means that you have to replace some files on the installation disk. We recommend that you copy the CD-ROM to a hard disk first and then replace the files as described in the SAPNote that refers to the patch. Then you may proceed like you would in a normal installation. Note: You need to select both the SAPGUI and BW Add-ons during the installation of the SAPGUI from the presentation CD-ROM. It is required that you install MS Excel before installing the software for Business Explorer. Ensure that all possible options are installed for MS Excel.
71
Be very attentive to notes that refer to BW patch installation. Failure to import the packages according to the documented procedure will result in many hours of recovery activities and possibly a reinstallation of the code. An example of this is that the SPAM version delivered on the SR1 Release is 4.5B/0000. The latest SPAM that we applied updated the SPAM version to 4.5B/0004 (and it was the same patch number - SAPKD00027). The latest Business Explorer patch applied was number nine, and is described in SAP Note 0190332.
72
Our value
Your value
73
PlugIn variable name <SID> mount point procedure directory kernel path instance name instance number CI host name DBServer host name Database <SID> mount directories # of processes language help R3startup profile name profile path/name WHT
Our value
Your value
/sapcd/PIA9945b /home/whtadm /usr/sap/WHT/SYS/exe/run WHT 01 erprisc2 WTSC62F WHT /sapcd/PIA9945b option 1 E START_DVEBMGS01_erp risc2 /usrp/sap/WHT/SYS/profile WHT/DVEBMGS01_erpris c2 /usr/sap/WHT/SYS/profile DEFAULT.PFL 19920706 erprisc2 60 (default) NONE import /sapcd/PIA9945b salamanca LOCK
default profile/name DDIC password batch server host name synch. time other software start import mount point R/3 keyword lock dev environment
74
75
Useful URLs Part 1 service.sap.com service.sap.com/bw service.sap.com/ocs-download service.sap.com/instguides service.sap.com/notes sapserv3 / sapserv4 / sapservx
What it is SAPNet R/3 Frontend Home Page SAP BW Home Page SAP Download Home Page SAP Installation and Reference Guides SAPNet R/3 Frontend Notes Search SAP Anonymous FTP Servers
76
The URLs listed in Table 32 are available via the public Internet.
Table 32. Useful URLs - Public
What it is SAP Home Page SAP BW home Page IBM S390 service IBM RS6000 service IBM NT service IBM ERP Solutions
77
78
79
To run the jobs on OS/390 successfully, you have to adapt some Profile Parameters with the help of transaction DB2J. For more information, see Chapter 4 in BC SAP Database Administration Guide: DB2 for OS/390, 51003810.
Table 33. TP parameters for JCL submitted with FTP out of SAP R/3
Profile Parameters DB2 run library MGMTCLAS, STORCLAS, DATACLAS(SMS) Volume count Partitioned data set Console -> Console output data set
Description Library that contains DSNTIAD. Optional parameters. If not specified, the defaults of the corresponding SMS ACS routine are used. Overwrites the value defined in DATACLAS, if needed. Existing partitioned data set for uploading OS/390 jobs. Sequential data set for receiving the required part of the System Log. It must exist and will be overwritten by the next request. The format must be: Organization: PS Record format: VB Record length: 133 Block size: 27930
80
81
82
83
target tabstrip and selected Only ODS.) After clicking the Schedule tabstrip we started the load. To improve performance we changed the parameter IDocsSize from 10,000 to 100,000. You may gain improvements in overall runtime, if you load the data in parallel. To achieve this you may have to add more batch processes on the application server or may consider to add another application server for this task.
84
Note: You have to allocate a sufficient amount of DB2 work space for rebuilding the indexes. We used a dedicated bufferpool in DB2 for the DB2 work space Consider also running these updates in parallel, in which case you should switch off the automatic index rebuild (see Chapter 6, Managing SAP BW database on page 79) and start it manually after the updates. You might also have to add more application servers and batch processes.
85
Our observation was that the amount of improvement depends on the number of selected rows in the fact table. One test case showed no difference in query performance. However, in another test where we selected roughly twice as many rows as in the first case, we saw an improvement of one-third in runtime. Keep in mind that Star Join might have an adverse effect on the performance of other queries, so it is up to you to decide whether to use it or not.
86
87
88
89
to satisfy a given query. To demonstrate this, run an aggregate job or a query against tables that have never had RUNSTATS run against them. We did this and saw differences in runtime of factors of 50 and more. DB2 Version 6 offers you new functions to do the RUNSTATS automatically, along with reorgs and table loading. You absolutely should use that option. A consequence for sizing considerations obviously is that all values for database size, CPU consumptions, network traffic and, of course, elapsed times are not comparable with other installations. In addition, during our studies we received some code changes for the BW application that decreased runtimes significantly. For these reasons, we do not supply here any absolute results of runtimes or resource consumption because such results would have no meaning for you; you would not be able to use them to predict reliable results for your existing or any planned environment.
90
We changed the DB2 subsystem as little as possible and all definitions are as recommended by SAP. The settings can be found in the Appendix B, DB2 Installation parameters on page 97.
91
At this point you may have to estimate these values because you do not know all possible users in your company, or whether they will like the application and how they will use it. The tools will give you values that will not be exactly right for you, but they should not be too far off, as long as you do not deviate from the standards and the defaults of SAP BW. There are tools available to do that. They are not all available for customer use but IBM or SAP can help you by running them in the pre-installation phase and providing you with the results. At the end of this phase you can order the product and the hardware you need to run it, at least for the next phase.
92
8.2.4 Running BW
Even in this phase (which is probably neverending) you may see changes (not necessarily always growth) in the amount of data being stored, or changes in the CPU consumption and elapsed time, but you will have gained experience during the earlier phases on how the growth of data impacts these factors. If your measurements were sufficient, you will even be able to predict these impacts. The reason for the ongoing administration is that a BW application is subject to continuously changing queries since the market and the data from which strategic decisions are to be derived are continuously changing as well. As a consequence, the tuning of a BW application is really an ongoing process. You may decide to have one or more people exclusively responsible for BW administration. The value of the system is only as good as the results obtained, which obviously depends primarily on the quality of the queries. Good administration will guarantee that you get your results quickly and that they are most nearly actual, and that you can easily retrieve most results for the end user (who could be one of your business managers looking for data to use as a basis for an important decision).
93
94
95
96
B.1 DSNZPARM
//DBH1E JOB (999,POK),'DBH1 INSTALL',CLASS=A,MSGCLASS=T, // NOTIFY=HAIMO,TIME=1440,REGION=0M /*JOBPARM L=9999,SYSAFF=SC62 //*********************************************************************/ //* JOB NAME = DSNTIJUZ */ //* */ //* DESCRIPTIVE NAME = INSTALLATION JOB STREAM */ //* */ //* LICENSED MATERIALS - PROPERTY OF IBM */ //* 5645-DB2 */ //* (C) COPYRIGHT 1982, 1998 IBM CORP. ALL RIGHTS RESERVED. */ //* */ //* STATUS = VERSION 6 */ //* */ //* FUNCTION = DSNZPARM AND DSNHDECP UPDATES */ //* */ //* PSEUDOCODE = */ //* DSNTIZA STEP ASSEMBLE DSN6.... MACROS, CREATE DSNZPARM */ //* DSNTIZL STEP LINK EDIT DSNZPARM */ //* DSNTLOG STEP UPDATE PASSWORDS */ //* DSNTIZP STEP ASSEMBLE DSNHDECP DATA-ONLY LOAD MODULE */ //* DSNTIZQ STEP LINK EDIT DSNHDECP LOAD MODULE */ //* DSNTIMQ STEP SMP/E PROCESSING FOR DSNHDECP */ //* */ //* NOTES = STEP DSNTIMQ MUST BE CUSTOMIZED FOR SMP. SEE THE NOTES */ //* NOTES PRECEDING STEP DSNTIMQ BEFORE RUNNING THIS JOB. */ //* */ //*********************************************************************/ //* //DSNTIZA EXEC PGM=ASMA90,PARM='OBJECT,NODECK' //SYSLIB DD DISP=SHR, // DSN=DSN610.SDSNMACS // DD DISP=SHR, // DSN=SYS1.MACLIB //SYSLIN DD DSN=&&LOADSET(DSNTILMM),DISP=(NEW,PASS), // UNIT=SYSALLDA, // SPACE=(800,(50,50,2)),DCB=(BLKSIZE=800) //SYSPRINT DD SYSOUT=*
97
SYSOUT=* UNIT=SYSALLDA,SPACE=(800,(50,50),,,ROUND) UNIT=SYSALLDA,SPACE=(800,(50,50),,,ROUND) UNIT=SYSALLDA,SPACE=(800,(50,50),,,ROUND) * MVS=XA RESTART, ALL, ABEXP=YES, ABIND=YES, AUTH=YES, AUTHCACH=1024, BINDNV=BINDADD, BMPTOUT=4, CACHEDYN=YES, CACHEPAC=32768, CACHERAC=32768, CATALOG=DB2V61H1, CDSSRDEF=1, CHGDC=NO, CONTSTOR=YES, <-- WAS NO DECDIV3=NO, DEFLTID=IBMUSER, DESCSTAT=NO, DLITOUT=6, DSMAX=6000, <-- WAS 3000 EDMPOOL=80000, <-- WAS 14812 EDMDSPAC=0, EDPROP=NO, HOPAUTH=BOTH, IRLMAUT=YES, IRLMPRC=IRH1PROC, IRLMSID=IRH1, IRLMRWT=600, <-- WAS 60 IRLMSWT=300, LEMAX=20, MAXRBLK=100000, <-- WAS 4000 MAXKEEPD=16000, <-- WAS 5000 NPGTHRSH=10, <-- WAS 10000 NUMLKTS=1000, NUMLKUS=0, <-- WAS 10000 OPTHINTS=NO, PARAMDEG=0, RECALL=YES, RECALLD=120, RELCURHL=YES, RETLWAIT=0,
98
DSN6ARVP
DSN6LOGP
RETVLCFK=NO, RGFCOLID=DSNRGCOL, RGFDBNAM=DSNRGFDB, RGFDEDPL=NO, RGFDEFLT=ACCEPT, RGFESCP=, RGFFULLQ=YES, RGFINSTL=NO, RGFNMORT=DSN_REGISTER_OBJT, RGFNMPRT=DSN_REGISTER_APPL, RRULOCK=NO, SEQCACH=BYPASS, SEQPRES=NO, SITETYP=LOCALSITE, SRTPOOL=1000, STARJOIN=DISABLE, <-- or ENABLE SYSADM=HAIMO, SYSADM2=HAHN, SYSOPR1=SYSOPR, SYSOPR2=SYSOPR, TRKRSITE=NO, UTIMOUT=3, <-- WAS 6 DEFAULT XLKUPDLT=YES <-- WAS NO APAR PQ18915 ALCUNIT=BLK, ARCWRTC=(1,3,4), ARCWTOR=YES, ARCPFX1=DB2V61H1.ARCHLOG1, ARCPFX2=DB2V61H1.ARCHLOG2, ARCRETN=9999, BLKSIZE=28672, CATALOG=NO, COMPACT=NO, PRIQTY=1234, PROTECT=NO, QUIESCE=585, <-- WAS 5 SECQTY=154, TSTAMP=NO, UNIT=3390, UNIT2= DEALLCT=(0), MAXARCH=1000, MAXRTU=2, OUTBUFF=4000, TWOACTV=YES, TWOARCH=YES, WRTHRSH=20, ARC2FRST=NO
99
DSN6SYSP
DSN6FAC
AUDITST=NO, BACKODUR=5, CONDBAT=64, CTHREAD=120, <-- WAS 70 DBPROTCL=DRDA, DLDFREQ=5, DSSTIME=5, EXTRAREQ=100, EXTRASRV=100, IDBACK=20, IDFORE=40, IDXBPOOL=BP0, LBACKOUT=AUTO, LOBVALA=2048, LOBVALS=2048, LOGAPSTG=10, LOGLOAD=50000, MAXDBAT=64, MON=NO, MONSIZE=1000000, <-- WAS 8192 PCLOSEN=5, PCLOSET=10, RLF=NO, RLFTBL=01, RLFERR=NOLIMIT, RLFAUTH=SYSIBM, ROUTCDE=(1), EXTSEC=NO, SMFACCT=(1,2,3), <-- WAS 1 SMFSTAT=(1,3), <-- WAS YES STATIME=30, STORMXAB=0, STORPROC=DBH1SPAS, STORTIME=180, TBSBPOOL=BP0, TRACSTR=NO, TRACTBL=16, URCHKTH=1, <-- WAS 0 WLMENV= DDF=AUTO, CMTSTAT=ACTIVE, IDTHTOIN=0, RESYNC=2, RLFERRD=NOLIMIT, TCPALVER=NO, MAXTYPE1=0, TCPKPALV=ENABLE,
100
DSN6GRP
END //********************************************************************* //* LINK EDIT THE NEW DSNZPARM MEMBER. PUT LOAD MODULE IN SDSNEXIT. //********************************************************************* //DSNTIZL EXEC PGM=IEWL,PARM='LIST,XREF,LET,RENT', // COND=(4,LT) //ADSNLOAD DD DISP=SHR, // DSN=DSN610.SDSNLOAD // DD DISP=SHR, // DSN=DSN610.ADSNLOAD //SYSPUNCH DD DSN=&&LOADSET(DSNTILMM),DISP=(OLD,DELETE) //SYSLMOD DD DISP=SHR, // DSN=DB2V61H1.SDSNEXIT //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSUT1 DD UNIT=SYSALLDA,SPACE=(1024,(50,50)) //SYSLIN DD * INCLUDE SYSPUNCH(DSNTILMM) INCLUDE ADSNLOAD(DSNZPARM) ORDER DSNAA INCLUDE ADSNLOAD(DSNAA) INCLUDE ADSNLOAD(DSNFSYSP) INCLUDE ADSNLOAD(DSNJARVP) INCLUDE ADSNLOAD(DSNJLOGP) INCLUDE ADSNLOAD(DSNTSPRM) INCLUDE ADSNLOAD(DSNVDIR1) INCLUDE ADSNLOAD(DSNZMSTR) INCLUDE ADSNLOAD(DSN3DIR1) INCLUDE ADSNLOAD(DSN7GRP) ENTRY DSNZMSTR NAME DSNZPARM(R) //* //* CHANGE LOG INVENTORY: //* UPDATE BSDS //* //DSNTLOG EXEC PGM=DSNJU003,COND=(4,LT) //STEPLIB DD DISP=SHR,DSN=DSN610.SDSNLOAD //SYSUT1 DD DISP=OLD,DSN=DB2V61H1.BSDS01 //SYSUT2 DD DISP=OLD,DSN=DB2V61H1.BSDS02 //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=*
101
//SYSIN DD * DDF LOCATION=DBH1,LUNAME=SCPDBH1, NOPASSWD,RESPORT=33367,PORT=33366 //* //********************************************************************* //* ASSEMBLE AND LINK EDIT DATA-ONLY LOAD MODULE DSNHDECP. //* THE FOLLOWING STEPS ARE NEEDED ONLY IF THE //* VALUES ARE CHANGED FROM THOSE WHICH ARE SHIPPED. //********************************************************************* //DSNTIZP EXEC PGM=ASMA90,PARM='OBJECT,NODECK',COND=(4,LT) //SYSLIB DD DISP=SHR, // DSN=DSN610.SDSNMACS //SYSLIN DD DSN=&&LOADSET(DSNHDECA),DISP=(NEW,PASS),UNIT=SYSALLDA, // SPACE=(80,(50,50,2)),DCB=(BLKSIZE=80) //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSUT1 DD UNIT=SYSALLDA,SPACE=(800,(50,50),,,ROUND) //SYSUT2 DD UNIT=SYSALLDA,SPACE=(800,(50,50),,,ROUND) //SYSUT3 DD UNIT=SYSALLDA,SPACE=(800,(50,50),,,ROUND) //SYSIN DD * DSNHDECM CHARSET=ALPHANUM, ASCCSID=819, <-- WAS 0 AMCCSID=65534, AGCCSID=65534, SCCSID=37, MCCSID=65534, GCCSID=65534, ENSCHEME=ASCII, <--WAS EBCDIC DATE=ISO, DATELEN=0, DECARTH=DEC15, DECIMAL=PERIOD, DEFLANG=IBMCOB, DELIM=DEFAULT, MIXED=NO, SQLDELI=DEFAULT, DSQLDELI=APOST, SSID=DBH1, STDSQL=NO, TIME=ISO, TIMELEN=0, DYNRULS=YES, LC_CTYPE=, COMPAT=OFF END //* //*********************************************************************
102
//* LINK EDIT DSNHDECP. * //* DSNHDECP IS A DATA-ONLY LOAD MODULE CONTAINING DEFAULT VALUES * //* REQUIRED BY DB2 AND APPLICATION PROGRAMS. * //* THIS STEP IS CREATED ONLY WHEN THE DEFAULTS SUPPLIED IN * //* DSNHDECP ARE NOT SUITABLE. * //********************************************************************* //DSNTIZQ EXEC PGM=IEWL,PARM='LIST,XREF,LET,RENT', // COND=(4,LT) //ADSNLOAD DD DISP=SHR, // DSN=DSN610.SDSNEXIT // DD DISP=SHR, // DSN=DSN610.ADSNLOAD //SYSPUNCH DD DSN=&&LOADSET(DSNHDECA),DISP=(OLD,DELETE) //SYSLMOD DD DISP=SHR, // DSN=DB2V61H1.SDSNEXIT //SYSPRINT DD SYSOUT=* //SYSUDUMP DD SYSOUT=* //SYSUT1 DD UNIT=SYSALLDA,SPACE=(1024,(50,50)) //SYSLIN DD * INCLUDE SYSPUNCH(DSNHDECA) ORDER DSNAA INCLUDE ADSNLOAD(DSNAA) INCLUDE ADSNLOAD(DSNARIB) INCLUDE ADSNLOAD(DSNHDECP) ENTRY DSNHDECP MODE AMODE(24),RMODE(24) NAME DSNHDECP(R)
//*
B.2 IRLMPROC
//IRH1PROC PROC RGN=5000K, // LIB='DSN610.SDXRRESL', // IRLMNM=IRH1, // IRLMID=1, // SCOPE=LOCAL, // DEADLOK='5,1', // MAXCSA=6, // PC=YES, // MAXUSRS=7, // IRLMGRP=, // LOCKTAB=, // TRACE=NO // EXEC PGM=DXRRLM00,DPRTY=(15,15), // PARM=(&IRLMNM,&IRLMID,&SCOPE,&DEADLOK,&MAXCSA,&PC, // &MAXUSRS,&IRLMGRP,&LOCKTAB,&TRACE),
103
104
105
106
107
108
The OS/390 system logger component manages log streams based on the policy information in the LOGR couple data set. The use of a primary and an alternate couple data set is recommended. You need to follow these steps to set up RRS: 1. Add subsystem entries to the SYS1.PARMLIB(IEFSSNxx): SUBSYS SUBNAME(LOGR) INITRTN(IXGSSINT) SUBSYS SUBNAME(RRS) - Issue the SETSSI command to dynamically define the new subsystem: SETSSI ADD,SUBNAME=RRS 2. Define the couple data set and activate the OS/390 system logger. Whether you are running in sysplex or monoplex mode, you have to define a couple data set and activate your system logger. a. Check whether the system logger is already active by issuing the following command from the SDSF panel: D LOGGER,CONN b. If the system logger is not active, define the LOGR couple data sets by using the JCL shown in Figure 24 on page 110. The IXCL1DSU utility formats LOGR, a couple data set.
109
//SAPADM1 JOB CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=BI390B //*********************************************************** //* SAMPLE JOB TO DEFINE LOGR COUPLE DATASET //*********************************************************** //STEP1 EXEC PGM=IXCL1DSU //SYSPRINT DD SYSOUT=* //SYSIN DD * DEFINEDS SYSPLEX(PLEX57) MAXSYSTEM(2) DSN(SYS1.PLEX57.LOGR01) VOLSER(PDGCD1) CATALOG DATA TYPE(LOGR) ITEM NAME(LSR) NUMBER(100) ITEM NAME(LSTRR) NUMBER(60) ITEM NAME(DSEXTENT) NUMBER(10) /*
Figure 24. Sample JCL to define an RRS LOGR couple data set
c. Modify the SYS1.PARMLIB(COUPLExx) member to add the couple data set definitions (see Figure 25).
/**********************************************/ /* SAMPLE SYS1.PARMLIB COUPLExx MEMBER */ /**********************************************/ COUPLE SYSPLEX(&SYSPLEX.) PCOUPLE(SYS1.XCF.CDS02) ACOUPLE(SYS1.XCF.CDS03) CLEANUP(30) RETRY(10) DATA TYPE(LOGR) PCOUPLE(SYS1.XCF.LOGR00) ACOUPLE(SYS1.XCF.LOGR01)
Figure 25. Sample couple data set definition
d. To activate the system logger, you can IPL the system. If you want to bring the LOGR couple data sets online without re-IPLing the system, issue the following SETXCF commands: SETXCF COUPLE,TYPE=LOGR,PCOUPLE=(primary_couple_data_set)
110
SETXCF COUPLE,TYPE=LOGR,ACOUPLE=(alternate_couple_data_set) 3. Set up the RRS log streams. a. Ensure that the system logger is already active by issuing the command: D LOGGER,CONN b. Define the log streams for RRS using the sample JCL shown in Figure 26 on page 112. The IXCMIAPU utility adds, updates, lists, or deletes policy data on the LOGR couple data set.
111
//BI390B JOB CLASS=A,MSGCLASS=X,MSGLEVEL=(1,1),NOTIFY=BI390B //*********************************************************** //* SAMPLE JCL TO DEFINE LOGSTREAMS FOR RRS //*********************************************************** //LOGRPOL EXEC PGM=IXCMIAPU //STEPLIB DD DSN=SYS1.MIGLIB,DISP=SHR //SYSPRINT DD SYSOUT=* //SYSABEND DD SYSOUT=* //SYSIN DD * DATA TYPE(LOGR) REPORT(YES) DELETE LOGSTREAM NAME(IXGLOGR.PLEX57.ARCHIVE) DELETE LOGSTREAM NAME(IXGLOGR.PLEX57.RM.DATA) DELETE LOGSTREAM NAME(IXGLOGR.PLEX57.MAIN.UR) DELETE LOGSTREAM NAME(IXGLOGR.PLEX57.DELAYED.UR) DELETE LOGSTREAM NAME(IXGLOGR.PLEX57.RESTART) DEFINE LOGSTREAM NAME(ATR.PLEX57.ARCHIVE) DASDONLY(YES) HLQ(LOGR) MODEL(NO) LS_SIZE(1024) STG_SIZE(1024) LOWOFFLOAD(0) HIGHOFFLOAD(80) RETPD(15) AUTODELETE(YES) DEFINE LOGSTREAM NAME(ATR.PLEX57.RM.DATA) DASDONLY(YES) HLQ(LOGR) MODEL(NO) LS_SIZE(1024) STG_SIZE(1024) LOWOFFLOAD(0) HIGHOFFLOAD(80) RETPD(15) AUTODELETE(YES) DEFINE LOGSTREAM NAME(ATR.PLEX57.MAIN.UR) DASDONLY(YES) HLQ(LOGR) MODEL(NO) LS_SIZE(1024) STG_SIZE(1024) LOWOFFLOAD(0) HIGHOFFLOAD(80) RETPD(15) AUTODELETE(YES) DEFINE LOGSTREAM NAME(ATR.PLEX57.DELAYED.UR) DASDONLY(YES) HLQ(LOGR) MODEL(NO) LS_SIZE(1024) STG_SIZE(1024) LOWOFFLOAD(0) HIGHOFFLOAD(80) RETPD(15) AUTODELETE(YES) DEFINE LOGSTREAM NAME(ATR.PLEX57.RESTART) DASDONLY(YES) HLQ(LOGR) MODEL(NO) LS_SIZE(1024) STG_SIZE(1024) LOWOFFLOAD(0) HIGHOFFLOAD(80) RETPD(15) AUTODELETE(YES)
112
Note
In the previous sample, the RRS log streams are defined on DASD only. If you plan to use RRS across a sysplex environment, you must define the RRS log streams in the Coupling Facility. Review the parameters accordingly. 4. Establish the priority of the RRS address space. The priority of RRS should be higher than other resource managers, such as DB2, CICS, and IMS, and lower than JES and VTAM. 5. Define the RRS subsystem. a. Create the RRS started task procedure, shown in Figure 27, in the SYS1.PROCLIB(RRS).
//RRS PROC GNAME='',CTMEM='' //******************************************************************** //* SAMPLE RRS STARTED TASK PROCEDURE //******************************************************************** //* //* o GNAME=rrsgroupname //* o CTMEM=ctracemembername //* //* Examples of valid parameter strings: //* //* PARM='GNAME=PLEX1 CTMEM=CTIRRS00' //* PARM='CTMEM=CTIRRS00 GNAME=PLEX1' //* PARM='GNAME=PLEX1 ' //* PARM=' CTMEM=CTIRRS00 ' //* //********************************************************************* //RRS EXEC PGM=ATRIMIKE,REGION=0M,TIME=NOLIMIT, // PARM='GNAME=&GNAME CTMEM=&CTMEM' //
Figure 27. Sample RRS started task procedure
6. Start RRS by entering the following command from SYSLOG: START RRS,SUB=MSTR If you need to stop RRS, you can use the SETATRRS CANCEL or FORCE RRS,ARM commands.
113
Automatically activate RRS To activate RRS automatically at each IPL, add the START RRS command in the SYS1.PARMLIB(COMMNDxx) member.
COM=START RRS
114
115
On ESCON interfaces, the ESS emulates one or more IBM 3990 control units attaching variable size IBM 3390 devices in either 3390 or 3380 track format. The ESS provides multiple ESCON interfaces that provide a set of control unit images, each with multiple disk devices. The storage provided by the ESS for ESCON interfaces is configured so that it is accessible from any ESCON interface. The ESS is composed of the following components: The storage server is composed of two clusters that provide the facilities with advanced functions to control and manage data transfer. Should one cluster fail, the remaining cluster can take over the functions of the failing cluster. A cluster is composed of the following subcomponents: Host Adapters - Each cluster has one or more host adapters (HAs). Each host adapter provides one or more host I/O interfaces. A host adapter can communicate with either cluster complex. Device Adapters - Each cluster has one or more device adapters (DAs). Each device adapter provides one or more storage device interfaces. Disk drives are attached to a pair of device adapters, one in each cluster, so that the drives are accessible from either cluster. At any given time, a disk drive is managed by only one device adapter. Cluster Complex - The cluster complex provides the management functions for the ESS. It consists of cluster processors, cluster memory, cache, nonvolatile storage (NVS), and related logic. Cluster Processor - The cluster complex contains four cluster processors (CP) configured as symmetrical multiprocessors (SMP). The cluster processors execute the licensed internal code that controls operation of the cluster. Cluster memory/cache - This is used to store instructions and data for the cluster processors. The cache memory is used to store cached data from the disk drives. The cache memory is accessible by the local cluster complex, by device adapters in the local cluster, and by host adapters in either cluster. Nonvolatile storage (NVS) - This is used to store a nonvolatile copy of active written data. The NVS is accessible to either cluster-processor complex and to host adapters in either cluster. Data may also be transferred between the NVS and cache. Disk Drives - These provide the primary nonvolatile storage medium for any host data stored within the ESS Storage devices. They are grouped into ranks and are managed by the clusters.
116
As a member of the IBM Seascape family, the ESS provides the outboard intelligence required by SAN solutions, offloading key functions from host servers, which frees up valuable processing power for applications. As a comprehensive SAN-based storage solution, the ESS provides considerable management flexibility to meet the fast-paced requirements of the next century. Among the many factors that make the IBM ESS an ideal solution are: Support of all major server platforms including S/390, AS/400, Windows NT, and many varieties of UNIX Fiber channel attachment capability Extensive storage management capabilities through a Web interface used to manage the ESS logical configuration Excellent scalability: - From 400 GB to over 11 TB - Simple selection from 16 standard configurations to meet capacity and performance needs Performance optimized to your heterogeneous environment needs: - High bandwidth and advanced transaction processing capabilities provide solutions for both online and batch applications - Innovations such as Parallel Access Volumes to reduce resource contention and dramatically improve performance through the elimination or reduction of IOSQ for single-host environments - Multiple allegiance, which allows you to dramatically reduce or eliminate IOSQ time for a multiple-host environment - Performance-enhanced CCW commands - I/O priority queuing, which allows users to define the priority of application workloads - Custom volumes, which allows you to create your own custom-sized logical volumes Availability required to support e-business applications - Business continuity through remote copy services - PPRC and XRC - Rapid data duplication through FlashCopy, providing extensive capabilities to exploit, manage, and protect your information in a 24 x 7 environment
117
- Peer-to-Peer Remote Copy (PPRC), which allows you to create synchronous volume copies via ESCON channels - Extended Remote Copy (XRC), which allows you to create asynchronous volume copies over long distances - Concurrent Copy (CC), which allows you to create volume or data set copies, locally and non-disruptively Storage server availability through redundancy and non-disruptive service with design for no single point of failure or repair More information is available through not only the ESS product manuals, but also a suite of IBM redbooks, including: IBM Enterprise Storage Server, SG24-5465 Implementing the IBM ESS in Your Environment, SG24-5420 Implementing ESS Copy Services in a S/390 Environment , SG24-5680 Implementing ESS Copy Services in a UNIX/NT Environment , SG24-5757 These books are available through the ITSO Web page at:
www.redbooks.ibm.com.
118
119
guarantee that the same or similar results will be obtained elsewhere. Customers attempting to adapt these techniques to their own environments do so at their own risk. Any pointers in this publication to external Web sites are provided for convenience only and do not in any manner serve as an endorsement of these Web sites. Any performance data contained in this document was determined in a controlled environment, and therefore, the results that may be obtained in other operating environments may vary significantly. Users of this document should verify the applicable data for their specific environment. This document contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples contain the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. Reference to PTF numbers that have not been released through the normal distribution process does not imply general availability. The purpose of including these reference numbers is to alert IBM customers to specific information relative to the implementation of the PTF when it becomes available to each customer according to the normal IBM PTF distribution process. The following terms are trademarks of the International Business Machines Corporation in the United States and/or other countries:
AIX DFSMS/MVS ESCON Netfinity OS/390 UNIX S/390 DB2 DFSMSdfp FICON OS/390 Parallel Sysplex IBM
The following terms are trademarks of other companies: Tivoli, Manage. Anything. Anywhere.,The Power To Manage., Anything. Anywhere.,TME, NetView, Cross-Site, Tivoli Ready, Tivoli Certified, Planet Tivoli, and Tivoli Enterprise are trademarks or registered trademarks of Tivoli Systems Inc., an IBM company, in the United States, other countries, or both. In Denmark, Tivoli is a trademark licensed from Kjbenhavns Sommer - Tivoli A/S. C-bus is a trademark of Corollary, Inc. in the United States and/or other
120
countries. Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and/or other countries. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States and/or other countries. PC Direct is a trademark of Ziff Communications Company in the United States and/or other countries and is used by IBM Corporation under license. ActionMedia, LANDesk, MMX, Pentium and ProShare are trademarks of Intel Corporation in the United States and/or other countries. UNIX is a registered trademark in the United States and other countries licensed exclusively through The Open Group. SET, SET Secure Electronic Transaction, and the SET Logo are trademarks owned by SET Secure Electronic Transaction LLC. Other company, product, and service names may be trademarks or service marks of others.
121
122
123
SAP R/3 on DB2 for OS/390: Planning Guide SAP R/3 Release 4.5B, SC33-7964 SAP R/3 on DB2 for OS/390: Connectivity Guide, SC33-7965 MVS/ESA Hardware Configuration Definition: Users Guide, SC33-6468 OS/390 UNIX System Service Planning, SC28-1890
Installation of the SAP Business Information Warehouse on UNIX DB2 for OS/390, Release 1.2B SR-1, 51007613
BC SAP Database Administration Guide: DB2 for OS/390, Material Number: 51006377 R/3 Installation on UNIX DB2 for OS/390, 51006375 DB2 UDB for OS/390 Version 6 Installation Guide, SC26-9008 DB2 UDB for OS/390 Utility Guide and Reference Version 6 , SC26-9015
SAP BW home page Americas SAP Users Group Latest IBM S/390
http://www.s390.ibm.com/os390/bkserv/latest.html documentation
124
Fax Orders United States (toll free) Canada Outside North America 1-800-445-9269 1-403-267-4455 Fax phone number is in the How to Order section at this site: http://www.elink.ibmlink.ibm.com/pbl/pbl
This information was current at the time of publication, but is continually subject to change. The latest information may be found at the Redbooks Web site. IBM Intranet for Employees IBM employees may register for information on workshops, residencies, and Redbooks by accessing the IBM Intranet Web site at http://w3.itso.ibm.com/ and clicking the ITSO Mailing List button. Look in the Materials repository for workshops, presentations, papers, and Web pages developed and written by the ITSO technical professionals; click the Additional Materials button. Employees may access MyNews at http://w3.ibm.com/ for redbook, residency, and workshop announcements.
125
Last name
Address City Telephone number Invoice to customer number Credit card number
Card issued to
Signature
We accept American Express, Diners, Eurocard, Master Card, and Visa. Payment by credit card not available in all countries. Signature mandatory for credit card payment.
126
Glossary
access plan. Plan generated by the DB2 Optimizer of how to access the data in the tables being queried. Administrator Workbench. A tool to control how the data gets from the source systems into the InfoCubes of the Business Information Warehouse. It is used to request and manage data in the source system, InfoSource, InfoCube, InfoObject, Scheduler, and Monitor. aggregation. The process of summarizing atomic (detailed) level data horizontally, vertically and chronologically. BAPI. Business Application Programming Interfaces or Business API. Business Explorer. SAP BW reporting tool. characteristic. An element of a business such as: company code, product, material, or fiscal year. Also an element of a dimension. data extraction. Pulling the data out of its source system (or systems) and putting it into a warehouse-usable form. data loading. A process of loading data from source systems into the BW InfoCube. data mart. A decision support environment that addresses the common decision support needs of a specific group within the organization (typically a department or geographic area). In BW data marts can be created by queries on a specific aggregate. data warehouse. A database that contains summarized data created from transactional data found in the OLTP system. database. A means of data storage. database table. See table. delta update. A type of database update. Refreshes only data changed since the last extraction. See also full update. dimension. Grouping characteristics that belong together from a content point of view. For example, a customer dimension may contain the customer number, the customer group, and the levels of customer hierarchy. drill down. A technique that allows you to explore the detailed data that was used in creating summary level data. In BW, this is one of the navigation techniques. fact table. A table that contains all key figures (facts) of the InfoCube. It is the central table in the star schema. flat file. A file that contains text. It is used to load information into the data warehouse. It can be comma-delimited, fixed-width, or variable width. full update. A type of database update. Replaces all data. See also delta update. granularity. The level of detail contained in a single record of the fact table. The coarser the granularity, the more the data is summarized before storage. InfoCube. A multidimensional central data container for queries and evaluations. Contains two types of data: key figures and characteristics. InfoObject. Generic term for characteristics and key figures. InfoPackage. A description of data that should be requested from a source system. informational data. Data created from operational data, stored in a format that makes easier business analysis. Analysis can be in the form of decision support (queries), report generation, Executive Information Systems, or statistical analysis. InfoSource. A quantity of InfoObjects grouped together from a business point of view. It can contain either transaction data or master data. key figure. Values or quantities such as revenue, costs, number of employees. legacy system. A system that has been in place for a significant period of time. Serves as a source system for a data warehouse.
127
master data. Data that remains unchanged over a long period time, for example, customer names and addresses. meta data. Data about data. Meta data describes format, origin, history, and other aspects of data. meta data repository. It contains the various classes of meta data. Monitor. Monitoring tool of the Administrator Workbench to oversee the data request and processing in the Administrator Workbench. multidimensional database. A specialized database that is designed to enable the querying and viewing of large volumes of data based on predefined dimensions such as geography, customer, and product. multidimensional table. See multidimensional database. navigation. Analysis of the InfoCube by displaying different views of the data of a query. navigation attributes. Attributes that allow you to present different views of the data. N-way system. A system with two or more CPUs. OLAP. Online analytical processing. A type of processing used to analyze summarized online transaction processing (OLTP) data. OLAP allows multidimensional views and analysis of that data for decision support processes. OLTP. Online transaction processing. A type of processing of operational data. operational data. Data that is used to run a companys business. It is stored, retrieved, and updated by an OLTP system. operational data store (ODS). An integrated database that contains a copy of extracted data from source systems. query. A selection of InfoObjects (characteristics and key figures) for analysis of the data in an InfoCube. scheduler. The nexus between the source systems and the InfoCubes. schema. The logical and physical definition of data elements, for example, a star schema.
source system. Every system that is available in the Business Warehouse for data extraction. staging engine. Implements data mapping and data transformation during the data loading process. It extracts data from a source system. star schema. A data structure that combines fact tables and dimension tables in a way that provides easy and efficient access to data. SQL. Structured Query Language. A language developed by IBM that provides access to relational database. table. An array of data in a table form. It consists of columns (data values of the same type) and rows (data records). Each record can be identified uniquely by one or several fields. table index. Index used to accelerate data selection from a table. It is similar to a copy of the table reduced to certain fields only and always sorted. think time. The time that the end user spends between two key presses. transaction data. Operational data provided by an OLTP system.
128
Index A
ABAP 4 access plan 127 Administrator Workbench 6, 79, 127 aggregate build 85 aggregation 58 application server 13, 19 setup 31 catalog updates 55 DSNDB07 58 DSNTPID 51 log 52 objects 47 optimizer 79 prerequisites 47 PTFs 47 reorganization 58 RUNSTATS 54, 91 temporary database 58 DB2 parameters 49 debugging 66 delta update 127 dimension 8, 127 dimension table 8 dispatching priority 39 documentation SAP R/3 installation 43 drill down 127
BAPI 5, 127 Business Content (BCT) 6, 22 Business Explorer 5, 9, 127 BW application sizing 91 tuning 91 BW database backup/recovery 81 data loading 67 partitioning 86 BW Patch 71 BWGUI 71
E
Enterprise Storage Server (ESS) 14 ESCON 15, 26
C
characteristic 7, 127 configuration for this study 28 ICLI 36 SMS 34 TCP/IP 42 connectivity 15, 19 testing 31 CRM 1
fact table 7, 127 Fast Ethernet OSA-2 26 FDDI adapter 20 connection 13 Driver 20 FDDI OSA-2 26 full update 127
D
data mart 7, 127 data warehouse 4, 127 database server 13, 14 setup 30 DB2 additional DB2 catalog indexes 52 authorization 54 bufferpools 50 catalog and directory 50
H
hardware application server 19 configuration 28 database server 14
I
ICLI client setup 42 customizing 36
129
environment file 36 security 38 ICLI packages 18 ICLI plan 18 ICLI server 17 customizing 36 DB2 binding 53 startup JCL 36 ICLIRUN 18 InfoCube 7, 127 partitioning 87 update 86 updating 84 InfoObject 6, 127 InfoPackage 83, 127 InfoPackage Scheduler 83 InfoSource 84, 127 installation pre-installation checking 26 steps 45 INSTGUI 44 INSTTOOL.SH location 43 Integrated Call Level Interface (ICLI) 8, 17 IRLM parameters 50
P
partitioning 86 performance 89 PI-A 99 72 presentation server 13 , 22 processor 14
R
R3SETUP 44 problem solving 68 RACF 19, 37 RRS 48
S
SAP 20 BASIS 25 notes 61 SAP BW architecture 4 data structure 6 DB2 objects 47 SAP R/3 tools 80 SAP system name 20 SAPGUI 13, 71 SAPOSCOL 65 SID table 8 SMS 34 ACS routine 16 configuring 34 staging engine 6, 128 star schema 7, 128 STARJOIN 83 start up JCL 36 storage 14 System Managed Storage (SMS) 16
K L
M
master data 128 master table 8 meta data 128 Meta Data Manager 6 multidimensional database 128
N
navigation 128
T
TCP/IP hosts file 40 services file 41 testing 42 think time 128
O
ODS data loading 83 OLAP 128 OLAP processor 5
130
U
URLs 76 user information 19
V
VSAM catalog 48 VTOC 48
W
Workload Manager (WLM) 15
131
132
What other subjects would you like to see IBM Redbooks address?
Please rate your overall satisfaction: Please identify yourself as belonging to one of the following groups: Your email address: The data you provide here may be used to provide you with information from IBM or our business partners about our products, services or activities. Questions about IBMs privacy policy?
O Very Good
O Good
O Average
O Customer O Business Partner O IBM, Lotus or Tivoli Employee O None of the above
O Please do not use the information collected here for future marketing or promotional contacts or other communications beyond the scope of this transaction.
The following link explains how we protect your personal information. ibm.com/privacy/yourprivacy/
133
on OS/390
Prepare, install, and configure your SAP BW on OS/390 Administer your SAP BW databases Recommended sizing approaches
This redbook explores the SAP Business Information Warehouse (BW) 1.2B on the S/390 system. It takes a close look at the tasks and functions that are specific to the S/390 environment. It is designed to assist S/390 technical specialists, DB2 database administrators, and SAP Basis consultants in implementing this technology. This redbook offers valuable information that includes: - An overview of BW - The preparation of the BW installation - The BW installation process - Recommendations on administering BW databases to: improve query response time, improve performance of loading databases, update delta information, gather database statistics, and more. - Preliminary sizing recommendations based on tests and SAP recommendations We assume that the readers have already installed the SAP R/3 system and are familiar with SAP applications, terminology, prerequisites, documentation, and technology.
BUILDING TECHNICAL INFORMATION BASED ON PRACTICAL EXPERIENCE IBM Redbooks are developed by the IBM International Technical Support Organization. Experts from IBM, Customers and Partners from around the world create timely technical information based on realistic scenarios. Specific recommendations are provided to help you implement IT solutions more effectively in your environment.