Nonstop Database, HiRDB Version 9 UAP Development Guide

[Contents][Index][Back][Next]

18.14.1 Setup for trace acquisition

Organization of this subsection
(1) Connection with the DriverManager class
(2) Connection with the DataSource class

(1) Connection with the DriverManager class

Specify a valid log writer by using the setLogWrite method of the DriverManager class, and specify acquisition of the JDBC interface method trace in the arguments (Properties info) of the getConnection method.

For details, see 18.2.2(2)(d) JDBC_IF and 18.2.2(2)(e) TRC_NO.

(2) Connection with the DataSource class

Specify a valid log writer by using the setLogWriter method provided by the DataSource, ConnectionPoolDataSource, and XADataSource interfaces, and specify the setJDBC_IF_TRC method provided by the DataSource, ConnectionPoolDataSource, and XADataSource classes, which are provided by the JDBC2.0 Optional Package.

For details, see 18.7.5 setJDBC_IF_TRC and 18.7.7 setTRC_NO.