© Copyright IBM Corp. 2008. All rights reserved. iii
Contents
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . vii
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . viii
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
The team that wrote this book . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .ix
Acknowledgements. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x
Become a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xi
Chapter 1. Introduction to DB2 deployment. . . . . . . . . . . . . . . . . . . . . . . . . 1
1.1 DB2 deployment overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.2 DB2 9.5 for UNIX, Linux, and Windows products . . . . . . . . . . . . . . . . . . . . 3
1.2.1 DB2 Server products. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2.2 DB2 clients and drivers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2.3 DB2 standalone and connect products . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2.4 Other DB2 products . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.3 Deployment considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
1.3.1 New environment versus environment with existing DB2 installation11
1.3.2 DB2 version considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.3.3 DB2 product considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.3.4 License considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.3.5 Authorization considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.3.6 Configuration considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
1.3.7 Other considerations. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Chapter 2. DB2 server deployment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.1 Server deployment planning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.1.1 System requirement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
2.1.2 User and group required in deployment . . . . . . . . . . . . . . . . . . . . . . 30
2.1.3 Non-root/non-Administrator installation. . . . . . . . . . . . . . . . . . . . . . . 32
2.1.4 DB2 configuration profile and database profile. . . . . . . . . . . . . . . . . 34
2.1.5 Considerations for a partitioned database . . . . . . . . . . . . . . . . . . . . 39
2.2 DB2 server deployment methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
2.2.1 DB2 Setup wizard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
2.2.2 db2_install. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
2.2.3 Response file . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
2.2.4 Payload file deployment (for Linux and UNIX) . . . . . . . . . . . . . . . . . 57
2.3 Mass deployment of DB2 server using a script . . . . . . . . . . . . . . . . . . . . . 58
2.3.1 Setup of SSH and NFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59