JDBC Driver for SQL/MP 3.0
This table describes the set of properties that are required for a trace data source object:
Property Name Type Description
dataSourceName String
The data source name
description String
Description of this data source
traceDataSource String
The name of the DataSource object to be
traced
The traceDataSource object is used to obtain the JDBC connection to the database. Java applications should turn on
tracing using the setLogWriter method of the DataSource interface.
Tracing by Loading the Trace Driver Within the
Program
Enable tracing by loading the JDBC trace driver within the program by using the
Class.forName("com.tandem.jdbc.TDriver") method. This method also requires that you set the
DriverManager.setLogWriter method.
Tracing Using a Wrapper Data Source
Enable tracing by creating a wrapper data source around the data source to be traced. The wrapper data source contains
the TraceDataSource property that you can set to the data source to be traced. For information about demonstration
programs that show using this method, see JDBC Trace Facility Demonstration Programs.
Output Format
The format of the trace output is:
jdbcTrace:[thread-id]:[object-id]:className.method(param...)
where
thread-id
is the String representation of the current thread
object-id
is the hashcode of the JDBC object
className
is the JDBC implementation class name
Trace output is sent to the PrintWriter specified in the setLogWriter method.