ODBC Driver for Amazon Redshift

Enabling ODBC Tracing - ODBC Driver for Amazon Redshift



Create an ODBC trace log on Windows

You can enable tracing of ODBC function calls using one of the following methods:

Enable tracing using ODBC Data Source Administrator

  1. Type ODBC Data Sources in the Windows search box (in versions earlier than Windows 10, open Control Panel > Administrative Tools) and choose the application of the needed bitness.
  2. Select the Tracing tab.
  3. Optional: Update the ODBC tracing options:
    • To change the default log path, specify the new path in the Log File Path field.
    • If the ODBC driver runs under a different user account, and you need to capture logs system-wide, select Machine-Wide Tracing.
    • To use a custom dynamic-link library (DLL) instead of the default Microsoft-provided one, specify the path to your DLL in the Custom Trace DLL field.
  4. Click Start Tracing Now.
  5. Once the issue is reproduced, click Stop Tracing Now to disable tracing.

Enable ODBC tracing in the driver settings

You need a configured system Data Source Name (DSN). For instructions, see Windows DSN Configuration.

  1. In the ODBC Data Source Administrator utility, on the User DSN or System DSN tab, select your DSN, then click Configure.
  2. Select the Tracing tab.
  3. In the Log File Path field, enter the location where you want to save the file.
  4. Click Start Logging Now.
  5. Optional: To verify that tracing is active, click Test Connection and check whether new entries appear in the log file.
  6. Click OK.
  7. Once the issue is reproduced, click Stop Logging Now to disable tracing.

Create an ODBC trace log on macOS

You can enable tracing of ODBC function calls using one of the following methods:

Enable tracing using iODBC Administrator

  1. Open iODBC Administrator.
  2. Select the Tracing tab.
  3. Optional: To change the default log path, specify the new path under Log file path.
  4. Under When to trace, select All the time.
  5. Click OK.
  6. Once the issue is reproduced, disable tracing by selecting Do not trace under Log file path and clicking OK.

Enable tracing in the odbcinst.ini file

  1. Open the odbcinst.ini file in one of the following locations:
  2. Under the [Devart ODBC Driver for Amazon Redshift] section, add the following options:
  3.  [Devart ODBC Driver for Amazon Redshift]
    LogFileName = <filepath>
    Logging = True
  4. Once the issue is reproduced, disable tracing by setting Logging to False in the odbcinst.ini file.

Create an ODBC trace log on Linux

You can enable tracing of ODBC function calls for all ODBC applications or specifically for Devart ODBC Driver for Amazon Redshift by editing the odbcinst.ini file.

Enable tracing for all ODBC applications

  1. Open the odbcinst.ini file.
  2. By default, the file is located at /etc/odbcinst.ini.

  3. Under the [ODBC] section, add the following options:
  4. [ODBC]
    Trace = Yes
    TraceFile = <filepath>
  5. Once the issue is reproduced, disable tracing by setting Trace to No in the odbcinst.ini file.

Enable tracing for Devart ODBC Driver for Amazon Redshift

  1. Open the odbcinst.ini file.
  2. By default, the file is located at /etc/odbcinst.ini.

  3. Under the [Devart ODBC Driver for Amazon Redshift] section, add the following options:
  4. [Devart ODBC Driver for Amazon Redshift]
    LogFileName = <filepath>
    Logging = True
  5. Once the issue is reproduced, disable tracing by setting Logging to False in the odbcinst.ini file.
© 2015-2025 Devart. All Rights Reserved. Request Support ODBC Forum Provide Feedback