<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – ODBC client driver</title>
    <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/</link>
    <description>Recent content in ODBC client driver on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/connecting-to/client-libraries/client-drivers/install-config/odbc/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Connecting-To: Installing the ODBC client driver</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/installing-odbc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/installing-odbc/</guid>
      <description>
        
        
        &lt;p&gt;To install ODBC, follow the instructions according to your platform. For a list of supported platforms, see &lt;a href=&#34;../../../../../../en/supported-platforms/client-drivers-support/#&#34;&gt;Client drivers support&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This page covers a non-FIPS installation. To install ODBC on a FIPS-compliant system, see &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/fips/installing-fips-client-driver-odbc-and-vsql/#&#34;&gt;Installing the FIPS client driver for ODBC and vsql&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;installing-opentexttrade-analytics-database-on-linux&#34;&gt;Installing OpenText™ Analytics Database on Linux&lt;/h2&gt;
&lt;p&gt;Installing OpenText™ Analytics Database from the RPM automatically installs the ODBC client driver, so you do not need to install them again on the machine running the database. To use the ODBC client driver, &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/creating-an-odbc-dsn-linux/&#34;&gt;create a DSN&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To install the ODBC client driver manually on other machines:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Log in to the client system as root.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that your system has a &lt;a href=&#34;../../../../../../en/supported-platforms/client-drivers-support/&#34;&gt;supported&lt;/a&gt; ODBC driver manager.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Download the &lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;ODBC client driver&lt;/a&gt; for Linux in the format appropriate for your distribution.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install or extract the driver:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If you downloaded the &lt;code&gt;.rpm&lt;/code&gt;, install the driver:

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

If the client driver is already installed on your system (either from a manual installation or from automatic installation from the OpenText™ Analytics Database RPM) and you attempt to reinstall them manually, you will receive error messages. To bypass these errors and overwrite the existing driver installations, use the &lt;code&gt;--force&lt;/code&gt; flag.

&lt;/div&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ rpm -Uvh &lt;span class=&#34;code-variable&#34;&gt;driver_name&lt;/span&gt;.rpm
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you downloaded the &lt;code&gt;.tar&lt;/code&gt;, create the &lt;code&gt;/opt/vertica/&lt;/code&gt; directory if it does not already exist, copy the &lt;code&gt;.tar&lt;/code&gt; to it, navigate to it, and extract the &lt;code&gt;.tar&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
$ mkdir -p /opt/vertica/
$ cp driver_name.tar.gz /opt/vertica/
$ tar vzxf driver_name.tar.gz
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This creates two directories:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;/opt/vertica/include&lt;/code&gt;: Contains the header file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;/opt/vertica/lib64/&lt;/code&gt; (64-bit) or &lt;code&gt;/opt/vertica/lib/&lt;/code&gt; (32-bit): Contains library files.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set the following ODBC driver settings in &lt;code&gt;vertica.ini&lt;/code&gt;. For details on each, see &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/odbc-driver-settings/#&#34;&gt;ODBC driver settings&lt;/a&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ErrorMessagesPath&lt;/code&gt;: Required, the path of the directory containing the ODBC driver&#39;s error message files.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ODBCInstLib&lt;/code&gt;: The path to the ODBC installer library. This is only required if the driver manager&#39;s installation library is not in the environment variables &lt;code&gt;LD_LIBRARY_PATH&lt;/code&gt; or &lt;code&gt;LIB_PATH&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DriverManagerEncoding&lt;/code&gt;: The UTF encoding standard used by the driver manager. This is only required if your driver manager does not use UTF-8.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The following is an example configuration in &lt;code&gt;vertica.ini&lt;/code&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Use encoding for the 64-bit UNIXODBC driver manager.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Use the error messages defined in the standard Vertica 64-bit ODBC driver installation directory.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/configuring-odbc-logs/&#34;&gt;Log all warnings and more severe messages&lt;/a&gt; to log files in &lt;code&gt;/tmp/&lt;/code&gt;&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Driver]
DriverManagerEncoding=UTF-16
ODBCInstLib=/usr/lib64/libodbcinst.so
ErrorMessagesPath=/opt/vertica
LogLevel=4
LogPath=/tmp
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/creating-an-odbc-dsn-linux/&#34;&gt;Create a DSN&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;installing-on-macos&#34;&gt;Installing on macOS&lt;/h2&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

