DB2 Version 9.7 for Linux, UNIX, and Windows

Stopping instances (Linux, UNIX)

You might need to stop the current instance of the database manager.

About this task

Restrictions

The db2stop command can be run only at the server.

No database connections are allowed when running this command; however, if there are any instance attachments, they are forced off before the instance is stopped.

Before you begin

To stop an instance on your Linux or UNIX system, you must do the following:
  1. Log in or attach to an instance with a user ID or name that has SYSADM, SYSCTRL, or SYSMAINT authority on the instance; or, log in as the instance owner.
  2. Display all applications and users that are connected to the specific database that you want to stop. To ensure that no vital or critical applications are running, list applications. You need SYSADM, SYSCTRL, or SYSMAINT authority for this.
  3. Force all applications and users off the database. You require SYSADM or SYSCTRL authority to force users.
  4. If command line processor sessions are attached to an instance, you must run the TERMINATE command to end each session before running the db2stop command.

Procedure

To stop an instance on a Linux or UNIX operating system: