Enable Tracing Only as Needed
Performance impact: Large
Both ODBC and JDBC provide a trace facility to help debug
applications. For performance runs, make sure that tracing is disabled except when
debugging applications.
To turn the JDBC tracing on, use:
DriverManager.setLogStream method: DriverManager.setLogStream(new PrintStream(System.out, true));
By default tracing is off. You must call this method before you load a JDBC driver. Once you turn the tracing on, you cannot turn it off for the entire execution of the application.