You can only have one installation per version of the ODBC driver on a macOS system. This is because each installation is identified by a package ID and version number, and package ID does not change between versions of the driver.

&lt;/div&gt;
&lt;p&gt;To install the ODBC client driver on macOS:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Verify that your system has a compatible driver manager. The driver is designed to be used with the standard &lt;a href=&#34;http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/Downloads&#34;&gt;iODBC&lt;/a&gt; Driver Manager that ships with macOS. You can also use &lt;a href=&#34;http://www.unixodbc.org/&#34;&gt;unixODBC&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;Download&lt;/a&gt; the ODBC client driver.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If you installed a previous version of the ODBC driver, your system might already have a registered driver named &amp;quot;Vertica&amp;quot;. You must remove or rename this older version of the driver before installing a new version from the &lt;code&gt;.pkg&lt;/code&gt; installer. Renaming the older version allows you to retain the old version after you install the new one.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the installer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/mac-dsn/&#34;&gt;Create a DSN&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;installing-silently&#34;&gt;Installing silently&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Log into the client macOS in one of two ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;As an administrator account if you are installing the driver for system-wide use.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;As the user who needs to use the database ODBC driver.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Open a terminal.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Install the &lt;code&gt;.pkg&lt;/code&gt; file containing the ODBC driver using the command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo installer -pkg &lt;span class=&#34;code-variable&#34;&gt;path/to/client/driver/&lt;/span&gt;vertica-odbc-&lt;span class=&#34;code-variable&#34;&gt;xx.x.x-x&lt;/span&gt;.pkg -target /
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;installing-on-windows&#34;&gt;Installing on Windows&lt;/h2&gt;
&lt;p&gt;To install the ODBC client driver on Windows:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;Download&lt;/a&gt; the client driver installer for Windows.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the installer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/windows-dsn/&#34;&gt;Create a DSN&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;installing-silently-1&#34;&gt;Installing silently&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open a terminal as an Administrator.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the following command to silently install the drivers to &lt;code&gt;C:\Program Files\Vertica Systems&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;VerticaSetup.exe -q -install InstallFolder=&amp;#34;C:\Program Files\Vertica Systems&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Upgrading and downgrading ODBC</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/upgrading-and-downgrading-odbc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/upgrading-and-downgrading-odbc/</guid>
      <description>
        
        
        &lt;h2 id=&#34;linux&#34;&gt;Linux&lt;/h2&gt;
&lt;p&gt;To upgrade ODBC:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/uninstalling-odbc/&#34;&gt;Uninstall&lt;/a&gt; the current version of the driver.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/installing-odbc/&#34;&gt;Install&lt;/a&gt; the new version of the driver.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;macos&#34;&gt;macOS&lt;/h2&gt;
&lt;p&gt;To upgrade or downgrade ODBC:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Upgrade&lt;/strong&gt;: Newly installed versions of the OpenText™ Analytics Database ODBC driver for macOS automatically upgrade the relevant driver system settings. Any DSNs associated with a previous version of the driver are not affected, except that they begin using the newer version of the driver.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Downgrade&lt;/strong&gt;: Run the uninstall script to remove the current version of the database ODBC driver for macOS. Complete this step before installing an older driver version.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;windows&#34;&gt;Windows&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;Download&lt;/a&gt; the Windows client driver installer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the installer and follow the prompts to upgrade the driver. The installer upgrades existing drivers in place.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reboot your system.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;


      </description>
    </item>
    
    <item>
      <title>Connecting-To: Uninstalling ODBC</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/uninstalling-odbc/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/uninstalling-odbc/</guid>
      <description>
        
        
        &lt;h2 id=&#34;linux&#34;&gt;Linux&lt;/h2&gt;
