Auto-starting instances

You can enable instances to start automatically after each system restart. The steps necessary to accomplish this task differ by operating system.

About this task

On Windows operating systems, the database instance that is created during installation is set as auto-started by default.

On Linux®, UNIX and Windows operating systems, an instance created by using db2icrt is set as a manual start.

Procedure

To configure an instance to start automatically:
  • On Windows operating systems, you must go to the Services panel and change the property of the Db2® service there.
  • On Linux and UNIX operating systems, perform the following steps:
    1. Verify that the instance's startAtBoot global registry field value is set to 1 by checking the output of the following command:
      db2greg -getinstrec instancename='<instance name>'
      If the startAtBoot global registry field value is not set to 1, set the value to 1 by running the following command:
      db2greg -updinstrec instancename='<instance name>'!startatboot=1
    2. Enable the instance to auto-start after each system restart, by running the following command:
      db2iauto -on <instance name>
    where instance_name is the login name of the instance.