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 DB2 for Linux, UNIX, and Windows Target Systems

Preparing DB2 for Linux, UNIX, and Windows Target Systems

After you install Informatica Data Replication on a DB2 for Linux, UNIX, and Windows target system, you must complete several tasks to prepare the system for data replication.
  1. Verify that either the DB2 Client 10.5 or DB2 Connect 10.5 is installed.
    If the Applier task applies data to a remote DB2 database server, the DB2 Fix Pack version of the DB2 Client or DB2 Connect must be equal to or later than the DB2 Fix Pack version of the DB2 database.
  2. To provide TCP/IP access to a remote DB2 server node that was not previously cataloged, issue the following DB2 catalog tcipip node command:
    db2 catalog tcpip node
    new_node_name
    remote
    target_server_ip
    server
    target_db2_port
    The default DB2 port is 50000.
    To issue this command, you must have sysadm or sysctrl authority.
  3. To store the location of a DB2 database that is on a remote node and that was not previously cataloged in the system database directory, issue the following DB2 catalog database command:
    db2 catalog database
    target_db2_database
    as
    new_db2_database_alias
    at node
    new_node_name
    authentication server
    The variable
    new_db2_database_alias
    name must be unique on each client machine.
    To issue this command, you must have sysadm or sysctrl authority.
  4. Grant the following authorities and privileges to the user ID that Data Replication uses to connect to the DB2 target:
    1. Grant the sqladm, dataaccess, connect, createtab, and implicit_schema authorities. Use the following statements:
      db2 grant sqladm on database to user
      datarep_user
      db2 grant dataaccess on database to user
      datarep_user
      db2 grant connect on database to user
      datarep_user
      db2 grant createtab on database to user
      datarep_user
      db2 grant implicit_schema on database to user
      datarep_user
    2. Grant the privileges for creating, altering, and dropping objects within a target schema. Issue the following statement for each replicated schema:
      db2 grant alterin, dropin, createin on schema
      schema_name
      to user
      datarep_user
    3. Grant the privilege required to create tables within a table space. Issue the following statement for each replicated table space:
      db2 grant use of tablespace
      tablespace_name
      to user
      datarep_user
    4. Grant the privilege required to apply change data to target tables. Issue the following statement for each replicated table:
      db2 grant control on table
      table_name
      to user
      datarep_user
  5. If you plan to perform bidirectional replication or cascade replication, perform one of the following steps:
    • If you use DB2 9.7, run the following command to set the DB2_LOGGING_DETAIL registry variable for the target database instance to APPLINFO:
      db2set -i <varname>instance_name</varname> DB2_LOGGING_DETAIL=APPLINFO
    • If you use DB2 10.1 or later, run the following command to set the log_appl_info parameter for the target database to yes:
      db2 update db cfg for
      database_name
      using log_appl_info yes
    These commands support loopback avoidance by causing DB2 to write an additional informational log record with information about DB2 transactions. If you skip this step, the Server Manager cannot retrieve the following information for DB2 transactions: database transaction status, application ID, database user name, system user, and host. Also, the Extractor cannot distinguish the transactions that originally occurred on the database from the transactions that the Applier applied. As a result, the Extractor captures all of the change data.
    Skip this step if you do not plan to use bidirectional or cascade replication.

0 COMMENTS

We’d like to hear from you!