&lt;p&gt;If you installed ODBC with the &lt;code&gt;.rpm&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ rpm -e &lt;span class=&#34;code-variable&#34;&gt;package_name&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you installed ODBC with the &lt;code&gt;.tar&lt;/code&gt;, delete the directory manually.&lt;/p&gt;
&lt;h2 id=&#34;macos&#34;&gt;macOS&lt;/h2&gt;
&lt;p&gt;Uninstalling the macOS ODBC Client-Driver does not remove any existing DSNs associated with the driver.&lt;/p&gt;
&lt;p&gt;To uninstall:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open a terminal window.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the command:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo /Library/Vertica/ODBC/bin/Uninstall
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&#34;windows&#34;&gt;Windows&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open the &lt;strong&gt;Add or Remove Programs&lt;/strong&gt; menu.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;EIther uninstall the &lt;strong&gt;Vertica Client Installer&lt;/strong&gt;  to remove all client drivers from the system or, to only uninstall ODBC, uninstall the following applications:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Vertica ODBC Driver (32 Bit)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Vertica ODBC Driver (64 Bit)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Creating an ODBC data source name (DSN)</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/creating-an-odbc-data-source-name-dsn/</guid>
      <description>
        
        
        &lt;p&gt;A Data Source Name (DSN) is the logical name that is used by Open Database Connectivity (ODBC) to refer to the driver and other information that is required to access data from a data source. Whether you are developing your own ODBC client code or you are using a third-party tool that needs to access OpenText™ Analytics Database using ODBC, you need to configure and test a DSN. The method you use depends upon the client operating system you are using.&lt;/p&gt;
&lt;p&gt;Refer to the following sections for information specific to your client operating system.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: ODBC driver settings</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/odbc-driver-settings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/odbc-driver-settings/</guid>
      <description>
        
        
        
&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

While required settings are required for all platforms, these settings automatically set by the Windows and macOS &lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;installers&lt;/a&gt;, so all directives to change these settings are for Linux users.

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;DriverManagerEncoding&lt;/code&gt;: The UTF encoding standard used by the driver manager. This can be one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UTF-8&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UTF-16&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;UTF-32&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The ODBC driver encoding must match that of your driver manager. The following table lists default encodings for various platforms that take effect if you do not set this parameter. If the defaults do not match the encoding used by your driver manager, you must set it manually. Consult your driver manager&#39;s documentation for details on its encoding.&lt;/p&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

While both UTF-16 and UTF-8 are valid settings for the DataDirect driver manager, UTF-16 is recommended.

&lt;/div&gt;

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Client Platform&lt;/th&gt; 

&lt;th &gt;
Default Encoding&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Linux 32-bit&lt;/td&gt; 

&lt;td &gt;


UTF-32&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Linux 64-bit&lt;/td&gt; 

&lt;td &gt;


UTF-32&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Linux Itanium 64-bit&lt;/td&gt; 

&lt;td &gt;


UTF-32&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


OS X&lt;/td&gt; 

&lt;td &gt;


UTF-32&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Windows 32-bit&lt;/td&gt; 

&lt;td &gt;


UTF-16&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


Windows 64-bit&lt;/td&gt; 

&lt;td &gt;


UTF-16&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;

