DB2 Version 9.7 for Linux, UNIX, and Windows
After you install a DB2 Server product > Verifying your installation >

Verifying a partitioned database server installation (Linux® and UNIX®)

Use the db2val tool to verify the core functions of a DB2® copy by validating installation files, instances, database creation, connections to that database, and the state of DPF environments. For details, see "Validating your DB2 copy". In addition, to verify that your DB2 server installation was successful, you will create a sample database and run SQL commands to retrieve sample data and to verify that the data has been distributed to all participating database partition servers.

Before following these steps, make sure you have completed all of the installation steps.

To create the SAMPLE database:

  1. Log on to the primary computer (ServerA) as the instance-owning user. For this example, db2inst1 is the instance-owning user.
  2. Enter the db2sampl command to create the SAMPLE database. By default, the sample database will be created in the instance-owner's home directory. In our example /db2home/db2inst1/ is the instance owner's home directory. The instance owner's home directory is the default database path.

    This command can take a few minutes to process. There is no completion message; when the command prompt returns, the process is complete.

    The SAMPLE database is automatically cataloged with the database alias SAMPLE when it is created.

  3. Start the database manager by entering the db2start command.
  4. Enter the following DB2 commands from a DB2 command window to connect to the SAMPLE database, retrieve a list of all the employees that work in department 20:
       db2 connect to sample
       db2 "select * from staff where dept = 20"
  5. To verify that data has been distributed across database partition servers, enter the following commands from a DB2 command window:
    db2 "select distinct dbpartitionnum(empno) from employee"
    The output will list the database partitions used by the employee table. The specific output will depend on:

After you have verified the installation, you can remove the SAMPLE database to free up disk space. Enter the db2 drop database sample command to drop the SAMPLE database.

[ Top of Page | Previous Page | Next Page | Contents ]