Troubleshooting
Problem
Sometimes the db2relocatedb or db2inidb utility will not be returning an helpful error message and the db2diag.log will not either.
Symptom
For example, you could be getting:
db2relocatedb -f db2inidb1.cfg
SQL10007N Message "0" could not be retrieved. Reason code: "4".
Cause
db2relocatedb and db2inidb do many things in the background and by default the full steps and messages are not displayed.
Resolving The Problem
If you are encountering an error using those utilities and the error message is not meaningful try generating a specific log file with those utilities by setting the DB2RELOCATEDB_LOGFILE environment variable. Example:
export DB2RELOCATEDB_LOGFILE=/home/db2inst1/relocate.log (Unix)
set DB2RELOCATEDB_LOGFILE=C:\temp\relocate.log (Windows)
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21991270