Replication Solutions Guide

 
Copyright Notice
FairCom Typographical Conventions
c-treeACE Data Replication Overview
Specific Replication Requirements
c-treeACE Replication Quick Tour
Configure the Replication Agent Environment
Up and Running with the c-treeACE Database Engine
Configuration Options
Prepare the Source and Target for Replication
Prepare the c-treeACE Data Source
Prepare the c-treeACE Data Target
Test Replication
Start the Replication Agent
Start the Source Instance of the ctixmg Example
Add Data to the c-treeACE Data Source
Start the Target Instance of the ctixmg Example
View Data on the c-treeACE Data Target
Done
c-treeACE Replication Configuration
Initial Data Synchronization
Selection of Replicated Files
DIAGNOSTICS REPLICATE
Important – Replication Log Management
Assign a Server Node ID to a Replication Agent
Specify Required Node IDs for Source and Target
Read Buffering for Improved Replication Throughput
Replicating Auto-Incrementing Values
Enhance Performance of Checkpoint that Persists Readers' Log Positions on Source Server
Replication Agent
Synchronizing Out-of-Date Target Files
Replication Agent Overview
Bidirectional Replication
Installing the Replication Agent
Installing the Replication Agent as a Windows Service
Configuring the Replication Agent
Example Configuration File
batch_size
check_update
debug_minlog
exception_logging
exception_mode
function_timing
lock_retry_count
lock_retry_sleep
log_change_details
notify_events
read_timeout_ms
redirect
remember_log_pos
socket_timeout
source_authfile
source_nodeid
source_server
start_position
target_authfile
target_nodeid
target_server
unique_id
TLS Support for Replication
Passing Replication Agent Command-Line Options to Its Internal Server
Redirect Files to Alternate Locations
Persistence of Replication Agent State
Starting Replication from a Known Log Position
Using the Dynamic Dump to Synchronize Data for Replication
Correctly Terminate Orphaned Replication Agent Source and Target Server Connections
Record Lock Error Retry and Diagnostics
Replication Agent Exceptions and Errors
Troubleshooting Replication Issues
HTRN_ERR (520)
c-treeACE Replication Utilities
repadm Replication Agent Administrator
ctrepd Replication Transaction Log Utility
Setting the Source Server's Log Requirements
Example: Changing Replication Agent's Required Minimum Log
cttctx Performance Test Utility
ctrepd Replication Debug Utility
Synchronous Replication Model for Enhanced Local Performance
Quick Start Guide
Install c-treeACE on the Master System
Install c-treeACE on the Local System
Configure and Start the Replication Agent
Run the ctixmg ISAM Example and Watch Replication
Local Replica Synchronization
Configuration
Client Connection Mode
Pass-through Operations
Client Shared Library Loading
Building Custom c-treeACE Data Replication Solutions with the Replication API
c-treeACE Replication Overview
Specific Replication Requirements
Building a c-treeACE Library Supporting Replication
Using Data Replication - Data Source Operations
Initializing Replication Support
Connecting to a c-treeACE Data Source
Requesting Persistent Logs from a c-treeACE Data Source
Enabling Replication for a c-treeACE Data File
Change Buffer Structure
Reading Records from c-treeACE Data Source Files
Setting the Start Position
Reading Changes
Terminating Replication Support
Using Data Replication - Data Target Operations
Initializing Replication Support
Connecting to a c-treeACE Data Target
Applying Changes to Files on a c-treeACE Data Target
Reading a Record by Unique Key Value on a c-treeACE Data Target
Terminating Replication Support
Custom Transaction Log Entries
c-treeACE Replication API Function Reference
ctReplAllocMem
ctReplChangeRecord
ctReplCloseFile
ctReplConnect
ctReplDisconn
ctReplFreeMem
ctReplGetFileName
ctReplGetFileStatus
ctReplGetNextChange
ctReplGetPos
ctReplInit
ctReplOpenFile
ctReplPersistMinLog
ctReplReadFirstRecord
ctReplReadNextRecord
ctReplReadRecordByKey
ctReplSetFileStatus
ctReplSetPosByLogPos
ctReplSetPosByTime
ctReplTerm
ctReplTranCtl
Appendix A - Error Codes
Replication Related Error Codes
Troubleshooting Tips
Errors 96 and 76 Restarting After Improper Shutdown
Replication Agent Error 809
Index