Table of Contents

Search

  1. Preface
  2. Part 1: PowerExchange CDC Introduction
  3. Part 2: PowerExchange CDC Components
  4. Part 3: PowerExchange CDC Data Sources
  5. Part 4: Change Data Extraction
  6. Part 5: Monitoring and Tuning
  7. Appendix A: DTL__CAPXTIMESTAMP Time Stamps

CDC Guide for Linux, UNIX, and Windows

CDC Guide for Linux, UNIX, and Windows

Configuring ODBC on Linux

Configuring ODBC on Linux

On Linux, you can use the DataDirect ODBC driver manager or the unixODBC driver manager to establish an ODBC connection.
  • If you use the DataDirect driver manager, you can either enter a host name (or IP address) and a port number, separated by a colon (:), or enter a DSN when you create an SAP HANA registration group.
  • If you use the unixODBC driver manager, you must specify a DSN for the connection.
Create environment variables for the paths to odbc.ini and odbcinst.ini files and to the ODBC library that is specified by the ODBCHOME variable. By default, the files are in the ODBC7.1 folder:
ODBCINST=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1/odbcinst.ini ODBCINI=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1/odbc.ini
The path for ODBCHOME variable depends on the installation of the ODBC driver manager on the Linux system.
The following example shows the path for the unixODBC driver manager:
ODBCHOME=/usr/lib64
The following example shows the path for the DataDirect driver manager:
export ODBCHOME=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1
The following example shows a sample entry for the SAP HANA driver in the odbcinst.ini file:
[ODBC Drivers] HDBODBC=Installed [HDBODBC] DRIVER=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1/lib/libodbcHDB.so DESCRIPTION=HANA Driver SETUP=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1/lib/libodbcHDB.so CPTIMEOUT=0 DriverManagerEncoding=UTF-8
The following example shows a sample entry in the odbc.ini file for the SAP HANA data source:
[HXEHOST] DRIVER=/dtl/
installdirectory
/ODBC/linux-x64/ODBC7.1/lib/libodbcHDB.so SERVERNODE=
ip_address
:
port_number
USER=
user_name
PASSWORD=
password
DATABASENAME=
db_name
DRIVERUNICODETYPE=1 DESCRIPTION=
description

0 COMMENTS

We’d like to hear from you!