Table of Contents

Search

  1. Preface
  2. Analyst Service
  3. Catalog Service
  4. Content Management Service
  5. Data Integration Service
  6. Data Integration Service Architecture
  7. Data Integration Service Management
  8. Data Integration Service Grid
  9. Data Integration Service REST API
  10. Data Integration Service Applications
  11. Data Privacy Management Service
  12. Enterprise Data Preparation Service
  13. Interactive Data Preparation Service
  14. Informatica Cluster Service
  15. Mass Ingestion Service
  16. Metadata Access Service
  17. Metadata Manager Service
  18. Model Repository Service
  19. PowerCenter Integration Service
  20. PowerCenter Integration Service Architecture
  21. High Availability for the PowerCenter Integration Service
  22. PowerCenter Repository Service
  23. PowerCenter Repository Management
  24. PowerExchange Listener Service
  25. PowerExchange Logger Service
  26. SAP BW Service
  27. Search Service
  28. System Services
  29. Test Data Manager Service
  30. Test Data Warehouse Service
  31. Web Services Hub
  32. Application Service Upgrade
  33. Appendix A: Application Service Databases
  34. Appendix B: Connecting to Databases from Windows
  35. Appendix C: Connecting to Databases from UNIX or Linux
  36. Appendix D: Updating the DynamicSections Parameter of a DB2 Database

Application Service Guide

Application Service Guide

Configuring ODBC Connectivity

Configuring ODBC Connectivity

You can configure ODBC connectivity to a PostgreSQL database on UNIX or Linux.
You can configure connectivity to PostgreSQL through ODBC using the DataDirect PostgreSQL Wire Protocol driver.
Review the following tasks for a guideline for configuring ODBC connectivity to PostgreSQL:
  1. Set the environment variable for PostgreSQL
  2. Configure ODBC connectivity in the ODBC.ini file
  3. Update the PowerCenter repository with the PostgreSQL data source name
  4. Verify the PostgreSQL connection with the ODBC data source
For specific instructions, see the database documentation.

Step 1. Set the Environment Variable

  1. In the Administrator tool, click
    Manage
    Services and Nodes
    .
  2. In the Domain Navigator, select the PowerCenter Repository Service.
  3. In the contents panel, click the Processes view. In the Environment Variables section, set the variable name as
    POSTGRES_ODBC
    and the value to
    1
    .

Step 2. Configure ODBC Connectivity

  1. Set the ODBCHOME environment 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
  2. Edit the existing odbc.ini file in the $ODBCHOME directory or copy the odbc.ini file to the UNIX home directory and edit it.
    $ cp $ODBCHOME/odbc.ini $HOME/.odbc.ini
  3. Open the odbc.ini file and add a entry for DataDirect PostgreSQL Wire Protocol data sources.
    Configure the data source name, driver path, host name, and port number to connect to the PostgreSQL database. For example:
    [PostgreSQL Wire Protocol] Driver=/<Informatica installation directory>/ODBC7.1/lib/DWpsql27.so Description=DataDirect 7.1 PostgreSQL Wire Protocol AlternateServers= ApplicationUsingThreads=1 ConnectionReset=0 ConnectionRetryCount=0 ConnectionRetryDelay=3 Database=<database_name> DefaultLongDataBuffLen=2048 EnableDescribeParam=1 EncryptionMethod=1 ExtendedColumnMetadata=0 FailoverGranularity=0 FailoverMode=0 FailoverPreconnect=0 FetchTSWTZasTimestamp=0 FetchTWFSasTime=0 GSSClient=native HostName=<PostgreSQL_host> HostNameInCertificate=<Host name in SSL certificate> InitializationString= KeyPassword= KeyStore= KeyStorePassword= LoadBalanceTimeout=0 LoadBalancing=0 LoginTimeout=15 LogonID= MaxPoolSize=100 MinPoolSize=0 Password= Pooling=0 PortNumber=<PostgreSQL_server_port> QueryTimeout=0 ReportCodepageConversionErrors=0 TransactionErrorBehavior=1 TrustStore=<Path of the truststore certificates> TrustStorePassword=<Password of the truststore certificates> ValidateServerCertificate=1 XMLDescribeType=-10
  4. Set the PATH environment variable.
    Using a Bourne shell:
    $ PATH=${PATH}:$ODBCHOME/bin; export PATH
    Using a C shell:
    $ setenv PATH ${PATH}:$ODBCHOME/bin
  5. Set the shared library environment variable based on the operating system.
    The following table describes the shared library variables for each operating system:
    For example, use the following syntax to set the LD_LIBRARY_PATH for Linux:
    • Using a Bourne shell:
      $ LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$HOME/server_dir :$ODBCHOME/lib; export LD_LIBRARY_PATH
    • Using a C shell:
      $ setenv LD_LIBRARY_PATH $HOME/server_dir:$ODBCHOME/lib:${LD_LIBRARY_PATH}
    For example, use the following syntax to set the LIBPATH for AIX:
    • Using a Bourne shell:
      $ LIBPATH=${LIBPATH}:$HOME/server_dir :$ODBCHOME/lib; export LIBPATH
    • Using a C shell:
      $ setenv LIBPATH ${LIBPATH}:$HOME/server_dir :$ODBCHOME/lib

Step 3. Update the PowerCenter Repository Database Properties

  1. Select the PowerCenter Repository Service in the Administrator tool.
  2. In the database properties section, enter the same data source name that you specified for PostgreSQL in the ODBC.ini file.
  3. Save your changes.

Step 4. Verify PostgreSQL Connection

  1. Verify that you can connect to the PostgreSQL database using the ODBC data source.
  2. If the connection fails, see the database documentation.

0 COMMENTS

We’d like to hear from you!