Creating and configuring a Db2 client instance in Linux environments

Applies to: On premises

If you are using Linux® application servers or reporting servers, create a Db2® client instance on the application server and reporting server computers.

In Windows environments, the client instance is created by default when the client software is installed.

For more information, see db2icrt - Create instance command.

Procedure

  1. Log on to the application server computer as a root user.
  2. Go to the <DB2DIR>/instance/ directory.

    <DB2DIR> is installation location of the Db2 client software. The default installation directory is /opt/ibm/db2/<version>/instance.

  3. To create an instance for a client, run the following command:
    db2icrt -s client <instname>

    The -s option is used when you create an instance other than the default instance that is associated with the installed product from which you run the db2icrt command.

    <instname> is the user name of the instance owner.

    Example: db2icrt -s client db2inst2

    The default location of the Db2 instance /home/db2inst2/sqllib.

  4. Log on to the reporting server computer as a root user, and repeat steps 2 and 3.