Troubleshooting
Problem
Use this process to capture a trace of ODBC for the purpose of providing to IBM Support for analysis.
Resolving The Problem
- Locate the file 'odbcinst.ini' contained in the ODBCSYSINI directory path.
- Under the stanza '[ODBC]', change 'Trace=no' to 'Trace=yes'.
- [Optional] Enable timestamps in the trace by setting 'TraceOptions=3'.
- [Optional] Modify the 'TraceFile' file path value to a preferred value.
- Restart the Int. Server to pick up the change.
To stop ODBC tracing, change 'Trace=no' and restart the Int. Server.
Example odbcinst.ini file
[ODBC]
;# To turn on trace set Trace=yes
Trace=no
TraceFile={A Directory with plenty of free space to hold trace output}/odbctrace.out
;# Threading is not a configurable property
Threading=2
- Locate 'ODBC Data Source Administartor(64-bit)' or 'ODBC Data Sources(64-bit)'.
This can be found by searching on the Start menu, or through "Control Panel"\"System and Security"\"Administrative Tools" - Select the 'Tracing' tab.
- [Optional] Modify the Log File Path to a custom path and file name.
- Click the 'Start Tracing Now' button.
- Click 'OK'.
To stop ODBC tracing, go to the same panel and click the 'Stop Tracing Now' button and then click 'OK'.
- Edit the BIPDSNAO file in the component dataset and under the stanza entry [COMMON], change APPLTRACE=0 to APPLTRACE=1.
- Remove the comment from the COMPDIR variable declaration and the APPLTRC DD from the steps EGNOENV and EGENV, in the started task JCL.
- Stop and restart the Int. Node after you have made all the changes to the BIPDSNAO file and the started task JCL.
- Click the 'Start Tracing Now' button.
- Click 'OK'.
To stop ODBC tracing, change APPLTRACE=0 and restart the Int.Node.
Notes:
By default, the trace output file is written to {component_HFS}/output/, into a file labelled 'db2appltrace'.
The 'db2appltrace' filename will also include the eight character Int. Server label as well as a unique number representing the address space.
This unique number is the SE number in the Int. Server address space and can be found in the JOBLOG.
If the Int. Server label is not unique, look for the value of SE in the JOBLOG and then locate the corresponding ODBC trace file.
Related Information
Was this topic helpful?
Document Information
Modified date:
16 October 2023
UID
swg21177048