&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ErrorMessagesPath&lt;/code&gt;: Required, the path of the directory containing the ODBC driver&#39;s error message files. These files (&lt;code&gt;ODBCMessages.xml&lt;/code&gt; and &lt;code&gt;VerticaMessages.xml&lt;/code&gt;) are stored in the same directory as the OpenText™ Analytics Database ODBC driver files (for example, &lt;code&gt;opt/vertica/en-US&lt;/code&gt; in the &lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;downloaded&lt;/a&gt; &lt;code&gt;.tar&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;ODBCInstLib&lt;/code&gt;: The path to the ODBC installer library. This setting is only required if the directory containing the library is not set in the &lt;code&gt;LD_LIBRARY_PATH&lt;/code&gt; or &lt;code&gt;LIB_PATH&lt;/code&gt; environment variables. The library files for the major driver managers are:&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;UnixODBC: &lt;code&gt;libodbcinst.so&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;iODBC: &lt;code&gt;libiodbcinst.so&lt;/code&gt; (&lt;code&gt;libiodbcinst.2.dylib&lt;/code&gt; on macOS)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;DataDirect: &lt;code&gt;libodbcinst.so&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You can also control client-server message logging for both ODBC and ADO.NET. For details, see &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/configuring-odbc-logs/#&#34;&gt;Configuring ODBC logs&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;linux-and-macos&#34;&gt;Linux and macOS&lt;/h2&gt;
&lt;p&gt;To set these parameters on Linux or macOS:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Create a file &lt;code&gt;vertica.ini&lt;/code&gt; anywhere on the client system. Common locations are in &lt;code&gt;/etc/&lt;/code&gt; for a shared configuration, or the home directory for a per-user configuration.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Verify that users of the ODBC driver have read privileges on the file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Set the &lt;code&gt;VERTICAINI&lt;/code&gt; environment variable to the path of &lt;code&gt;vertica.ini&lt;/code&gt;. For example:&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;$ export VERTICAINI=/etc/vertica.ini
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;Create a section called &lt;code&gt;[Driver]&lt;/code&gt; in &lt;code&gt;vertica.ini&lt;/code&gt;:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Driver]
&lt;/code&gt;&lt;/pre&gt;&lt;ol&gt;
&lt;li&gt;Under &lt;code&gt;[Driver]&lt;/code&gt;, set parameters with the following format. Each parameter must have its own line:&lt;/li&gt;
&lt;/ol&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Driver]
DriverManagerEncoding=UTF-16
ODBCInstLib=/usr/lib64/libodbcinst.so
&lt;/code&gt;&lt;/pre&gt;&lt;h3 id=&#34;windows&#34;&gt;Windows&lt;/h3&gt;
&lt;p&gt;The Windows &lt;a href=&#34;https://www.vertica.com/download/vertica/client-drivers/&#34;&gt;client driver installer&lt;/a&gt; automatically configures all necessary settings for the ODBC driver. Settings are stored in the registry in &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Vertica\ODBC\Driver&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;If you want to configure ODBC further, use the &lt;strong&gt;ODBC Data Sources&lt;/strong&gt; program.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Connecting-To: Configuring ODBC logs</title>
      <link>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/configuring-odbc-logs/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/connecting-to/client-libraries/client-drivers/install-config/odbc/configuring-odbc-logs/</guid>
      <description>
        
        
        &lt;p&gt;The following parameters control whether and how the ODBC client driver logs messages between the client and server.&lt;/p&gt;
