IBM Books

Quick Beginnings EEE for UNIX**


Step 2. Stop All DB2 Instances

You must stop all DB2 Instances before you remove DB2. To stop a DB2 instance, perform the following steps:

Step  1.

To obtain a list of the names of all DB2 instances on your system, enter the following command:

   DB2DIR/bin/db2ilist


where DB2DIR = /usr/lpp/db2_06_01 on AIX


= /opt/IBMdb2/V6.1 on Solaris

Step  2.

Stop the instance.

To stop a database instance, perform the following steps:

Step  a.

Log in as the instance owner.

Step  b.

Run the start up script as follows:

   . INSTHOME/sqllib/db2profile    (for Bourne or Korn shell)
   source INSTHOME/sqllib/db2cshrc (for C shell)

where INSTHOME is the home directory of the instance that you want to use.

Step  c.

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

Step  3.

Repeat steps 2 and 3 for each instance.


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

[ DB2 List of Books | Search the DB2 Books ]