View
414
Download
12
Embed Size (px)
ibm.com/redbooks
Front cover
z/VSE Using DB2 on Linux for System z
Helmut HellnerIngo Franzki
Martin KammererRoopa Mahendra
Wilhelm Mild
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
http://www.redbooks.ibm.com/ http://www.redbooks.ibm.com/
International Technical Support Organization
z/VSE Using DB2 on Linux for System z
February 2010
SG24-7690-00
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 ScheduleContract with IBM Corp.
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).
Note: Before using this information and the product it supports, read the information in Notices on page vii.
Contents
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viiTrademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ixThe team who wrote this book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ixBecome a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xComments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Chapter 1. Overview of a future oriented DB2 environment . . . . . . . . . . . . . . . . . . . . . . 11.1 Business values of using DB2 for Linux on System z . . . . . . . . . . . . . . . . . . . . . . . . . . . 21.2 z/VSE benefits of using DB2 for Linux on System z . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31.3 Architectural options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.1 Logical data integration with IBM InfoSphere Federation Server . . . . . . . . . . . . . . 51.3.2 Physical data integration on DB2 for Linux on System z . . . . . . . . . . . . . . . . . . . . 6
1.4 Considerations for a rehosting project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.4.1 Overview of the steps for a rehosting project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71.4.2 Skills required in a rehosting project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91.4.3 Required documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Chapter 2. Planning DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112.1 Hardware options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.1.1 Virtualization options with LPAR and z/VM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132.1.2 IBM System Storage disk considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.2 DB2 in z/VSE and z/VM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172.2.1 Considerations for DB2 in a z/VSE environment . . . . . . . . . . . . . . . . . . . . . . . . . 182.2.2 CPU planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182.2.3 Memory sizing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202.2.4 I/O dependency. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212.2.5 Workload behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 212.2.6 Outbound database connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.3 Linux considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222.3.1 Kernel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222.3.2 File system I/O . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232.3.3 I/O processing for disk . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232.3.4 I/O scheduling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 242.3.5 I/O options. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 252.3.6 Logical volumes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272.3.7 Storage pool striping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272.3.8 DB2 container striping. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282.3.9 Summary of considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.4 Network planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 292.4.1 Throughput measurements for different network connection types . . . . . . . . . . . 31
2.5 Database considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372.5.1 Database type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 372.5.2 ASCII and EBCDIC considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Chapter 3. Setting up and customizing the environment . . . . . . . . . . . . . . . . . . . . . . . 393.1 General environment considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 403.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 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 423.2.2 Configuring DB2 for Linux on System z as a server . . . . . . . . . . . . . . . . . . . . . . . 513.2.3 Configuring DB2 for Linux on System z for access to remote databases . . . . . . . 523.2.4 Defining the rehosting database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
3.3 Setting up a federated database environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 543.3.1 Setting up a federated database. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
3.4 Setting up the network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 623.4.1 An overview of HiperSockets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633.4.2 Configuring the z/VSE network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 633.4.3 Configuring the Linux network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 643.4.4 HiperSockets specifics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 723.4.5 Network specifics in Linux distributions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
3.5 Setting up DB2 Server for VSE Client Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753.5.1 Preparing z/VSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 753.5.2 Preparing the CICS system. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763.5.3 Preparing DB2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783.5.4 Installing DB2 Server for VSE Client Edition. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 863.5.5 Verifying the installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 903.5.6 Considerations for an implicit connection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 953.5.7 Connection pooling in an online resource adapter . . . . . . . . . . . . . . . . . . . . . . . . 95
3.6 DB2 Server for VSE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 963.6.1 Preparing the application server to use TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . 963.6.2 Preparing the application requester to use TCP/IP. . . . . . . . . . . . . . . . . . . . . . . . 983.6.3 Enabling DRDA for DB2 Server for VSE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 983.6.4 DB2 block size considerations in z/VSE and z/VM . . . . . . . . . . . . . . . . . . . . . . . . 98
3.7 DB2 Server for VM Client Edition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 993.7.1 Setting up the communication directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
3.8 DB2 Server for VM . . . . . . . . . . .
Recommended
View more >