Setting up the SAMPLE database

To use the SAMPLE programs shipped with Db2® database products, you need to create the SAMPLE database on a server workstation.

About this task

This will require approximately 23.5 megabytes of hard disk space. An empty Db2 database requires approximately 21.5 megabytes of hard disk space.

Also, if you will be using a remote client to access the SAMPLE database on a server that is running a different version of Db2 database, or running on a different operating system, you need to bind the database utilities, including the CLI utility files, to the SAMPLE database.

Procedure

To set up the SAMPLE database:

  1. Create the SAMPLE database.
  2. Catalog the SAMPLE database.
  3. Bind the SAMPLE database utilities.