These are examples of basic configuration files according to each possible datasource type and target type.
Replicate from a regular Oracle Instance to a Regular Oracle Instance
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | tgt_owner.table |
host@o.SID |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to target table SCOTT.EMP2 in Oracle instance oraB on target system sysprod.
Datasource:o.oraA SCOTT.EMP SCOTT.EMP2 sysprod@o.oraB
Replicate from Oracle to target Oracle in PaaS cloud
To replicate from an on-premises or IaaS-based Oracle source to a target Oracle database hosted in a PaaS cloud, the SharePlex target components (Import and Post) must run on the source server or on an intermediary server. Post connects through a remote connection using a TNS alias. To set up this topology, see Installation and setup for cloud-hosted databases in the SharePlex Installation and Setup Guide.
Datasource:o.SID | ||
src_owner.table | tgt_owner.table |
source_or_intermediary_host@o.SID |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to target table SCOTT.EMP2 in the PaaS cloud Oracle instance oraB. Post runs on intermediary target system sysprod2.
datasource:o.oraA SCOTT.EMP SCOTT.EMP2 sysprod2@o.oraB
Replicate from a regular Oracle instance to an Open Target database
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | tgt_owner.table | host@r.database_name |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to target table Scott2.Emp2 in Open Target database mydb on target system sys2. The target table is case-sensitive.
Datasource:o.oraA SCOTT.EMP "Scott2"."Emp2" sys2@r.mydb
Replicate from a regular Oracle instance to a file in XML or SQL format
Datasource:o.SID | ||
src_owner.table | !file | host |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to a file on target system sysprod.
Datasource:o.oraA SCOTT.EMP !file sysprod
Replicate from a regular Oracle instance to a JMS queue or topic
Datasource:o.SID | ||
src_owner.table | !jms | host |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to a JMS queue on target system sysprod.
Datasource:o.oraA SCOTT.EMP !jms sysprod
Replicate from a regular Oracle instance to a Kafka topic
Datasource:o.SID | ||
src_owner.table | !kafka | host |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to a Kafka topic using SharePlex target system sysprod.
Datasource:o.oraA SCOTT.EMP !kafka sysprod
Replicate from Oracle to Kafka using SSL encryption
This configuration is applicable for the Kafka target.
Pre-requisites:
Configure the Kafka target with the following parameters to post data onto Kafka before starting the replication with SSL encryption
- sp_ctrl target x.kafka set kafka broker = <kafka-server-hostname>:<Kafka-server-port>
- sp_ctrl target x.kafka set kafka security.protocol = SSL
- sp_ctrl target x.kafka set kafka ssl.ca.location = <ca-cert-file-path>
- sp_ctrl target x.kafka set kafka ssl.certificate.location = <.pem-file-path>
- sp_ctrl target x.kafka set kafka ssl.key.location = <ssl-key-file-path>
- sp_ctrl target x.kafka set kafka ssl.key.password = <key-password>
- sp_ctrl target x.kafka set kafka sasl.mechanisms = PLAIN
- sp_ctrl target x.kafka set kafka api.version.request = true
Note: All the values in the <> need to be replaced with actual parameters from the Kafka producer.
Note: Before setting the target Kafka replication parameters, you need to first stop Poster, set the parameters, and then start the Poster.
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | !kafka | host |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the Kafka server using SharePlex target system sysprod
Datasource:o.oraA SCOTT.EMP !kafka sysprod
Replicate from Oracle to Kafka using SASL authentication
This configuration is applicable for the Kafka target.
Pre-requisites:
Configure the Kafka target with the following parameters to post data onto Kafka before starting the replication with SASL authentication
- sp_ctrl target x.kafka set kafka api.version.request=true
- sp_ctrl target x.kafka set kafka sasl.mechanisms=PLAIN
- sp_ctrl target x.kafka set kafka sasl.username=<username>
- sp_ctrl target x.kafka set kafka sasl.password=<password>
- sp_ctrl target x.kafka set kafka security.protocol=SASL_PLAINTEXT
Note: All the values in the <> need to be replaced with actual parameters from the Kafka producer.
Note: Before setting the target Kafka replication parameters, you need to first stop Poster, set the parameters, and then start the Poster.
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | !kafka | host |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the Kafka server using SharePlex target system sysprod.
Datasource:o.oraA SCOTT.EMP !kafka sysprod
Replicate from Oracle to Kafka using Kerberos authentication
This configuration is applicable for the Kafka target.
Pre-requisites:
Configure the Kafka target with the following parameters to post data onto Kafka before starting the replication with kerberos authentication
- sp_ctrl target x.kafka set kafka sasl.kerberos.keytab = <kerberos-keytab-file>
- sp_ctrl target x.kafka set kafka sasl.kerberos.kinit.cmd = <kerberos-kinit-cmd>
Note: The {broker.name} property is no longer supported for the sp_ctrl target x.kafka set kafka sasl.kerberos.kinit.cmd = <kerberos-kinit-cmd> parameter.
- sp_ctrl target x.kafka set kafka sasl.kerberos.min.time.before.relogin = <relogin-time>
- sp_ctrl target x.kafka set kafka sasl.kerberos.principal = <kerberos-principal>
- sp_ctrl target x.kafka set kafka sasl.kerberos.service.name = <kerberos-service-name>
- sp_ctrl target x.kafka set kafka sasl.mechanisms = GSSAPI
Note: All the values in the <> need to be replaced with actual parameters from the Kafka producer.
Note: Before setting the target Kafka replication parameters, you need to first stop Poster, set the parameters, and then start the Poster.
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | !kafka | host |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the Kafka server using SharePlex target system sysprod
Datasource:o.oraA SCOTT.EMP !kafka sysprod
Replicate from Oracle to Kafka using mTLS Authentication
This configuration is applicable for the Kafka target.
Note: Before setting the target Kafka replication parameters, you need to first stop Poster, set the parameters, and then start the Poster.
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | !kafka | host |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the Kafka server using SharePlex target system sysprod
Datasource:o.oraA SCOTT.EMP !kafka sysprod
Replicate data from Oracle to Azure Event Hubs
These configurations need to be done for replicating data from source to Azure Event Hubs. SharePlex for Kafka is used to communicate with Azure Event Hubs through the Kafka Event Hubs connectors.
Pre-requisites:
Configure the SharePlex source machine with the following Kafka parameters to post data onto Azure Event Hubs before starting the replication.
- sp_ctrl Target x.kafka set kafka api.version.request = true
- sp_ctrl target x.kafka set kafka broker = <Azure Event Hubs namespace>:<Kafka-server-port>
- sp_ctrl Target x.kafka set kafka sasl.mechanisms = PLAIN
- sp_ctrl Target x.kafka set kafka sasl.username = $ConnectionString
- sp_ctrl Target x.kafka set kafka sasl.password =<Primary key generated in Event Hubs namespace>
- sp_ctrl Target x.kafka set kafka security.protocol = SASL_SSL
- sp_ctrl Target x.kafka set kafka topic = <Kafka Event Hubs topic generated inside Event Hubs namespace>
Note: All the values in the <> need to be replaced with actual parameters from Azure Event Hubs.
Note: Before setting the target Kafka replication parameters, you need to first stop Poster, set the parameters, and then restart the Poster.
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | !kafka | src_hostname |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the Azure Event Hub using SharePlex target system sysprod.
Datasource:o.oraA SCOTT.EMP !kafka sysprod
Replicate data from Oracle to Microsoft SQL Server
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | dst_owner.table | dst_hostname |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the MS SQL Server on host sysprod
Datasource:o.oraA SCOTT.EMP SCOTT.EMP sysprod@r.sp_ss
Replicate data from Oracle to the Azure SQL database
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | dst_owner.table | dst_hostname |
Example:
The following example replicates table SCOTT.EMP from Oracle instance oraA to the Azure SQL database on host sysprod
Datasource:o.oraA SCOTT.EMP SCOTT.EMP sysprod@r.azuresqldb
Replicate from and to an Oracle pluggable database (PDB) in a container database (CDB)*
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.PDBalias | ||
src_owner.table | tgt_owner.table |
host@o.PDBalias |
Example
This example replicates table SCOTT.EMP from an Oracle PDB that uses the TNS alias of aliasA to target table SCOTT.EMP in an Oracle PDB that uses the TNS alias of aliasB on target system sysprod.
Datasource:o.aliasA SSCOTT.EMP SCOTT.EMP sysprod@o.aliasB
* You can also replicate data from an Oracle PDB to any other supported target. For more information, see Configure capture and delivery.
Replicate to maintain a change history target
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource: o.SID | ||
src_owner.table |
!cdc:tgt_owner.table |
host@c.SID |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to change-history target table SCOTT.EMP2 in Oracle instance oraB on target system sysprod.
Datasource:o.oraA SCOTT.EMP !cdc:SCOTT.EMP2 sysprod@c.oraB
For more information, see Configure replication to a change history target.
Replicate Data from Oracle to Oracle using Extended Data Types
These configurations need to be done for replicating data from Oracle to Oracle using extended data types.
Pre-requisite:
Your Oracle database should be supporting the Extended Data Type.
Limitation:
SharePlex does not replicate data with Extended Data Type when target type is SQL, JMS, File, or Kafka.
This configuration applies to on-premises and IaaS cloud deployments. See the System Requirements in the SharePlex Installation and Setup Guide for supported database versions and platforms.
Datasource:o.SID | ||
src_owner.table | tgt_owner.table |
host@o.SID |
Example
The following example replicates table SCOTT.EMP from Oracle instance oraA to target table SCOTT.EMP2 in Oracle instance oraB on target system sysprod.
Datasource:o.oraA SCOTT.EMP SCOTT.EMP2 sysprod@o.oraB