# Preparing the replication

Before the replication process, you need to define the parameters for the distribution(s) using Talend Change Data Capture Manager on a Windows platform.

## About this task

The parameter definition is stored on the source machine into the repository. All parameters are defined on the source. The replication program then automatically transmits the parameters defined to the target machine.

Distribution parameters are described in detail in the [Reference Guide](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/about-reference-guide).

They are defined according to the following steps:

## Procedure

1. Create an environment (see [Environment](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/environment)).

   ![](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/Resources/images/tcdc-environment.png)
2. Create a model (journal, extract or backup) (see [Models](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/models)).

   ![](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/Resources/images/tcdc-model.png)
3. Add tables to the model (see [Adding tables into a model](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/adding-tables-into-model)).

   ![](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/Resources/images/tcdc-adding-tables.png)

   Information noteWarning: Make sure to define the table [parameters](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/table-options), and especially the structure change options.

   Information noteNote: See [Replication frameworks](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/replication-frameworks) if you want to use predefined and automated processes.
4. If necessary, write the source transformation scripts (see [Selection, Clean-up and Transformation](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/selection-clean-up-and-transformation)).
5. Create targets (see [Targets](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/targets)).

   ![](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/Resources/images/tcdc-new-target.png)
6. Distribute the model on the target or targets (see [Distribution](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/distribution) and [Configuring target engines during the distribution](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/7.3/configuring-target-engines-during-the-distribution)).

   ![](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/Resources/images/tcdc-distribute.png)
7. Configure the target tables from the Target category (see [Distributed tables](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/distributed-tables) and [Fields tab](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/distributed-tables-fields-tab)).
8. From the table Properties, click Create target table.

   ![](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/Resources/images/tcdc-create-target-table-button.png)

   Check the script and edit it if necessary. For more information, see [Creating the target table](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/distribution-creating-target-tables).

   Click Execute.
9. If necessary, edit the target transformation scripts (see [Selection, Clean-up and Transformation](https://help.qlik.com/talend/r/en-US/7.3/change-data-capture-reference-guide/selection-clean-up-and-transformation)).
10. Perform the replication according to this [Operating and supervising a replication](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/7.3/operation-of-replication).

### In this section

* [Configuring target engines during the distribution](https://help.qlik.com/talend/en-US/change-data-capture-user-guide/7.3/configuring-target-engines-during-the-distribution)