Table of Contents

Search

  1. Preface
  2. Analyst Service
  3. Content Management Service
  4. Data Integration Service
  5. Data Integration Service Architecture
  6. Data Integration Service Management
  7. Data Integration Service Grid
  8. Data Integration Service Applications
  9. Metadata Manager Service
  10. Model Repository Service
  11. PowerCenter Integration Service
  12. PowerCenter Integration Service Architecture
  13. High Availability for the PowerCenter Integration Service
  14. PowerCenter Repository Service
  15. PowerCenter Repository Management
  16. PowerExchange Listener Service
  17. PowerExchange Logger Service
  18. SAP BW Service
  19. Search Service
  20. System Services
  21. Test Data Manager Service
  22. Web Services Hub
  23. Application Service Upgrade
  24. Application Service Databases
  25. Connecting to Databases from Windows
  26. Connecting to Databases from UNIX
  27. Updating the DynamicSections Parameter of a DB2 Database

Configuring ODBC Connectivity

Configuring ODBC Connectivity

You can configure ODBC connectivity to a Netezza database.
The following steps provide a guideline for configuring ODBC connectivity. For specific instructions, see the database documentation.
  1. To configure connectivity for the integration service process, log in to the machine as a user who can start a service process.
  2. Set the ODBCHOME, NZ_ODBC_INI_PATH, and PATH environment variables.
    ODBCHOME.
    Set the variable to the ODBC installation directory. For example:
    Using a Bourne shell:
    $ ODBCHOME=<Informatica server home>/ODBC7.1; export ODBCHOME
    Using a C shell:
    $ setenv ODBCHOME =<Informatica server home>/ODBC7.1
    PATH.
    Set the variable to the ODBCHOME/bin directory. For example:
    Using a Bourne shell:
    PATH="${PATH}:$ODBCHOME/bin"
    Using a C shell:
    $ setenv PATH ${PATH}:$ODBCHOME/bin
    NZ_ODBC_INI_PATH.
    Set the variable to point to the directory that contains the odbc.ini file. For example, if the odbc.ini file is in the $ODBCHOME directory:
    Using a Bourne shell:
    NZ_ODBC_INI_PATH=$ODBCHOME; export NZ_ODBC_INI_PATH
    Using a C shell:
    $ setenv NZ_ODBC_INI_PATH $ODBCHOME
  3. Set the shared library environment variable.
    The shared library path must contain the ODBC libraries. It must also include the Informatica services installation directory
    (server_dir)
    .
    Set the shared library environment variable based on the operating system. Set the Netezza library folder to <NetezzaInstallationDir>/lib64.
    The following table describes the shared library variables for each operating system:
    Operating System
    Variable
    Solaris
    LD_LIBRARY_PATH
    Linux
    LD_LIBRARY_PATH
    AIX
    LIBPATH
    For example, use the following syntax for Solaris and Linux:
    • Using a Bourne shell:
      $ LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:$HOME/server_dir:$ODBCHOME/lib:<NetezzaInstallationDir>/lib64” export LD_LIBRARY_PATH
    • Using a C shell:
      $ setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:$HOME/server_dir:$ODBCHOME/lib:<NetezzaInstallationDir>/lib64"
    For AIX
    • Using a Bourne shell:
      $ LIBPATH=${LIBPATH}:$HOME/server_dir:$ODBCHOME/lib:<NetezzaInstallationDir>/lib64; export LIBPATH
    • Using a C shell:
      $ setenv LIBPATH ${LIBPATH}:$HOME/server_dir:$ODBCHOME/lib:<NetezzaInstallationDir>/lib64
  4. Edit the existing odbc.ini file or copy the odbc.ini file to the home directory and edit it.
    This file exists in $ODBCHOME directory.
    $ cp $ODBCHOME/odbc.ini $HOME/.odbc.ini
    Add an entry for the Netezza data source under the section [ODBC Data Sources] and configure the data source.
    For example:
    [NZSQL] Driver = /export/home/appsqa/thirdparty/netezza/lib64/libnzodbc.so Description = NetezzaSQL ODBC Servername = netezza1.informatica.com Port = 5480 Database = infa Username = admin Password = password Debuglogging = true StripCRLF = false PreFetch = 256 Protocol = 7.0 ReadOnly = false ShowSystemTables = false Socket = 16384 DateFormat = 1 TranslationDLL = TranslationName = TranslationOption = NumericAsChar = false
    For more information about Netezza connectivity, see the Netezza ODBC driver documentation.
  5. Verify that the last entry in the odbc.ini file is InstallDir and set it to the ODBC installation directory.
    For example:
    InstallDir=<Informatica install directory>/<ODBCHOME directory>
  6. Edit the .cshrc or .profile file to include the complete set of shell commands.
  7. Restart the Informatica services.