You might need to start or stop a DB2® database during normal business operations.
For example, you must start an instance before you can perform some
of the following tasks: connect to a database on the instance, precompile
an application, bind a package to a database, or access host databases.
Before you begin
Before you start an instance on your Linux or UNIX operating
system:
- Log in with a user ID or name that has SYSADM, SYSCTRL, or SYSMAINT
authority on the instance; or log in as the instance owner.
- Run the startup script as follows, where INSTHOME is
the home directory of the instance you want to use:
. INSTHOME/sqllib/db2profile (for Bourne or Korn shell)
source INSTHOME/sqllib/db2cshrc (for C shell)
Procedure
To start the instance: - From the command line, enter the db2start command.
The DB2 database manager applies
the command to the current instance.
- From IBM® Data
Studio,
open the task assistant for starting the instance.