IBM Informix-Ent Repl Guide

  • View
    60

  • Download
    3

Embed Size (px)

Text of IBM Informix-Ent Repl Guide

DB2 IBM Informix

Version 10.0

IBM Informix Dynamic Server Enterprise Replication Guide

G251-2279-00

DB2 IBM Informix

Version 10.0

IBM Informix Dynamic Server Enterprise Replication Guide

G251-2279-00

Note: Before using this information and the product it supports, read the information in Notices on page J-1.

First Edition (December 2004) This document contains proprietary information of IBM. It is provided under a license agreement and is protected by copyright law. The information contained in this publication does not include any product warranties, and any statements provided in this manual should not be interpreted as such. When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1996, 2004. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

ContentsIntroduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix About This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix Types of Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . x Software Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . x Assumptions About Your Locale . . . . . . . . . . . . . . . . . . . . . . . x Demonstration Databases . . . . . . . . . . . . . . . . . . . . . . . . . xi New Features in Dynamic Server, Version 10.0 . . . . . . . . . . . . . . . . . . . xi Functionality Enhancements . . . . . . . . . . . . . . . . . . . . . . . . xi Command-Line Changes . . . . . . . . . . . . . . . . . . . . . . . . . xii Configuration Parameter Changes . . . . . . . . . . . . . . . . . . . . . . xiii Documentation Conventions . . . . . . . . . . . . . . . . . . . . . . . . . xiii Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . xiv Feature, Product, and Platform . . . . . . . . . . . . . . . . . . . . . . . xiv Syntax Diagrams . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Example Code Conventions . . . . . . . . . . . . . . . . . . . . . . . . xix Additional Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . xx Installation Guides . . . . . . . . . . . . . . . . . . . . . . . . . . . xx Online Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx Informix Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . xxii Manuals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Online Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii Accessibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxiii IBM Informix Dynamic Server Version 10.0 and CSDK Version 2.90 Documentation Set . . . . . xxiii Compliance with Industry Standards . . . . . . . . . . . . . . . . . . . . . . xxvi IBM Welcomes Your Comments . . . . . . . . . . . . . . . . . . . . . . . xxvii

Part 1. Introducing Enterprise ReplicationChapter 1. About IBM Informix Enterprise Replication . . . . . . . . . . . . . . . 1-1 IBM Informix Enterprise Replication . . . . . . . . . . . . . . . . . . . . . . 1-1 Asynchronous Data Replication . . . . . . . . . . . . . . . . . . . . . . . 1-2 Log-Based Data Capture . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 High Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-3 High Availability . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-4 Consistent Information Delivery . . . . . . . . . . . . . . . . . . . . . . . 1-4 Repair and Initial Data Synchronization . . . . . . . . . . . . . . . . . . . . 1-4 Flexible Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-5 Centralized Administration . . . . . . . . . . . . . . . . . . . . . . . . 1-6 Ease of Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . 1-6 Network Encryption . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-7 How Enterprise Replication Replicates Data . . . . . . . . . . . . . . . . . . . . 1-7 Capturing Transactions . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8 Evaluating Data for Replication . . . . . . . . . . . . . . . . . . . . . . . 1-8 Distributing Data . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-14

Copyright IBM Corp. 1996, 2004

iii

Applying Replicated Data

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 1-14

Chapter 2. Overview of Enterprise Replication Administration Overview of Enterprise Replication Administration . . . . . Enterprise Replication Server Administrator . . . . . . . . Enterprise Replication Terminology . . . . . . . . . . . Enterprise Replication Server . . . . . . . . . . . . Replicate . . . . . . . . . . . . . . . . . . . Master Replicate . . . . . . . . . . . . . . . . Shadow Replicate . . . . . . . . . . . . . . . . Participant . . . . . . . . . . . . . . . . . . Replicate Set . . . . . . . . . . . . . . . . . Template . . . . . . . . . . . . . . . . . . . Global Catalog . . . . . . . . . . . . . . . . . Enterprise Replication Considerations . . . . . . . . . . Operational Considerations . . . . . . . . . . . . Backup and Restore Considerations . . . . . . . . . . Database and Table Design Considerations . . . . . . . Transaction Processing Considerations . . . . . . . . Replication Environment Considerations . . . . . . . . Enterprise Replication Data Types . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. . 2-1 . . 2-2 . . 2-3 . . 2-3 . . 2-3 . . 2-4 . . 2-4 . . 2-4 . . 2-4 . . 2-4 . . 2-4 . . 2-5 . . 2-6 . . 2-6 . . 2-7 . . 2-7 . . 2-11 . . 2-13 . . 2-14

Part 2. Setting Up and Managing Enterprise ReplicationChapter 3. Selecting the Enterprise Replication System and Selecting the Enterprise Replication System . . . . . . . Primary-Target Replication System . . . . . . . . . Update-Anywhere Replication System . . . . . . . . Conflict Resolution . . . . . . . . . . . . . . Choosing a Replication Network Topology . . . . . . . Fully Connected Topology . . . . . . . . . . . Hierarchical Replication Topologies . . . . . . . . Chapter 4. Preparing the Replication Environment . Preparing the Network Environment . . . . . . Setting Up the Hosts File . . . . . . . . . Setting Up the Services File . . . . . . . . Setting Up the Trusted Environment . . . . . Verifying SQLHOSTS . . . . . . . . . . Testing the Network Environment . . . . . . Preparing the Disk . . . . . . . . . . . . Planning for Disk Space Requirements . . . . . Setting Up Send and Receive Queue Spool Areas . Setting Up the Grouper Paging File . . . . . Creating ATS and RIS Directories . . . . . . Preparing the Database Server Environment . . . Setting Environment Variables . . . . . . . Setting Configuration Parameters . . . . . . Preparing Data for Replication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Network Topology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 . . 3-1 . . 3-1 . . 3-6 . . 3-7 . . 3-14 . . 3-14 . . 3-15 . . 4-1 . . 4-2 . . 4-2 . . 4-3 . . 4-3 . . 4-3 . . 4-7 . . 4-7 . . 4-8 . . 4-10 . . 4-14 . . 4-15 . . 4-16 . . 4-16 . . 4-16 . . 4-17

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

iv

IBM Informix Dynamic Server Enterprise Replication Guide

Preparing Consistent Data . . . . . . . . . . Blocking Replication . . . . . . . . . . . . Preparing to Replicate User-Defined Types . . . . . Preparing to Replicate User-Defined Routines . . . . Preparing Tables for Conflict Resolution . . . . . . Preparing Logging Databases . . . . . . . . . Loading and Unloading Data . . . . . . . . . . High-Performance Loader . . . . . . . . . . onunload and onload Utilities . . . . . . . . . dbexport and dbimport Utilities . . . . . . . . UNLOAD and LOAD Statements . . . . . . . . Data Preparation Example . . . . . . . . . . . Using the cdr start replicate Command . . . . . . Using LOAD, UNLOAD, and BEGIN WORK WITHOUT

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . REPLICATION .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

. . . . . . . . . . . . . .

4-18 4-18 4-20 4-20 4-20 4-21 4-21 4-22 4-22 4-22 4-23 4-23 4-23 4-24

Chapter 5. Using High-Availability Data Replication with Enterprise Replication . . . . . . 5-1 High-Availability Replication System . . . . . . . . . . . . . . . . . . . . . . 5-1 Using HDR in a Hierarchical Tree Topology . . . . . . . . . . . . . . . . . . . 5-3 Using HDR in a Forest of