IBM DB2 Manual page 380

Table of Contents

Advertisement

getTraceFile
setTraceDirectory
364
Application Programming Guide and Reference for Java
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_META_CALLS (X'2000')
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_DATASOURCE_CALLS (X'4000')
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_LARGE_OBJECT_CALLS
(X'8000')
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_T2ZOS (X'10000')
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_SYSTEM_MONITOR (X'20000')
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_TRACEPOINTS () (X'40000')
v com.ibm.db2.jcc.DB2BaseDataSource.TRACE_ALL (X'FFFFFFFF')
To specify more than one trace, use one of these techniques:
v Use bitwise OR (|) operators with two or more trace values. For
example, to trace DRDA flows and connection calls, specify this value
for traceLevel:
TRACE_DRDA_FLOWS|TRACE_CONNECTION_CALLS
v Use a bitwise complement (tilde (~)) operator with a trace value to
specify all except a certain trace. For example, to trace everything except
DRDA flows, specify this value for traceLevel:
~TRACE_DRDA_FLOWS
Format:
public void getTraceFile()
throws java.sql.SQLException
Returns the name of the destination file for the remote trace controller, if it is
set. Otherwise, getTraceFile returns null.
Format:
public void setTraceDirectory(String traceDirectory,
String baseTraceFileName,
int traceLevel) throws java.sql.SQLException
Specifies the name of the directory into which the remote trace controller
writes trace information, and the type of information that is to be traced.
Parameter descriptions:
traceDirectory
Specifies a directory into which trace information is written. This setting
overrides the settings of the traceDirectory and logWriter properties for a
DataSource or DriverManager connection.
Each JDBC driver connection is traced to a different file in the specified
directory. The naming convention for the files in that directory depends on
whether a non-null value is specified for baseTraceFileName:
v If a null value is specified for baseTraceFileName, a connection is traced
to a file named traceFile_global_n.
n is the nth JDBC driver connection.
v If a non-null value is specified for baseTraceFileName, a connection is
traced to a file named baseTraceFileName_global_n.
baseTraceFileName is the value of the baseTraceFileName parameter.
n is the nth JDBC driver connection.
baseTraceFileName
Specifies the stem for the names of the files into which global trace
information is written. The combination of baseTraceFileName and
traceDirectory determines the full path name for the global trace log files.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents