Z/VSE Using DB2 on Linux for System Z
Total Page:16
File Type:pdf, Size:1020Kb
Front cover z/VSE Using DB2 on Linux for System z See the advantages for z/VSE applications using DB2 on Linux Plan a migration of DB2 data to Linux for System z Use a sample scenario for your implementation Helmut Hellner Ingo Franzki Martin Kammerer Roopa Mahendra Wilhelm Mild ibm.com/redbooks International Technical Support Organization z/VSE Using DB2 on Linux for System z February 2010 SG24-7690-00 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. First Edition (February 2010) This edition applies to Version 7, Release 5, Modification 0 of IBM DB2 Server for VSE & VM (product number 5697-F42) and DB2 9.7 for Linux, UNIX, and Windows, Enterprise Server Edition (product number 5765-F41). © Copyright International Business Machines Corporation 2010. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . vii Trademarks . viii Preface . ix The team who wrote this book . ix Become a published author . .x Comments welcome. xi Chapter 1. Overview of a future oriented DB2 environment . 1 1.1 Business values of using DB2 for Linux on System z . 2 1.2 z/VSE benefits of using DB2 for Linux on System z . 3 1.3 Architectural options . 4 1.3.1 Logical data integration with IBM InfoSphere Federation Server . 5 1.3.2 Physical data integration on DB2 for Linux on System z . 6 1.4 Considerations for a rehosting project . 7 1.4.1 Overview of the steps for a rehosting project . 7 1.4.2 Skills required in a rehosting project . 9 1.4.3 Required documentation. 10 Chapter 2. Planning DB2 . 11 2.1 Hardware options . 12 2.1.1 Virtualization options with LPAR and z/VM. 13 2.1.2 IBM System Storage disk considerations . 14 2.2 DB2 in z/VSE and z/VM . 17 2.2.1 Considerations for DB2 in a z/VSE environment . 18 2.2.2 CPU planning . 18 2.2.3 Memory sizing. 20 2.2.4 I/O dependency. 21 2.2.5 Workload behavior . 21 2.2.6 Outbound database connections . 21 2.3 Linux considerations . 22 2.3.1 Kernel . 22 2.3.2 File system I/O . 23 2.3.3 I/O processing for disk . 23 2.3.4 I/O scheduling . 24 2.3.5 I/O options. 25 2.3.6 Logical volumes . 27 2.3.7 Storage pool striping . 27 2.3.8 DB2 container striping. 28 2.3.9 Summary of considerations. 29 2.4 Network planning . 29 2.4.1 Throughput measurements for different network connection types . 31 2.5 Database considerations. 37 2.5.1 Database type. 37 2.5.2 ASCII and EBCDIC considerations. 37 Chapter 3. Setting up and customizing the environment . 39 3.1 General environment considerations . 40 3.2 Setting up the DB2 enterprise server for Linux on System z . 42 © Copyright IBM Corp. 2010. All rights reserved. iii 3.2.1 Installing DB2 . 42 3.2.2 Configuring DB2 for Linux on System z as a server . 51 3.2.3 Configuring DB2 for Linux on System z for access to remote databases. 52 3.2.4 Defining the rehosting database . 54 3.3 Setting up a federated database environment . 54 3.3.1 Setting up a federated database. 55 3.4 Setting up the network . 62 3.4.1 An overview of HiperSockets . 63 3.4.2 Configuring the z/VSE network . 63 3.4.3 Configuring the Linux network . 64 3.4.4 HiperSockets specifics . 72 3.4.5 Network specifics in Linux distributions. 73 3.5 Setting up DB2 Server for VSE Client Edition. 75 3.5.1 Preparing z/VSE . 75 3.5.2 Preparing the CICS system. 76 3.5.3 Preparing DB2 . 78 3.5.4 Installing DB2 Server for VSE Client Edition. 86 3.5.5 Verifying the installation . 90 3.5.6 Considerations for an implicit connection . 95 3.5.7 Connection pooling in an online resource adapter . 95 3.6 DB2 Server for VSE . 96 3.6.1 Preparing the application server to use TCP/IP . 96 3.6.2 Preparing the application requester to use TCP/IP. 98 3.6.3 Enabling DRDA for DB2 Server for VSE. 98 3.6.4 DB2 block size considerations in z/VSE and z/VM . 98 3.7 DB2 Server for VM Client Edition . 99 3.7.1 Setting up the communication directory . 100 3.8 DB2 Server for VM . 100 3.8.1 Preparing the application server to use TCP/IP . 100 3.8.2 Preparing the application requester to use TCP/IP. ..