Before you create an SAP HANA connection to read from or write to SAP HANA databases, ensure to complete certain prerequisites.
An SAP HANA administrator must perform the following tasks on a Windows or Linux machine based on the operating system where the Secure Agent is installed:
1Install the 64-bit SAP HANA ODBC driver.
2Create an ODBC data source based on your operating system:
- On Windows, use the ODBC data source administrator to create and configure a data source for the SAP HANA ODBC driver.
- On Linux, add the data source entries to the odbc.ini file in the system $ODBCHOME directory.
3Download and configure the ngdbc.jar file.
After the administrator completes the configurations, you can set up and use an SAP HANA connection in mappings and mapping tasks.
Creating a HANA ODBC Data Source on Windows
After you install the SAP HANA ODBC driver on Windows, use the ODBC data source administrator to create an SAP HANA ODBC data source.
1Select Start> Administrative Tools > Data Source (ODBC).
The ODBC Data Source Administrator dialog box appears.
2Click the System DSN tab, and then click Add.
The Create New Data Source dialog box appears.
3Select the HANA ODBC driver HDBODBC for 64-bit Windows or driver HDBCODBC32 for 32-bit Windows to set up the SAP HANA data source.
4Click Finish.
The SAP HDB dialog box opens.
5Enter the data source name, description, server and port fields required to access SAP HANA.
Additionally, click Connect to verify to test if the ODBC connection successfully connects to the SAP HANA server.
6Click OK to complete the driver configuration.
Adding entries in Linux operating system
After you install the SAP HANA ODBC driver on Linux, configure the SAP HANA ODBC data source. The operating system user that runs the Informatica processes must have read and execute permissions on the SAP HANA ODBC driver file.
1Set the following environment variables.
ODBCHOME
Set the variable to the ODBC installation directory.
For example, setenv ODBCHOME /export/home/Informatica Cloud Secure Agent/drivers/misc/latest/bin
ODBCINI
Set the variable to the directory that contains the odbc.ini file.
For example, setenv ODBCINI /export/home/Informatica Cloud Secure Agent/odbc.ini
ODBCINST
Set the variable to the directory that contains the odbcinst.ini file.
For example, setenv ODBCINST /export/home/Informatica Cloud Secure Agent/odbcinst.ini
LD_LIBRARY_PATH, LIBPATH, or SHLIB_PATH
Set the shared library environment variable to the directory where the SAP HANA ODBC driver is installed.
For example, setenv LD_LIBRARY_PATH ".:${PM_HOME}:${JAVA_HOME}/lib:${ORACLE_HOME}/lib:/usr/sap/hdbclient:"
2Add the SAP HANA driver details to the odbcinst.ini file located in the Secure Agent installation directory.
For example, append the following SAP HANA driver details in the odbcinst.ini file to connect to the SAP HANA database:
The odbc.ini and odbcinst.ini files must be in the same location.
Downloading and configuring libraries
SAP HANA Connector uses JDBC to import the metadata. Hence, to read data from the SAP HANA database, download the ngdbc.jar file and configure it on the Secure Agent machine. Contact SAP Customer Support if you encounter any issues with downloading the file.