Home > Articles > Data > DB2

This chapter is from the book

This chapter is from the book

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?

02fig32.jpgFigure 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.

02fig33.jpgFigure 2.33. pkginfo Output Grepped for DB2 After Successful Installation

  • + Share This
  • 🔖 Save To Your Account