DB2 Deployment Guide

DB2 Deployment Guide

Front cover DB2 Deployment Guide Learn to deploy DB2 Data Servers and Clients Automate DB2 mass deployment with scripts Deploy DB2 with applications Whei-Jen Chen Jian TJ Tang Carsten Block John Chun ibm.com/redbooks International Technical Support Organization DB2 Deployment Guide October 2008 SG24-7653-00 Note: Before using this information and the product it supports, read the information in “Notices” on page vii. First Edition (October 2008) This edition applies to DB2 for Linux, UNIX, and Windows Version 9.5. © Copyright International Business Machines Corporation 2008. 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 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 installation 11 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 © Copyright IBM Corp. 2008. All rights reserved. iii 2.3.2 DB2 license . 63 2.3.3 Creating the deployment script . 64 2.3.4 Windows deployment scripts. 73 2.4 Fix pack deployment . 75 2.4.1 Fix pack overview . 76 2.4.2 Mass deployment of DB2 fix pack with a script. 78 Chapter 3. DB2 client deployment . 89 3.1 Client deployment planning . 90 3.1.1 Select the right client type . 90 3.1.2 Footprint . 91 3.1.3 Reducing the size of the install image. 91 3.1.4 Configuration and customization. 92 3.1.5 Compatibility . 93 3.1.6 Licensing . 94 3.1.7 How to deploy the DB2 client . 94 3.2 IBM Data Server Client, Runtime Client, Driver for ODBC, CLI, and .NET 94 3.2.1 IBM data server client installation methods. 95 3.2.2 Client instance on the DB2 server. 97 3.2.3 Reducing the installation image . 97 3.2.4 Mass deployment of IBM data server client product . 100 3.3 Thin Client deployment . 131 Chapter 4. Deploying applications with DB2 . 137 4.1 Introduction to application deployment package . 138 4.1.1 IBM Data Server Driver for JDBC and SQLJ . 138 4.1.2 IBM Data Server Driver for ODBC, CLI, and .NET, and IBM Data Server Driver for ODBC and CLI . 143 4.2 Java. 150 4.3 Deploying C/C++ applications . 154 4.3.1 CLI and ODBC . 154 4.3.2 Sample application . 156 4.3.3 Considerations for deployment of CLI and ODBC applications . 158 4.3.4 Deploying a CLI application along with ODBC CLI driver . 159 4.3.5 Embedded SQL and Administrative API . 169 4.4 PHP . 169 4.4.1 PDO_IBM . 170 4.4.2 IBM_DB2. 170 4.4.3 Installation of IBM PHP drivers . 170 4.4.4 PHP. 171 4.4.5 Sample application . 174 4.4.6 Deploying a PHP application with the DB2 drivers . 175 4.5 Ruby . 181 iv DB2 Deployment Guide 4.5.1 IBM IBM_DB gem . 181 4.5.2 Installation of IBM_DB gem. 181 4.5.3 Creating a sample Ruby application . 183 4.5.4 Deploying a Ruby application with the DB2 drivers . 183 4.5.5 Help and support. 188 4.6 Python . 189 4.6.1 IBM_DB driver. 189 4.6.2 IBM_DB_DBI wrapper. 189 4.6.3 IBM_DB_SA adaptor. 190 4.6.4 Installation of IBM Python drivers . 190 4.6.5 Creating a sample Python application. 192 4.6.6 Deploying a Python application with the DB2 drivers . 193 4.6.7 Help and support. 199 4.7 Perl . 199 4.7.1 DBD::DB2 . 199 4.7.2 Installation of IBM Perl driver . ..

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    298 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us