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 for SAP HANA or the unixODBC driver to establish an ODBC connection.
  • If you use the DataDirect driver, you must enter the database name when you create a capture registration.
  • If you use the unixODBC driver, 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:
ODBCINST=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1/lib/odbcinst.ini ODBCINI=/dtl/
install_directory
/ODBC/linux-x64/ODBC7.1/lib/odbc.ini
The path for ODBCHOME variable depends on the installation of the ODBC driver on the Linux system.
The following example shows the path for the unixODBC driver:
ODBCHOME=/usr/lib64
The following example shows the path for the DataDirect driver:
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!