Quick Beginnings

Installing DB2 for Linux Using the db2setup Utility

The db2setup utility is the recommended method for installing DB2 for Linux. This utility can perform all of the tasks required to install DB2. If you prefer not to use the db2setup utility, see Manually Installing DB2 for Linux.

Sometimes display problems can occur when running the db2setup utility. To refresh the current screen at any time, press Ctrl+L. To avoid most potential display problems, install DB2 through a virtual console session which is a terminal window outside of the graphical interface that most Linux distributions are installed with. To change to a virtual console session, press Ctrl+Alt+F1. To change back to the graphical interface, press Ctrl+Alt+F7. Your particular Linux distribution may differ. Rrefer to your Linux documentation for more information.

To install this product using the db2setup utility:

  1. Log in as a user with root authority.
  2. Insert and mount your DB2 product CD-ROM. For information on how to mount a CD-ROM, see Mounting CD-ROMs on UNIX Operating Systems.
  3. Change to the directory where the CD-ROM is mounted by entering the cd /cdrom command where cdrom is the mount point of your product CD-ROM.
  4. Enter the ./db2setup command. The DB2 Setup Utility window opens.
  5. Select Install and press Enter. The Install DB2 V7 window opens.
  6. Select the products you want and are licensed to install. Press Tab to move between available options and fields. Press Enter to select or deselect an option. Selected options are denoted by an asterisk.

    When you select to install a DB2 product, you can choose the product's Customize option to view and change the optional components that will be installed.

When installation is complete your DB2 software will be installed in the /usr/IBMdb2/V7.1 directory.

You can verify the installation by creating and connecting to the SAMPLE database. For more information, see Verifying the Installation.

You can use the db2setup utility at any time to set up an existing instance, create another instance, create an Administration Server, or install additional DB2 or DB2 Connect products or components. Log in as a user with root authority and run the ./db2setup command from your DB2 product CD-ROM.

Your Next Step

If you are migrating from a previous version of DB2, see DB2 Post-installation Migration Tasks.

If you are not migrating from a previous version of DB2 and you want to begin installing DB2 clients, go to Installing DB2 Clients.

If you want to create links to DB2 files, go to Creating Links for DB2 Files.


[ Top of Page | Previous Page | Next Page ]