This article shows how to enable Db2 driver connection tracing in Web Viewer 12.1 for troubleshooting and monitoring.
Enable tracing of the DB2 connection
Prerequisites
Steps
|
<CURRENT_JDBCURL>;traceFile=C:/temp/db2trace.log;traceLevel=512;traceFileAppend=true;traceFileCount=30;traceFileSize=209715200;traceOption=1; |
|
Parameter |
Description |
|
traceFile |
Path to the trace file. Must be writable. |
|
traceLevel |
Specifies what to trace. The data type of this property is int. |
|
traceFileAppend |
Specifies whether to append to or overwrite the file that is specified by the traceFile property |
|
traceFileCount |
Specifies the maximum number of trace files for circular tracing. |
|
traceFileSize |
Specifies the maximum size of each trace file, for circular tracing. |
|
traceOption |
1 - To enable circular tracing. 0 - single file tracing and that there is no limit to the size of the file |
More information
You can customize these settings for more detailed tracing. See IBM documentation:
“Common IBM Data Server Driver for JDBC and SQLJ properties for all supported database products.”.
@echo off
REM Add DB2 JCC trace properties
set CATALINA_OPTS=%CATALINA_OPTS% -Ddb2.jcc.traceFile=C:/Users/hg667152/ISO/CA_OM_Web_Viewer_ISO_253/config/db2jcc_trace.log -Ddb2.jcc.traceLevel=TRACE_ALL
Problem diagnosis with the IBM Data Server Driver for JDBC and SQLJ
Common IBM Data Server Driver for JDBC and SQLJ properties for all supported database products