r3 - 2016-01-28 - 14:26:33 - PhilippeChevalierYou are here: TWiki >  Deployment Web > DeploymentTroubleshooting > PerformanceTroubleshooting > RTCTroubleshootingBasicsandDataCollection > EnablingtheIBMDataServerdriverforJDBCandSQLJ

Enabling the IBM Data Server driver for JDBC and SQLJ todo.png

Authors: PhillipeChevalier, TWikiUser
Build basis: Products, editions, or versions that apply to the content. If no build basis applies to this content, set the build basis to None.

It is possible that when investigating concerns with JAZZ products utilizing DB2 that you will be requested to collect IBM Data server Trace for the db2 JDBC.

The following procedure will guide you to enable a JDBC driver trace on a Websphere Application Server Profile (Java virtual Machine [JVM]).

Enabling the IBM Data Server Driver for JDBC and SQLJ

First step please read the details in the following technote

Collecting Data: Tracing with the IBM Data Server driver for JDBC and SQLJ

Create the DB2JccConfiguration.properties in the WebSphere profile's properties directory $WAS_HOME/profiles/$PROF_NAME/properties

Example /opt/IBM/WebSphere/AppServer/profiles/CSST01/properties/DB2JccConfiguration.properties

Enter the following entry in the DB2JccConfiguration.properties

Example of DB2JccConfiguration.properties

[root@chevalie properties]# more DB2JccConfiguration.properties


NOTE: This location is already part of the WAS CLASSPATH, and is the reason why it is selected. Also, make sure you have plenty of room and that write permission on the targeted path for the db2.jcc.traceDirectory location is correctly set for the owner of the JVM processes.

Setup the Java option for a\enabling the trace on the JVM:

In this next steps we will be adding a java argument to the Java virtual Machine properties.




Add the this java argument java option to the “Generic JVM arguments”, bread crumb trail from the WAS Admin console is “Application servers > server1 > Process definition > Java Virtual Machine”


Restart the Application server profile to load the new java argument in the Generic options

Once JCC trace is enabled on Jazz product, DB2 server trace has to be enabled on the DB2 database server

  1. Turn on the trace:
    db2trc on -t -f trace.dmp
  2. Recreate the problem on the Jazz application affected by the concern being investigated
  3. Stop the db2trace:
    db2trc off
  4. Stop the JCC trace on the application server:
    Remove the the DB2JccConfiguration.properties from “Generic JVM arguments” in the WebSphere JVM properties
    and, recycle the application server.
  5. Flow the trace:
    db2trc flw -t trace.dmp trace.flw
  6. Format the trace:
    db2trc fmt trace.dmp trace.fmt
  7. Format the communications buffers:
    db2trc fmt trace.dmp trace.fmtc -c

Send trace.flw, trace.fmt, trace.fmtc files and JCC traces back to your support organization requesting the information for review.

Please use the following tool to upload to the IBM support organization.

Enhanced Customer Data Repository(ECuRep)

How to upload and attach file(s)/data to my PMR

Related topics: Deployment web home, Deployment web home

External links:

Additional contributors: TWikiUser, TWikiUser

Topic attachments
I Attachment Action Size Date Who Comment
JpgJPG BreadCrumToJVMProp.JPG manage 48.8 K 2016-01-28 - 13:09 PhilippeChevalier  
JpgJPG JVM_GENERIC.JPG manage 24.0 K 2016-01-28 - 13:07 PhilippeChevalier  
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Contributions are governed by our Terms of Use. Please read the following disclaimer.
Ideas, requests, problems regarding the Deployment wiki? Create a new task in the RTC Deployment wiki project