- Installing DB2 UDB Servers
- Prerequisites
- Before You Begin
- Installing DB2 UDB
- Installed Directory Structure
- Considerations in an NIS Environment
- Distributed Installation
- Sample Response Files
- Creating a Response File
- Distributed Installation with a Response File
- Installing DB2 with db2_install
- DB2 UDB Environment Definitions
- DB2 Profile Registry
- Managing the DB2 Profile Registry
- The db2set Command
- Environment Variables
- Hierarchy of the DB2 UDB Environment
- DB2 Administration Server (DAS)
- DAS Process
- DB2 Instances
- Creating the Sample Database
- Using the Command Line Processor (CLP)
- Uninstalling DB2 Products
- Stopping the DAS Instance
- Stopping All DB2 Instances
- Removing the DAS Instance
- Removing DB2 Instances
- Removing DB2 Products
Installing DB2 with db2_install
In addition to the installation GUI, db2setup, you can install DB2 from the Solaris command line, with db2_install. This script is also supplied with DB2 and is on the CD in the same location as db2setup; but, it only installs the DB2 binaries. With db2_install, which simply executes the Solaris pkgadd command, you must tailor your environment after placing the binaries onto the system. One significant option with db2_install is that you can select a location for the DB2 code (binaries) other than /opt/IBM/db2/V8.1. While this will place the binaries into a different location, there will still be a path and links placed into /opt. Figure 2.32 shows using db2_install to install DB2.ESE into the default location of /opt (no alternate location was chosen for the installation directory). In this example, we have answered three prompts: one concerning what we want to install (DB2.ESE), whether or not to install the binaries into the default path (/opt/IBM/db2/V8.1: we chose to install there), and the always present “Do you want to continue?
Figure 2.32. Using db2_install
After installing, you can review the packages that have been placed on your system with the Solaris pkginfo command, as shown in Figure 2.33.
Figure 2.33. pkginfo Output Grepped for DB2 After Successful Installation