&lt;p&gt;The way you set these parameters differs between operating systems:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;On Linux and macOS, edit &lt;code&gt;vertica.ini&lt;/code&gt; you created during the &lt;a href=&#34;../../../../../../en/connecting-to/client-libraries/client-drivers/install-config/odbc/installing-odbc/&#34;&gt;installation&lt;/a&gt;. For example, to log all warnings and more severe messages to log files in &lt;code&gt;/tmp/&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;[Driver]
LogLevel=4
LogPath=/tmp
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;On Windows, edit the keys in the Windows Registry under &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Vertica\ODBC\Driver&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;LogLevel&lt;/strong&gt;: The severity of messages that are logged between the client and the server. The valid values are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;0: No logging&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;1: Fatal errors&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;2: Errors&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;3: Warnings&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;4: Info&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;5: Debug&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;6: Trace (all messages)&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The value you specify for this setting sets the minimum severity for a message to be logged. For example, setting LogLevel to 3 means that the client driver logs all warnings, errors, and fatal errors.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;LogPath&lt;/strong&gt;: The absolute path of a directory to store log files. For example: &lt;code&gt;/var/log/verticaodbc&lt;/code&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;diverting-log-entires-to-etw-windows&#34;&gt;Diverting log entires to ETW (windows)&lt;/h2&gt;
&lt;p&gt;On Windows clients, ODBC log entries can be sent to Event Tracing for Windows (ETW) so they appear in the Windows Event Viewer:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Register the driver as a Windows Event Log provider and enable the logs.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Activate ETW by adding a string value LogType with data ETW to your Windows Registry.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Understand how OpenText™ Analytics Database compresses log levels for the Windows Event Viewer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Know where to find the logs within Event Viewer.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Understand the meaning of the Event IDs in your log entries.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id=&#34;registering-the-odbc-driver-as-a-windows-event-log-provider&#34;&gt;Registering the ODBC driver as a windows event log provider&lt;/h3&gt;
&lt;p&gt;To use ETW logging, you must register the ODBC driver as a Windows Event Log provider. You can choose to register either the 32-bit or 64-bit driver. After you have registered the driver, you must enable the logs.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
If you do not both register the driver and enable the logs, output is directed to stdout.
&lt;/div&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Open a command prompt window as Administrator, or launch the command prompt with the Run as Administrator option.&lt;/p&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
You must have administrator privileges to successfully complete the next step.
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the command &lt;code&gt;wevtutil im&lt;/code&gt; to register either the 32-bit or 64-bit version of the driver.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;For the 64-bit ODBC driver, run:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wevtutil im &amp;#34;c:\Program Files\Vertica Systems\ODBC64\lib\VerticaODBC64.man&amp;#34;
/resourceFilePath:&amp;#34;c:\Program Files\Vertica Systems\ODBC64\lib\vertica_9.1_odbc_3.5.dll&amp;#34;
/messageFilePath:&amp;#34;c:\Program Files\Vertica Systems\ODBC64\lib\vertica_9.1_odbc_3.5.dll&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For the 32-bit ODBC driver, run:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wevtutil im &amp;#34;c:\Program Files (x86)\Vertica Systems\ODBC32\lib\VerticaODBC32.man&amp;#34;
/resourceFilePath:&amp;#34;c:\Program Files (x86)\Vertica Systems\ODBC32\lib\vertica_9.1_odbc_3.5.dll&amp;#34;
/messageFilePath:&amp;#34;c:\Program Files (x86)\Vertica Systems\ODBC32\lib\vertica_9.1_odbc_3.5.dll&amp;#34;
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Run the command &lt;code&gt;wevtutil sl&lt;/code&gt; to enable the logs.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;For 64-bit ODBC driver logs, run:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wevtutil sl VerticaODBC64/e:true
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;For the 32-bit ODBC driver logs, run:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;wevtutil sl VerticaODBC32/e:true
&lt;/code&gt;&lt;/pre&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Should you want to later disable the logs, you can use the same &lt;code&gt;wevtutil sl&lt;/code&gt; command, substituting &lt;code&gt;/e:false&lt;/code&gt; in place of &lt;code&gt;/e:true&lt;/code&gt; when you issue the statement. Alternatively, you can enable or disable logs within the Windows Event Viewer itself.

