ODBC trace
You can use various methods to trace for ODBC activity, depending on the operating system
that you are using.
Starting trace
About this task
To start trace on Windows, complete step 1 or step 2 depending on your
database. To start trace on Linux® or UNIX, complete step 3:
Procedure
- To trace ODBC interactions with an Oracle, PostgreSQL, or Sybase database,
complete the following steps:
- Copy the uktrc95.dll and ukicu.dll binaries
from your <ACE_INSTALL_DIR>\bin directory to the
C:\Windows\System32 directory.
- On the Windows
Start page, type “ODBC Administrator” to start the “ODBC Data Source
Administrator (64-bit)” application.
- Click the Tracing tab.
- Click the Select DLL button.
- Select the C:\Windows\System32\uktrc95.dll.
- Click the Apply button.
- Optionally set a Log File Path to specify where the ODBC trace logs
are written to.
- Click the Windows button.
- Select Machine-Wide tracing for all user
identities.
- Click Start Tracing Now.
- To trace ODBC interactions with all other database types, complete the
following steps:
- On the Start page, type “ODBC Administrator” to start the “ODBC
Data Source Administrator (64-bit)” application.
- Click the Tracing tab.
- Optionally set a Log File Path to specify where the ODBC trace logs
are written to and click the Apply button.
- Select Machine-Wide tracing for all user
identities.
- Click Start Tracing Now.
- Click OK.
- To start ODBC tracing on Linux or UNIX, edit the [ODBC] stanza in the odbcinst.ini
file in the directory pointed to by your ODBCSYSINI environment variable as follows:
- Change Trace=no to Trace=yes.
- Specify a path and file name for TraceFile.
- Make sure that the TraceFile entry points to a file system that has
enough space to receive the trace output.
- Save the file.
Stopping trace
About this task
To stop trace on Windows, complete step 1. To stop trace on Linux or UNIX, complete step 2.
Procedure
- To stop trace on Windows, complete the
following steps:
- On the Start page, type “ODBC Administrator” to start the “ODBC
Data Source Administrator (64-bit)” application.
- Click the Tracing tab.
- Click Stop tracing now .
- Click OK .
- To stop tracing on Linux or UNIX, edit the [ODBC] stanza in the odbcinst.ini
file in the directory pointed to by your ODBCSYSINI environment variable as follows:
- Change Trace=yes to Trace=no.
- Save the file.