The db2diag.log file contains diagnostic information that can help you to resolve problems that might occur with your database.
The location of the db2diag.log file and the DB2® first occurrence data capture (FODC) files depends on your DB2 configuration settings or the DB2 environmental variable settings. DB2 writes messages about internal operations, events, or status in the administration notification log file (db2SID.nfy).
db2 get dbm cfg | grep DIAGPATH
If
no path is specified in the DIAGPATH configuration
parameter, the diagnostic data directory is in the sqllib/db2dump subdirectory
of your instance directory. For example, /home/tsminst1/sqllib/db2dump where /home/tsminst1 is
the instance home directory.db2 get dbm cfg | findstr /s /i diagpath
db2set db2instprof
The
output from this command shows the location of DB2 data files. The diagnostic log file is in
the instance sub directory of the directory that is specified by the DB2INSTPROF registry
variable. For example, for the server instance TSMSERVER1, the db2set
deb2instprof command shows this path:C:\ProgramData\IBM\DB2\DB2TSM1
The
diagnostic log file is in the TSMSERVER1 sub
directory:C:\ProgramData\IBM\DB2\DB2TSM1\TSMSERVER1
C:\Program Files\Tivoli\TSM\db2\TSMINST1
where DB2PATH is C:\Program
Files\Tivoli\TSM\db2 and the instance name is TSMINST1.