Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

Preparing PostgreSQL Target Systems

Preparing PostgreSQL Target Systems

After you install Informatica Data Replication on a PostgreSQL target system, you must complete several tasks to prepare the system for data replication.
  1. On Windows, download and install the ODBC driver for PostgreSQL. On Linux and UNIX, use the DataDirect ODBC driver for PostgreSQL that Data Replication provides in the
    DataReplication_installation
    /dd subdirectory.
  2. Define the ODBCSYSINI environment variable in the user profile:
    ODBCSYSINI=$DBSYNC_HOME/dd
    Define the DBSYNC_HOME environment variable to point to the Data Replication installation root directory if you have not done so.
  3. On Linux and UNIX, add the ODBCSYSINI library in the library path environment variable for your operating system to define search paths for the dynamic linker.
    The library path environment variables are:
    • LD_LIBRARY_PATH for Linux systems
    • LD_LIBRARY_PATH_64 for Solaris systems
    • LIBPATH for AIX systems
    • SHLIB_PATH for HP-UX systems
  4. Use the following statement to set and export the ODBCINST environment variable, which specifies the path and file name of the ODBC .ini file:
    EXPORT ODBCINST=$ODBCSYSINI/odbcinst.ini
    The odbcinst.ini system file contains information about the ODBC drivers that are available to all users.
  5. Create a PostgreSQL database user for Data Replication. For example, use the name datarep_user.
  6. Grant the following role and privileges to the datarep_user.
    CREATE ROLE DATAREP USER LOGIN PASSWORD 'datarep_user'; GRANT ALL ON DATABASE
    <database_name>
    TO datarep_user; GRANT CONNECT ON DATABASE
    <database_name>
    TO datarep_user;
  7. Add the following lines for the IP address of Data Replication components to the PostgreSQL pg_hba.conf file:
    HOST ALL datarep_user
    <IP_address_ DataRep_Console_system>
    /32 TRUST HOST ALL datarep_user
    <IP_address_Applier_system>
    /32 TRUST
    The pg_hba.conf file is used for client authentication. For more information, see the PostgreSQL documentation.

0 COMMENTS

We’d like to hear from you!