The standard way to start the server is from the instance
user ID, but the root user ID can be used in some cases. For example,
it might be necessary to start the server from the root user ID to
access specific devices.
Procedure
- Log in by using the root user ID.
- Change the .profile file so that the
root user ID can run the db2profile script for
the instance user ID. Issue the following command:
. db2_instance_home_directory/sqllib/db2profile
where db2_instance_home_directory specifies
the home directory of the DB2® instance. For example, if the instance name is tsminst1, issue the
following command: . /home/tsminst1/sqllib/db2profile
- Change to the instance directory. For example,
if the instance directory is /tsminst1,
issue the following command:
# cd /tsminst1
- Start the server instance:
- Optional: Start the server automatically by
using the root user ID. Use the script that is provided for starting
the server automatically.
Follow
the instructions in Automatically starting AIX, HP-UX, and Solaris servers.
Follow the instructions in Automatically starting Linux servers.