This section will help the user to create the toolsdb database using db2setup without any error.
ERROR: An error occurred while running the command "/home/db2inst1/sqllib/bin/db2 CREATE TOOLS CATALOG SYSTOOLS USE EXISTING DATABASE TOOLSDB FORCE" to initialize and/or migrate the DB2 tools catalog database. The return value is "4".
The above error occurred due to DAS process running on the machine.
All Unix/Linux platforms including all versions Ex: V9.1, V9.5, V9.7
Diagnosing the problem
This error occurs mainly due to the old DAS (DB2 Administration Server) process running on the machine.
Resolving the problem
Check for the DAS process using ps command shown below:
ps –ef | grep –i rrm
ps –ef | grep –i stm
To kill the process use the following command:
kill -9 <process id>
Run the db2setup again.