The following instructions show you how to build a routing map based on where you want to send the source data. A routing map sends replicated data to the correct target on the correct target system, or systems.
For details about the components of these configurations, see:
Database specifications in a configuration file
Target specifications in a configuration file
A simple routing map sends replicated data from one source object to one target object.
datasource_specification | ||
src_owner.table | tgt_owner.table2 | host2[@database_specification] |
src_owner.table | tgt_owner.table3 | host3[@database_specification] |
There are special routing requirements for database targets that are hosted by a cloud service such as EC2 and RDS on Amazon AWS, Azure SQL in Microsoft Azure, and Compute Virtual Machines in Oracle Cloud Infrastructure. Whether the service is Infrastructure as a Service (IaaS) or Platform as a Service (PaaS) makes a difference in how you install and configure SharePlex. The following explains these requirements.
If replicating to a database target hosted in an IaaS cloud service, specify the full endpoint URL as the target host in the routing map.
datasource_specification | ||
src_owner.table | tgt_owner.table2 | endpointURL@database_specification |
src_owner.table | tgt_owner.table3 | endpointURL@database_specification |
For example, the following routing map routes to a cloud database on Amazon EC2:
ec2-12-345-678-910.compute-1.amazonaws.com@o.myora
Alternately, you can map the private IP address of the cloud service to a short name in the local hosts file, and then specify that name as the host in the routing map, for example:
shortname@o.myora
If replicating to a database target hosted in a PaaS cloud service, there are special installation, setup, and routing requirements. Because SharePlex cannot be installed directly on a PaaS cloud server, you must install SharePlex on either the source server or an intermediary server, from which Post connects to the target cloud database. For more information, see Installation and setup for cloud-hosted databases in the SharePlex Installation and Setup Guide.
A compound routing map sends replicated data from one source object to multiple target objects. It enables you to specify the source and target objects once for all routes, rather than type a separate configuration entry for each route. Only one target specification can be used in a compound routing map, so all of the target objects must be identical as follows:
All have identical column mappings or key mappings, if used. For more information about these mappings, see:
NoteS:
datasource_specification | ||
src_owner.table | tgt_owner.table |
host1[@database_specification]+host2[@database_specification][...] |
You can replicate between the following:
When SharePlex replicates between objects on the same system, it does not create Import and Export processes. You can force SharePlex to create Import and Export processes by using the following routing map. If you do not need the Import or Export processes, omit the host* portion of the routing map.
datasource_specification | ||
src_owner.table | tgt_owner.table |
host*host[@database_specification] |
© ALL RIGHTS RESERVED. Conditions d’utilisation Confidentialité Cookie Preference Center