Introducing DataExchange
Understanding DataExchange and Its Capabilities
The following topics introduce you to DataExchange, its editions, and its components:
DataExchange Technical Overview
DataExchange is the PSQL database replication solution. It copies data between two or more PSQL databases to maintain warm backup systems, drive data into reporting servers, or synchronize multiple remote databases.
The DataExchange technology works by capturing and sharing changes from one PSQL database to other databases in a DataExchange replication network. The PSQL Engine is augmented with DataExchange, which adds two software components to a PSQL database, the Replication Event Handler and the replication engine.
The Replication Event Handler (REH) plugs directly into the PSQL database engine. Specifically, the REH is a set of DLLs that operate within the database engine, so if the database is running, the replication event handler is running as well. The database engine activates the REH when there is a change event (insert, update, delete). The REH then makes note of the event in one of its private control tables.
Note The Replication Event Handler is available for both 32 and 64-bit platforms.
DataExchange focuses on the two types of data replication:
While both capabilities are useful, one typically surfaces as the primary driver for implementing data replication technology in a specific environment.
Notification Agent
The notification agent, or agent for short, is another component installed by DataExchange. Its purpose is to send email if a replication failure occurs. The agent requires the basic Simple Mail Transfer Protocol (SMTP) to communicate with a mail server.
Note that the agent is installed only if the machine contains the PSQL Server product. The agent is not available if you install DataExchange on a machine with the PSQL Workgroup product.
For more information, see dxagent.
Replication-Specific Files
DataExchange adds its own tables on the machine where replication executes. It uses two types of tables: system configuration and replication control. Configuration tables record information such as the databases being replicated, the sites to which data is replicated, and replication schedules.
Control tables shadow data files and track the replication state of each record in the data. Each data table or file has a control table counterpart. Similarly, each data record has a companion control table record. Through the control tables, the replication engine determines what records need to be replicated when.
DataExchange tables for replication configuration and control can reside with the files to be replicated or separately in their own database. The choice of location depends on your replication needs.
DataExchange Editions
DataExchange is available in two editions: Real-Time Backup and Data Synchronization. The following table compares the two editions.
Real-Time Backup Edition
DataExchange Real-Time Backup Edition is optimized for maintaining a backup server. It pairs high performance with minimal installation and maintenance. This edition supports 1-way replication between a primary server and a backup server.
Real-Time Backup solutions can be on-site or off-site, depending on your needs. Onsite backups ensure your data is protected from hardware failures. Protecting your data means that data recovery time is reduced and downtime is minimal. Solutions that implement an offsite backup server gain protection to your data against catastrophic loss, such as fire, flood or theft.
Data Synchronization Edition
DataExchange Data Synchronization Edition is optimized for more complex replication scenarios. This edition supports multiple participating databases and data flowing in multiple directions.
The real-time data replication offered in Data Synchronization ensures all users see the same up-to-the-minute information. The ability to configure flexible topologies allows data flows to match the business organization.
DataExchange Components
DataExchange consists of the following primary components:
DataExchange Utilities
DataExchange utilities help you configure and manage the replication process.
For more information, see Using the DataExchange Utilities and Services.
Documentation
DataExchange User's Guide includes conceptual and procedural information related to installation and configuration and design and deployment of a replication network. This guide covers both the Real-Time Backup and the Data Synchronization editions of the product. Many procedures for the two editions are identical or nearly so. Where differences occur, they are noted for your particular edition.
Where to Install DataExchange
DataExchange must be installed on the same computer as the PSQL Server, Vx Server, or Workgroup engine. See also Preparing to Install DataExchange.