Installing ODBC drivers on Linux

Read Driver Prerequisites before you proceed.

Read Driver prerequisites before you proceed.

For Red Hat Enterprise Linux and SUSE Linux Enterprise Server, you can download and install a client RPM that installs both the ODBC and JDBC driver and the vsql client. See Installing the client RPM on red hat and SUSE.

The ODBC driver installation packages are broken down by client platform on the Vertica driver downloads page. The package's filename is named based on its operating system and architecture (for example, vertica_ 11.1.x.xx_odbc_x86_64_linux.tar.gz)

Installation procedure

  1. Open a web browser and browse to the Vertica driver downloads page.

  2. Locate and download the driver package that matches your Vertica version and platform.

  3. If you did not directly download to the client system, transfer the downloaded file to it.

  4. Log in to the client system as root.

  5. If the directory /opt/vertica/ does not exist, create it:

    # mkdir -p /opt/vertica/
    
  6. Copy the downloaded file to the /opt/vertica/ directory. For example:

    # cp vertica_11.1.x.xx_odbc_x86_64_linux.tar.gz /opt/vertica/
    
  7. Change to the /opt/vertica/ directory:

    # cd /opt/vertica/
    
  8. Uncompress the file you downloaded. For example:

    $ tar vzxf vertica_ 11.1.x.xx_odbc_x86_64_linux.tar.gz

    Two folders are created: one for the include file, and one for the library files. The path of the library file depends on the processor architecture: lib for 32-bit libraries, and lib64 for 64-bit libraries. So, a 64-bit driver client download creates the directories:

    • /opt/vertica/include, which contains the header file

    • /opt/vertica/lib64, which contains the library file

Post driver installation configuration

You must configure the ODBC driver before you can use it. There are two required configuration files: