Enabling DB2 CLI Tracing
You can enable DB2 Call Level Interface (CLI) tracing by adding the following lines to the db2cli.ini file (this procedure applies to Windows and UNIX).
To enable DB2 CLI tracing
Add a section to the db2cli.ini file labeled
[COMMON]
.Add the following entries to the
[COMMON]
section.[COMMON] Trace=1 TracePathName=C:\TRACE TraceFlush=1 TraceComm=1
For each thread, one trace file is created in the path specified in TracePathName (ensure you have already created the path). On UNIX systems, the DB2 process owner must have the appropriate permissions to write to the directory specified in TracePathName.
Only review the trace files created at the time of problem re-creation.
Each DB2 process generates its own trace file. The events in the DB2 CLI trace are specific to DB2 clients.