AIOps

 View Only
  • 1.  how to turn on JDBC tracing

    Posted Tue June 22, 2021 01:01 AM

    Sometimes we found DB2 DSA connection failure or DB2 table locked, but we can not find the reason, how we can turn on JDBC tracing for Impact 7.1


    #Support
    #NetcoolImpact
    #SupportMigration


  • 2.  RE: how to turn on JDBC tracing
    Best Answer

    Posted Tue June 22, 2021 01:02 AM

    1. In Impact 7.1, open jvm.options in a text editor.

    $IMPACT_HOME/wlp/usr/servers/<intance name>/jvm.options

    2. Add the following line:

    -Ddb2.jcc.propertiesFile=<JCC trace file>

    where <JCC trace file> points at the .properties text file, for example;

    -Ddb2.jcc.propertiesFile=/tmp/jcc.properties

    Ensure the file is in a location readable

    by the Impact server process.

    3. Save your changes and create the

    new properties file e.g.

    vi /tmp/jcc.properties

    4. Add the following properties to

    the file, change the directories as needed;

    db2.jcc.traceDirectory=/tmp

    db2.jcc.traceFile=jcctrace

    db2.jcc.traceFileAppend=true

    db2.jcc.traceLevel=-1

    db2.jcc.override.traceDirectory=/tmp

    db2.jcc.override.traceFile=jcctrace

    db2.jcc.override.traceFileAppend=true

    db2.jcc.override.traceLevel=-1

    5. Restart Impact server

    6. Use the 'Test Connection'

    button on the db2 data source in impact UI, confirm it fails, and send us

    nci_collect_logs and the jdbc trace files created in the traceDirectories you

    coded in the jcc.properties file.


    #NetcoolImpact
    #Support
    #SupportMigration


  • 3.  RE: how to turn on JDBC tracing
    Best Answer

    Posted Tue June 22, 2021 08:25 AM

    If your application displays JDBC-related exception messages, activate the JDBC trace service. The resulting log text can help you identify the problem.

    This method activates JDBC trace for all applications that run in the server you specify. Identify your database type by selecting the trace group WAS.database and typing one of the following trace strings in the console:

    com.ibm.ws.db2.logwriter

    Trace string for JDBC drivers of DB2® databases.

    See the following DB2 database sample:

    *=info:com.ibm.ws.db2.logwriter=all

    https://www.ibm.com/docs/en/was-zos/8.5.5?topic=problems-jdbc-trace-configuration


    #Support
    #NetcoolImpact
    #SupportMigration


  • 4.  RE: how to turn on JDBC tracing
    Best Answer

    Posted Wed June 23, 2021 03:56 AM

    Oops, accurately says, this topic is for enabling JDBC JCC trace.


    #NetcoolImpact
    #SupportMigration
    #Support