Updated on 2025-05-29 GMT+08:00

Obtaining a Source Code Package, ODBC Packages, and Dependent Libraries

You need to obtain the unixODBC source code package, ODBC packages, and dependency libraries for ODBC-based development.

Obtaining the Source Package

Use the MD5 file to verify the integrity of the unixODBC source code package. (Check whether the MD5 value is the same as that in the source code package.)

Obtaining the Driver Package

Download the driver package and its verification package listed in Table 1.

Table 1 Driver package download list

Version

Download Address

V2.0-8.x

Driver package

Verification package for the driver package

To prevent a software package from being tampered with during transmission or storage, download the corresponding verification package and perform the following steps to verify the software package:
  • Verifying the software package integrity on a Linux server:
    1. Upload the software package and verification package to the same directory on the VM.
    2. Run the following command to verify the integrity of the software package:

      cat GaussDB_driver.zip.sha256 | sha256sum --check

      If OK is displayed in the command output, the verification is successful.

      GaussDB_driver.zip: OK
  • Verifying the software package integrity on a Windows server:
    1. Press Win+R to open the Run dialog box. Type cmd in the text box and press Enter to open the Command Prompt window.
    2. Run the following command to obtain the hash value of the driver package:

      certutil -hashfile {local_directory_of_the_driver_package}\{driver_package_name} sha256

      • Replace {local_directory_of_the_driver_package} with the actual download path, for example, C:\Users.
      • Replace {driver_package_name} with the name of the downloaded driver package, for example, GaussDB_driver.zip.

      Example: certutil -hashfile C:\Users\GaussDB_driver.zip sha256

    3. Compare the hash value obtained in 2 with the hash value of the verification package obtained in Table 1.
      • If they are consistent, the verification is successful.
      • If they are inconsistent, download the driver package again and repeat 1 to 3 to verify the driver package.

Obtaining ODBC Packages and Dependency Libraries

ODBC packages and dependency libraries support both Linux and Windows systems. You can select one as required.

  • Linux:

    Obtain the package GaussDB-Kernel_Database version number_OS version number_64bit_Odbc.tar.gz from the driver package. In the Linux OS, header files (including sql.h and sqlext.h) and the library (libodbc.so) are required in application development.

    The header files and the library can be obtained from the unixODBC-2.3.7 source code package.

  • Windows:

    Obtain the package GaussDB-Kernel_Database version number_Windows_X86_Odbc.tar.gz (32-bit) or GaussDB-Kernel_Database version number_Windows_X64_Odbc.tar.gz (64-bit) from the driver package.

    In the Windows OS, the required header files and library files are system-resident.