IBM Books

Quick Beginnings


Starting and Stopping a DB2 Server Instance

You must start a DB2 server instance before you can perform the following tasks:

To start a database instance:

  1. Log in as the instance owner.

  2. Set up the instance owner environment by executing the db2profile or db2cshrc file for the DB2 Instance as follows:
       . INSTHOME/sqllib/db2profile     (in Bourne or Korn shell)
       source INSTHOME/sqllib/db2cshrc  (in C shell)
    

    where INSTHOME is the home directory of the DB2 instance.

  3. Start the DB2 database manager by entering the db2start command from a command line.

To stop a database instance:

  1. Log in as the instance owner.

  2. Set up the instance owner environment by executing the db2profile or db2cshrc file for the DB2 Instance as follows:
       . INSTHOME/sqllib/db2profile     (in Bourne or Korn shell)
       source INSTHOME/sqllib/db2cshrc  (in C shell)
    

    where INSTHOME is the home directory of the DB2 instance.

  3. Stop the DB2 database manager by entering the db2stop command from a command line.


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

[ DB2 List of Books | Search the DB2 Books ]