&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3 id=&#34;add-the-string-value-logtype&#34;&gt;Add the string value LogType&lt;/h3&gt;
&lt;p&gt;By default, the database does not send ODBC log entries to ETW. To activate ETW, add the string &lt;code&gt;LogType&lt;/code&gt; to your Windows registry, and set its value to &lt;code&gt;ETW&lt;/code&gt;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Start the registry editor by typing &lt;code&gt;regedit.exe&lt;/code&gt; in the Windows Run command box.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Navigate to &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Vertica\ODBC\Driver&lt;/code&gt; in the registry.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Right-click in the right pane of the &lt;strong&gt;Registry Editor&lt;/strong&gt; window.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select &lt;strong&gt;New&lt;/strong&gt;, then select &lt;strong&gt;String Value&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Change the name of the string value from &lt;code&gt;New Value #1&lt;/code&gt; to &lt;code&gt;LogType&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Double-click the new &lt;code&gt;LogType&lt;/code&gt; entry. When prompted for a new value, enter &lt;code&gt;ETW&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Exit the registry editor.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;ETW is disabled by default. When ETW is enabled, you can disable it by clearing the value ETW from the LogType string.&lt;/p&gt;
&lt;h3 id=&#34;loglevel-in-the-windows-event-viewer&#34;&gt;LogLevel in the windows event viewer&lt;/h3&gt;
&lt;p&gt;While LogLevel ranges from 0 through 6, this range is compressed for the Windows Event Viewer to a range of 0 through 3.

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
Vertica LogLevel Setting&lt;/th&gt; 

&lt;th &gt;
Vertica LogLevel Description&lt;/th&gt; 

&lt;th &gt;
Log level sent to the Windows Event Viewer&lt;/th&gt; 

&lt;th &gt;
Log level displayed by the Windows Event Viewer&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


0&lt;/td&gt; 

&lt;td &gt;


(No logging)&lt;/td&gt; 

&lt;td &gt;
0&lt;/td&gt; 

&lt;td &gt;
(No logging)&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


1&lt;/td&gt; 

&lt;td &gt;


Fatal Errors&lt;/td&gt; 

&lt;td &gt;
1&lt;/td&gt; 

&lt;td &gt;
Critical&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


2&lt;/td&gt; 

&lt;td &gt;


Errors&lt;/td&gt; 

&lt;td &gt;
2&lt;/td&gt; 

&lt;td &gt;
Error&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
3&lt;/td&gt; 

&lt;td &gt;
Warnings&lt;/td&gt; 

&lt;td &gt;
3&lt;/td&gt; 

&lt;td &gt;
Warning&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
4&lt;/td&gt; 

&lt;td &gt;
Info&lt;/td&gt; 

&lt;td &gt;
4&lt;/td&gt; 

&lt;td  rowspan=&#34;3&#34; &gt;



Information&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
5&lt;/td&gt; 

&lt;td &gt;
Debug&lt;/td&gt; 

&lt;td &gt;
4&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
6&lt;/td&gt; 

&lt;td &gt;
Trace (all messages)&lt;/td&gt; 

&lt;td &gt;
4&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;The following examples show how LogLevel is converted when displayed in the Windows Event Viewer.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;A LogLevel of 5 sends fatal errors, errors, warnings, info and debug log level entries to Event Viewer as Level 4 (Information).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;A LogLevel of 6 sends fatal errors, errors, warnings, debug and trace log level entries to Event Viewer as Level 4.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3 id=&#34;finding-logs-in-the-event-viewer&#34;&gt;Finding logs in the event viewer&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Launch the &lt;strong&gt;Windows Event Viewer&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;From &lt;strong&gt;Event Viewer (Local)&lt;/strong&gt;, expand &lt;strong&gt;Applications and Services Logs&lt;/strong&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Expand the folder that contains the log you want to review (for example, &lt;code&gt;VerticaODBC64&lt;/code&gt;).&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Select the database ODBC log under the folder. Entries appear in the right pane.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Note the value in the &lt;strong&gt;Event ID&lt;/strong&gt; field. Each Event Log entry includes one of four Event IDs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;0: Informational (debug, info, and trace events)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;1: Error&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;2: Fatal event&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;3: Warning&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

      </description>
    </item>
    
  </channel>
</rss>
