ODBC Connector > Connections for ODBC > Prerequisites
  

Prerequisites

To connect to a specific ODBC-compliant endpoint, you need to perform certain prerequisite tasks to install the database or data warehouse-specific ODBC driver and ODBC client on the Secure Agent machine to connect to your database or data warehouse.
Additionally, when you use Kerberos authentication to connect to DB2 or SAP Sybase ASE, you need to complete Kerberos authentication prerequisites.

Configure the ODBC driver

To use an ODBC connection, you'll need to set up a system Data Source Name (DSN) for the database or data warehouse-specific ODBC driver, and then install the ODBC driver and ODBC client on the Secure Agent machine.
An ODBC client can access any database and data warehouse for which you install an ODBC driver. Ensure that the ODBC driver you install complies with the ODBC-compliant endpoint to which you want to connect.
An ODBC connection uses only the system DSN. You can't use the user DSN when you configure an ODBC driver. When you set up the system DSN, you need to specify the data source name and connection string.
This section provides instructions to configure the ODBC driver on Windows and Linux machines that host the Secure Agent. You can use these instructions to set up your endpoint-specific ODBC driver. In certain cases, you might need to set environment variables after the driver configuration. You can refer to the examples to help you set up your driver.

Configure the ODBC driver on Linux

Before you establish an ODBC connection to connect to an ODBC-compliant database or data warehouse on Linux, configure the ODBC driver.
  1. 1Download the ODBC drivers from the database or data warehouse-specific website.
  2. Note: To get the DB2 ODBC 64-bit driver and SAP IQ ODBC 64-bit driver, contact Informatica Global Customer Support.
  3. 2Install the ODBC drivers on the Secure Agent machine.
  4. 3Add entries for the data sources in the odbc.ini file.
  5. Check out Sample odbc.ini files for ODBC connection types to know more about the odbc.ini file samples that you can use for different connection types.
  6. 4From the command line, run the following command to export the odbc.ini file:
  7. Export ODBCINI=/<odbc.ini file path>/odbc.ini
  8. 5Additionally, set environment variables for certain ODBC drivers on the Secure Agent machine.
  9. For example, set environment variables for the following ODBC drivers:
    ODBC drivers
    Environment variables
    Microsoft Azure SQL Data Warehouse ODBC driver
    Set the following environment variables:
    • - setenv ODBCINI "/data/home/adputf_9/cloud_td/ODBCINI/odbc.ini"
    • - setenv LD_LIBRARY_PATH "/opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2270.0"
    Netezza ODBC driver
    Set the following environment variables:
    • - setenv ODBCINI "/data/home/qamercury/cloud_td/ODBCINI/odbc.ini"
    • - setenv ODBCINST /data/home/qamercury/cloud_td/ODBCINI/odbcinst.ini
    • - setenv LD_LIBRARY_PATH ".:/export/qa_adp/thirdparty/netezza/linux.64/lib64:$LD_LIBRARY_PATH"
    Teradata ODBC driver
    Set the following environment variables:
    • - setenv ODBCINI "/data/home/adputf_9/cloud_td/ODBCINI/odbc.ini"
    • - setenv LD_LIBRARY_PATH "/opt/teradata/client/<Version>/lib64"
  10. 6Restart the Secure Agent.

Configure the ODBC driver on Windows

Before you establish an ODBC connection to connect to an ODBC-compliant database or data warehouse on Windows, configure the ODBC driver.
  1. 1Download the ODBC drivers from the database or data warehouse-specific website.
  2. Note: To get the DB2 ODBC 64-bit driver and SAP IQ ODBC 64-bit driver, contact Informatica Global Customer Support.
  3. 2Install the ODBC drivers on the Secure Agent machine.
  4. 3Open the folder in which ODBC data source file is installed.
  5. 4Run the odbcad32.exe file.
  6. The ODBC Data Source Administrator dialog box appears.
  7. 5Click System DSN.
  8. The image shows the system data sources on the ODBC Data Source Administrator (64-bit) dialog box.
    Note: An ODBC connection uses only system DSNs. You can't use user DSNs when you configure an ODBC driver.
  9. 6Select the system data source that you want to use, and click Add.
  10. The Create New Data Source dialog box appears.
  11. 7Select an ODBC driver for which you want to set up a data source.
  12. 8Click Finish.
  13. A dialog box appears for setting up the selected driver.
  14. 9Specify the required connection properties for the driver.
  15. 10Click OK to save the changes for the configured ODBC driver.
  16. If you configure the DB2 ODBC driver, click Test Connect to test the connection that you configured, and then specify the credentials of the DB2 database in the Logon to DB2 Wire Protocol dialog box. Click OK to save the changes.
    The image shows to specify the credentials of your DB2 database.

Prepare for Kerberos authentication

You can use Kerberos authentication to connect to DB2 or SAP Sybase ASE databases by placing the required configuration files on the Secure Agent machine. You can also use Kerberos authentication to connect to SSL-enabled DB2 or SAP Sybase ASE databases.
When you configure Kerberos authentication to connect to DB2 or SAP Sybase ASE, consider the following guidelines: