Stops the current database manager instance. Unless explicitly stopped, the database manager continues to be active. This command does not stop the database manager instance if any applications are connected to databases. If there are no database connections, but there are instance attachments, it forces the instance attachments and stops the database manager. This command also deactivates any outstanding database activations before stopping the database manager.
In a partitioned database environment, this command stops the current database manager instance on a database partition or on all database partitions. When it stops the database manager on all database partitions, it uses the db2nodes.cfg configuration file to obtain information about each database partition.
This command can also be used to drop a database partition from the db2nodes.cfg file (partitioned database environments only).
This command is not valid on a client.
By default, and in a partitioned database environment, this command affects all database partitions that are listed in the db2nodes.cfg file.
None
>>-+-STOP--+-DATABASE MANAGER-+-+--+------------------+---------> | +-DB MANAGER-------+ | '-PROFILE--profile-' | '-DBM--------------' | '-db2stop--------------------' >--+------------------------------------------------+---------->< +-DBPARTITIONNUM--db-partition-number------------+ +-DROP DBPARTITIONNUM--db-partition-number-------+ '-FORCE--+-------------------------------------+-' '-DBPARTITIONNUM--db-partition-number-'
Valid values are from 0 to 999 inclusive, and must be in the db2nodes.cfg file. If no database partition number is specified, all database partitions defined in the configuration file are stopped.
Before using this parameter, run the DROP DBPARTITIONNUM VERIFY command to ensure that there is no user data on this database partition.
When this option is specified, all database partitions in the db2nodes.cfg file are stopped.
04-07-1997 10:32:53 10 0 SQL1064N DB2STOP processing was successful.
04-07-1997 10:32:54 20 0 SQL1064N DB2STOP processing was successful.
04-07-1997 10:32:55 30 0 SQL1064N DB2STOP processing was successful.
SQL1064N DB2STOP processing was successful.
On Microsoft Windows Vista or later versions, you must execute this command from a DB2 command window running with full administrator privileges.
It is not necessary to issue this command on a client node. It is provided for compatibility with older clients, but it has no effect on the database manager.
Once started, the database manager instance runs until the user stops it, even if all application programs that were using it have ended.
If the database manager is stopped, a successful completion message is sent to the standard output device. If an error occurs, processing stops, and an error message is sent to the standard output device.
If the database manager cannot be stopped because application programs are still connected to databases, use the FORCE APPLICATION command to disconnect all users first, or reissue the STOP DATABASE MANAGER command with the FORCE option.