Guide to IBM Informix Enterprise ?· iv Guide to IBM Informix Enterprise Replication Section I Introducing…

  • Published on
    08-Aug-2018

  • View
    212

  • Download
    0

Embed Size (px)

Transcript

<ul><li><p>Guide to IBM InformixEnterprise Replication</p><p>Version 9.3August 2001Part No. 000-8334</p></li><li><p>ii Guide to IBM Informix</p><p> Copyright International Business Machines Corporation 2001. All rights reserved.</p><p>Trademarks</p><p>AIX; DB2; DB2 Universal Database; Distributed Relational Database Architecture; NUMA-Q; OS/2, OS/390, andOS/400; IBM Informix; C-ISAM; Foundation.2000TM; IBM Informix 4GL; IBM Informix DataBlade Module;Client SDKTM; CloudscapeTM; CloudsyncTM; IBM Informix Connect; IBM Informix Driver for JDBC; DynamicConnectTM; IBM Informix Dynamic Scalable ArchitectureTM (DSA); IBM Informix Dynamic ServerTM; IBMInformix Enterprise Gateway Manager (Enterprise Gateway Manager); IBM Informix Extended ParallelServerTM; i. Financial ServicesTM; J/FoundationTM; MaxConnectTM; Object TranslatorTM; Red BrickDecision ServerTM; IBM Informix SE; IBM Informix SQL; InformiXMLTM; RedBack; SystemBuilderTM; U2TM;UniData; UniVerse; wintegrate are trademarks or registered trademarks of International BusinessMachines Corporation.</p><p>Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems,Inc. in the United States and other countries.</p><p>Windows, Windows NT, and Excel are either registered trademarks or trademarks of Microsoft Corporation inthe United States and/or other countries.</p><p>UNIX is a registered trademark in the United States and other countries licensed exclusively through X/OpenCompany Limited.</p><p>Other company, product, and service names used in this publication may be trademarks or service marks ofothers.</p><p>Documentation Team: Diane Kirsten-Martin, Karin Moore, Hanna Nelson</p><p> Enterprise Replication</p></li><li><p>Table of Contents</p><p>Table ofContents</p><p>IntroductionIn This Introduction . . . . . . . . . . . . . . . . . 3About This Manual . . . . . . . . . . . . . . . . . . 3</p><p>Types of Users . . . . . . . . . . . . . . . . . . 3Software Dependencies . . . . . . . . . . . . . . . 4Assumptions About Your Locale. . . . . . . . . . . . 4Demonstration Databases . . . . . . . . . . . . . . 5</p><p>New Features in Dynamic Server, Version 9.3 . . . . . . . . . 5Extensibility Enhancements . . . . . . . . . . . . . 6Performance Improvements . . . . . . . . . . . . . 7Functionality Enhancements . . . . . . . . . . . . . 8Command-Line Changes . . . . . . . . . . . . . . 9</p><p>Documentation Conventions . . . . . . . . . . . . . . 10Typographical Conventions . . . . . . . . . . . . . 10Icon Conventions . . . . . . . . . . . . . . . . . 11Command-Line Conventions . . . . . . . . . . . . . 12Sample-Code Conventions . . . . . . . . . . . . . . 14</p><p>Additional Documentation . . . . . . . . . . . . . . . 15Related Reading . . . . . . . . . . . . . . . . . . . 17Compliance with Industry Standards . . . . . . . . . . . 18Informix Welcomes Your Comments . . . . . . . . . . . . 18</p></li><li><p>iv Guide</p><p>Section I Introducing Enterprise Replication</p><p>Chapter 1 About Informix Enterprise ReplicationIn This Chapter . . . . . . . . . . . . . . . . . . . 1-3Informix Enterprise Replication . . . . . . . . . . . . . 1-3</p><p>Asynchronous Data Replication. . . . . . . . . . . . 1-4Log-Based Data Capture . . . . . . . . . . . . . . 1-5High Performance . . . . . . . . . . . . . . . . 1-6High Availability . . . . . . . . . . . . . . . . . 1-6Consistent Information Delivery . . . . . . . . . . . 1-6Flexible Architecture . . . . . . . . . . . . . . . 1-7Centralized Administration . . . . . . . . . . . . . 1-8</p><p>How Enterprise Replication Replicates Data . . . . . . . . . 1-8Capture Transactions . . . . . . . . . . . . . . . 1-9Evaluate Data for Replication . . . . . . . . . . . . 1-9Distribute Data . . . . . . . . . . . . . . . . . 1-17Apply Replicated Data . . . . . . . . . . . . . . . 1-17</p><p>Chapter 2 Overview of Enterprise Replication AdministrationIn This Chapter . . . . . . . . . . . . . . . . . . . 2-3Overview of Enterprise Replication Administration . . . . . . 2-3Enterprise Replication Server Administrator . . . . . . . . . 2-4Enterprise Replication Terminology . . . . . . . . . . . . 2-4</p><p>Enterprise Replication Server . . . . . . . . . . . . 2-5Replicate. . . . . . . . . . . . . . . . . . . . 2-5Participant . . . . . . . . . . . . . . . . . . . 2-5Replicate Set . . . . . . . . . . . . . . . . . . 2-6Global Catalog . . . . . . . . . . . . . . . . . 2-6Operational Considerations . . . . . . . . . . . . . 2-8Backup and Restore Considerations . . . . . . . . . . 2-9Database and Table Design Considerations . . . . . . . . 2-9Transaction Processing Considerations . . . . . . . . . 2-14Replication Environment Considerations . . . . . . . . 2-17Enterprise Replication Data Types . . . . . . . . . . . 2-19</p><p> to IBM Informix Enterprise Replication</p></li><li><p>Section II Setting Up and Managing Enterprise Replication</p><p>Chapter 3 Selecting the Enterprise Replication System and Network TopologyIn This Chapter . . . . . . . . . . . . . . . . . . 3-3Selecting the Enterprise Replication System . . . . . . . . 3-3</p><p>Primary-Target Replication System . . . . . . . . . . 3-3Update-Anywhere Replication System . . . . . . . . . 3-10Conflict Resolution . . . . . . . . . . . . . . . 3-11</p><p>Choosing a Replication Network Topology . . . . . . . . . 3-19Fully Connected Topology . . . . . . . . . . . . . 3-20Hierarchical Replication Topologies . . . . . . . . . . 3-21</p><p>Chapter 4 Preparing the Replication EnvironmentIn This Chapter . . . . . . . . . . . . . . . . . . 4-3Preparing the Network Environment . . . . . . . . . . . 4-3</p><p>Setting Up the Hosts File . . . . . . . . . . . . . 4-4Setting Up the Services File. . . . . . . . . . . . . 4-4Setting Up the Trusted Environment . . . . . . . . . 4-5Verifying SQLHOSTS. . . . . . . . . . . . . . . 4-5Testing the Network Environment . . . . . . . . . . 4-8</p><p>Preparing the Disk . . . . . . . . . . . . . . . . . 4-9Planning for Disk Space Requirements . . . . . . . . . 4-9Setting Up Send and Receive Queue Spool Areas . . . . . 4-11Creating ATS and RIS Directories . . . . . . . . . . 4-15</p><p>Preparing the Database Server Environment . . . . . . . . 4-16Preparing Data for Replication . . . . . . . . . . . . . 4-18</p><p>Preparing Consistent Data . . . . . . . . . . . . . 4-18Blocking Replication . . . . . . . . . . . . . . . 4-18Preparing to Replicate Opaque User-Defined Types . . . . 4-21Preparing Tables for Conflict Resolution . . . . . . . . 4-21Preparing Logging Databases . . . . . . . . . . . . 4-22</p><p>Loading and Unloading Data . . . . . . . . . . . . . 4-22Data Preparation Example . . . . . . . . . . . . . . 4-24</p><p>Table of Contents v</p></li><li><p>vi Guide</p><p>Chapter 5 Defining and Modifying Replication Servers, Replicates, andParticipantsIn This Chapter . . . . . . . . . . . . . . . . . . . 5-3Initializing Database Servers . . . . . . . . . . . . . . 5-4Defining Replication Servers . . . . . . . . . . . . . . 5-5</p><p>Customizing the Replication Server Definition . . . . . . 5-6Defining Replicates . . . . . . . . . . . . . . . . . 5-7</p><p>Defining Participants . . . . . . . . . . . . . . . 5-8Specifying Conflict Resolution Rules and Scope . . . . . . 5-10Specifying Replication Frequency . . . . . . . . . . . 5-10Setting Up Error Logging . . . . . . . . . . . . . . 5-11Replicating Only Changed Columns . . . . . . . . . . 5-11Using the IEEE Floating Point or Canonical Format . . . . . 5-13Enabling Triggers . . . . . . . . . . . . . . . . 5-14</p><p>Modifying Replication Servers . . . . . . . . . . . . . 5-14Modifying Replicates . . . . . . . . . . . . . . . . . 5-15</p><p>Adding or Deleting Participants . . . . . . . . . . . 5-15Changing Replicate Attributes . . . . . . . . . . . . 5-16</p><p>Resynchronizing Replication Servers . . . . . . . . . . . 5-17</p><p>Chapter 6 Managing Replication Servers and ReplicatesIn This Chapter . . . . . . . . . . . . . . . . . . . 6-3Managing Replication Servers . . . . . . . . . . . . . . 6-3</p><p>Viewing Replication Server Attributes . . . . . . . . . 6-3Connecting to Another Replication Server . . . . . . . . 6-4Stopping Replication on a Server . . . . . . . . . . . 6-4Restarting Replication on a Stopped Server . . . . . . . . 6-5Suspending Replication for a Server . . . . . . . . . . 6-5Resuming a Suspended Replication Server . . . . . . . . 6-6Deleting a Replication Server . . . . . . . . . . . . 6-6</p><p>Managing Replicates . . . . . . . . . . . . . . . . . 6-7Viewing Replicate Properties. . . . . . . . . . . . . 6-7Starting a Replicate . . . . . . . . . . . . . . . . 6-7Stopping a Replicate . . . . . . . . . . . . . . . 6-8Suspending a Replicate. . . . . . . . . . . . . . . 6-9Resuming a Suspended Replicate . . . . . . . . . . . 6-9Deleting a Replicate . . . . . . . . . . . . . . . . 6-9</p><p> to IBM Informix Enterprise Replication</p></li><li><p>Managing Replication Server Network Connections . . . . . 6-10Viewing Network Connection Status . . . . . . . . . 6-10Dropping the Network Connection . . . . . . . . . . 6-10Reestablishing the Network Connection . . . . . . . . 6-11</p><p>Chapter 7 Creating and Managing Replicate SetsIn This Chapter . . . . . . . . . . . . . . . . . . 7-3Creating Replicate Sets . . . . . . . . . . . . . . . . 7-4</p><p>Exclusive Replicate Sets . . . . . . . . . . . . . . 7-4Non-Exclusive Replicate Sets . . . . . . . . . . . . 7-5Customizing the Replicate Set Definition . . . . . . . . 7-5</p><p>Viewing Replicate Set Properties . . . . . . . . . . . . 7-6Managing Replicate Sets . . . . . . . . . . . . . . . 7-6</p><p>Starting a Replicate Set . . . . . . . . . . . . . . 7-7Stopping a Replicate Set . . . . . . . . . . . . . . 7-7Suspending a Replicate Set . . . . . . . . . . . . . 7-7Resuming a Replicate Set . . . . . . . . . . . . . 7-8Deleting a Replicate Set . . . . . . . . . . . . . . 7-8</p><p>Modifying Replicate Sets . . . . . . . . . . . . . . . 7-9Adding or Deleting Replicates From a Replicate Set . . . . 7-9Changing Replication Frequency For the Replicate Set . . . 7-10</p><p>Chapter 8 Monitoring and Troubleshooting Enterprise ReplicationIn This Chapter . . . . . . . . . . . . . . . . . . 8-3Aborted Transaction Spooling Files . . . . . . . . . . . 8-3</p><p>Preparing to Use ATS . . . . . . . . . . . . . . . 8-4About ATS Filenames. . . . . . . . . . . . . . . 8-5About ATS File Information . . . . . . . . . . . . 8-6BYTE and TEXT Information in ATS Files . . . . . . . . 8-7Changed Column Information in ATS Files . . . . . . . 8-8BLOB and CLOB Information in ATS Files . . . . . . . 8-8UDT Information in ATS Files . . . . . . . . . . . . 8-8</p><p>Row Information Spooling Files . . . . . . . . . . . . 8-9Preparing to Use RIS . . . . . . . . . . . . . . . 8-9About RIS Filenames . . . . . . . . . . . . . . . 8-10BYTE and TEXT Information in RIS Files . . . . . . . . 8-12Changed Column Information in RIS Files . . . . . . . 8-12BLOB and CLOB Information in RIS Files . . . . . . . . 8-12UDT Information in RIS Files . . . . . . . . . . . . 8-12</p><p>Table of Contents vii</p></li><li><p>viii Guid</p><p>Preventing Memory Queues from Overflowing . . . . . . . . 8-13Preventing Blockout Mode . . . . . . . . . . . . . 8-14Monitoring Disk Usage for Send and Receive Queue Spool . . 8-15Increasing the Sizes of Storage Spaces . . . . . . . . . 8-16Recovering when Storage Spaces Fill . . . . . . . . . . 8-16</p><p>Solving Common Configuration Problems . . . . . . . . . 8-17Enterprise Replication Event Alarms . . . . . . . . . . . 8-19</p><p>Section III Appendixes</p><p>Appendix A Command-Line Utility Reference</p><p>Appendix B Configuration Parameter Reference</p><p>Appendix C onstat Command Reference</p><p>Appendix D SMI Table Reference</p><p>Appendix E Replication Examples</p><p>Appendix F SQLHOSTS Registry Key</p><p>Index</p><p>e to IBM Informix Enterprise Replication</p></li><li><p>Introduction</p><p>Introduction</p><p>In This Introduction . . . . . . . . . . . . . . . . . . 3</p><p>About This Manual . . . . . . . . . . . . . . . . . . . 3Types of Users . . . . . . . . . . . . . . . . . . . 3Software Dependencies . . . . . . . . . . . . . . . . 4Assumptions About Your Locale . . . . . . . . . . . . . 4Demonstration Databases . . . . . . . . . . . . . . . 5</p><p>New Features in Dynamic Server, Version 9.3 . . . . . . . . . . 5Extensibility Enhancements . . . . . . . . . . . . . . 6Performance Improvements . . . . . . . . . . . . . . 7Functionality Enhancements . . . . . . . . . . . . . . 8Command-Line Changes . . . . . . . . . . . . . . . 9</p><p>Documentation Conventions . . . . . . . . . . . . . . . 10Typographical Conventions . . . . . . . . . . . . . . 10Icon Conventions . . . . . . . . . . . . . . . . . . 11</p><p>Comment Icons . . . . . . . . . . . . . . . . . 11Feature, Product, and Platform Icons . . . . . . . . . . 11</p><p>Command-Line Conventions . . . . . . . . . . . . . . 12How to Read a Command-Line Diagram . . . . . . . . 14</p><p>Sample-Code Conventions . . . . . . . . . . . . . . . 14</p><p>Additional Documentation . . . . . . . . . . . . . . . . 15</p><p>Related Reading . . . . . . . . . . . . . . . . . . . . 17</p><p>Compliance with Industry Standards . . . . . . . . . . . . 18</p><p>Informix Welcomes Your Comments . . . . . . . . . . . . . 18</p></li><li><p>2 Guide </p><p>to IBM Informix Enterprise Replication</p></li><li><p>In This IntroductionThis introduction provides an overview of the information in this manualand describes the conventions it uses.</p><p>About This ManualThis manual describes Informix Enterprise Replication and the concepts ofdata replication. This manual explains how to design your replicationsystem, as well as administer and manage data replication throughout yourenterprise.</p><p>This section discusses the intended audience and the associated softwareproducts that you must have to use Enterprise Replication.</p><p>Types of UsersThis manual is for database server administrators and assumes that you havethe following background:</p><p> A working knowledge of your computer, your operating system,and the utilities that your operating system provides</p><p> Some experience working with relational databases or exposure todatabase concepts</p><p> Some experience with database server administration, operating-system administration, and network administration</p><p>If you have limited experience with relational databases, SQL, or youroperating system, refer to your Getting Started manual for a list of supple-mentary titles.</p><p>Introduction 3</p></li><li><p>Software Dependencies</p><p>Software DependenciesTo use Enterprise Replication, you must use Informix Dynamic Server asyour database server. Check the release notes for specific versioncompatibility.</p><p>This manual assumes that you are using Dynamic Server, Version 9.3,as your database server.</p><p>Assumptions About Your LocaleInformix products can support many languages, cultures, and code sets. Allthe information related to character set, collation and representation ofnumeric data, currency, date, and time is brought together in a singleenvironment, called a GLS (Global Language Support) locale.</p><p>The examples in this manual are written with the assumption that you areusing the default locale, en_us.8859-1. This locale supports U.S. Englishformat conventions for date, time, and currency. In addition, this localesupports the ISO 8859-1 code set, which includes the ASCII code set plusmany 8-bit characters such as , , and .</p><p>If you plan to use nondefault characters in your data or your SQL identifiers,or if you want to conform to the nondefault collation rules of charac...</p></li></ul>

Recommended

View more >