IBM Books

Call Level Interface Guide and Reference


Appendix K. Using the DB2 CLI/ODBC Trace Facility

  • Enabling the Trace Using the db2cli.ini File
  • Locating the Resulting Files
  • Reading the Trace Information
  • Detailed Trace File Format
  • Example Trace File
  • Tracing Muli-Threaded or Muli-Process Applications
  • ODBC Driver Manager Tracing
  • Applications using either DB2 CLI or ODBC and the IBM DB2 CLI/ODBC Driver can have all the function calls traced to a plain text file. This can help with problem determination, datababase and application tuning or just to better understand what a 3rd party application is doing.

    The trace can be enabled at runtime using the CLI/ODBC Settings notebook, accessible from the Client Configuration Assistant if it is available, or by editing the db2cli.ini file directly. A DB2 CLI application can also enable the trace by setting the SQL_ATTR_TRACE and SQL_ATTR_TRACEFILE Environment or Connection attributes. These are the same attributes used by the tracing facility in the Microsoft ODBC Driver Manager.


    [ Top of Page | Previous Page | Next Page | Table of Contents | Index ]

    [ DB2 List of Books | Search the DB2 Books ]