+

Search Tips   |   Advanced Search

JDBC trace configuration

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

Turn on tracing for most database JDBC implementations through the administrative console; see the topic, Enabling trace at server startup for instructions.

(ZOS) Turn on tracing for most database JDBC implementations through the administrative console; see the article Enabling trace, for instructions.

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

A few JDBC drivers require that we set trace differently, at the data source level. These drivers include:

Configuring trace for these drivers through the WAS.database group results in corrupt trace information. The application server sets trace for the group at the server level, causing the trace service to begin only after the application establishes an initial connection. Because that first connection does not carry trace information, re-use of it is never tracked. Consequently the application cannot accurately match trace information to connection use.

Set trace for the previously mentioned JDBC drivers through data source custom properties. For example, use the spyAttributes custom property to enable JDBC trace for the DataDirect Connect for JDBC driver. Consult your driver documentation for details on the custom property that enables trace for our JDBC implementation.


Provider-specific configuration

Some JDBC providers have custom properties and configuration settings that we can use to tweak their trace settings.


Additional resources

If the JDBC tracing service cannot help you isolate and fix our problem, consult the IBM Support website for WebSphere Application Server. Use the site search function to find current information on known problems and their resolutions. Locating the right troubleshooting tip can save time that we might otherwise spend on opening and tracking a PMR.

  • Data access problems
  • Enable trace at server startup