1

Im trying to degub a program using Springs's jdbcTemplate and I would really like to view the query. Is there any way to either use the debugger or a db2 watcher to see the outgoing/incoming queries?

Thanks for any help.

Joseph Dailey
  • 4,735
  • 2
  • 15
  • 18

1 Answers1

1

You can enable the JDBC trace, e.g. by adding the property traceFile=/path/to/trace.file; to your JDBC URL. More details: http://www-01.ibm.com/support/knowledgecenter/SSEPGG_9.7.0/com.ibm.db2.luw.admin.trb.doc/doc/t0020709.html?lang=en

Keep in mind that it affects the driver performance, obviously.

mustaccio
  • 18,234
  • 16
  • 48
  • 57