Data Transfers

Creating a Data Transfer

  1. In the navigation panel, go to Projects → Transfers.

  2. In the top-right corner of the page, click Create transfer.

    Transfers page with the Create Transfer button
  3. Enter parameters of the new data transfer:

    • Title.

    • Data source • Type: The source database for the data transfer. Possible values are the database connection names entered while creating a database connection.

      Use the Type field to filter the list of connections by database type. The default value is All.

    • Data target • Type: The target database for the data transfer. Possible values are the database connection names entered while creating a database connection.

      Use the Type field to filter the list of connections by database type. The default value is All.

    • Processing parameter: The Postgres ProGate utility to use for the data transfer.

      Possible values:

      • ProSync. If selected, change data capture (CDC) is started after the initial loading.

      • ProCopy. The initial loading is performed. This parameter cannot be disabled.

  4. Click Create.

    Data transfer creation window
  5. Edit initial load parameters and replication parameters, if applicable.

    If only ProCopy is used, you can edit the following parameters (default values are entered automatically):

    • Number of read threads: The number of parallel read processes. Each of them processes one task at a time until it is finished.

    • Number of write threads: The number of parallel write processes. Each process retrieves batches from the queue and applies them to the destination.

    • Data block size limit in bytes: The global limitation on the size of one batch.

      The parameter value must be greater than 0.

    • Need to clear target tables: Specifies whether all target database tables are truncated before the data loading.

      If set to No, target database tables are not truncated.

      Possible values:

      • No

      • Yes

        To set more parameters, click All parameters.

        Window with all data transfer parameters

        The ProCopy parameters panel will be displayed. In addition to the initial load parameters described above, the panel also contains the following parameters:

    • Disable sorting of records by unique key: Disables loading of the data sorted by the unique primary key. The whole table is retrieved through a cursor.

      Possible values:

      • No

      • Yes

    • Log level.

      Possible values:

      • error

      • warn

      • info

      • debug

    • Save problematic rows: Specifies whether to save rows that could not be loaded into the target. For details, refer to Error Handling.

      Possible values:

      • No

      • Yes

    • Number of decimal places for monetary types: The number of fractional digits in the source database.

    • LOB size threshold for binary protocol: The threshold for the LOB size that defines how to fetch LOBs.

      If the size of a LOB is less than this value, the binary protocol is used and all the data in the LOB is loaded to the random-access memory (RAM).

      If the size of the LOB is greater than this value, the LOB is read in parts.

    • Number of data block sending attempts on write error: The number of retries to send a batch if the connection to the target is lost. If all retry attempts are exhausted, procopy terminates with an error.

    • Time between data block sending attempts on error: The time between batch sending attempts, in seconds.

    • Transfer bfile: If this parameter is specified, all the BFILE objects are copied as a whole from Oracle during the data loading.

      By default, only identifiers are copied, that is, the directory aliases and filenames.

      Possible values:

      • No

      • Yes

    • Sliding window reading size in rows: The size of the sliding window. Number of rows selected at a time.

    • Disable index hints usage when reading data: Specifies whether to disable index hints when creating SELECT queries.

      Possible values:

      • No

      • Yes

    • Maximum data block reading time: The maximum time to read a data block.

    • Number of records in one subtask: The number of rows contained in one subtask of a large table.

    • Type conversion options to string.

      Enter the key word and its value, then click + Add parameter.

      You can add multiple parameters.

      To delete the parameter, click Удалить next to it.

      If ProSync is also used, you can edit the following parameters (default values are entered automatically):

    • Data block size for reading from source in bytes: The batch size for ProSync reading from Oracle LogMiner to be used.

    • Reading changes from Oracle online REDO logs: Specifies whether to read the changes from archive and online redo logs. This parameter enables getting the changes as soon as they occur in online logs. Not recommended to use for reliability. Because of how Oracle writes logs, some operations can be missed.

      Possible values:

      • No

      • Yes

    • Operations count threshold within transaction for intermediate cache usage: The number of operations in one transaction that causes writing of intermediate data to disk.

      To set more parameters, click All parameters.

      The ProSync parameters panel will be displayed. In addition to the replication parameters described above, the panel also contains the following parameters:

    • Maximum data block size when reading from source: The maximum size to which the batch size can be increased when reading.

      If the maximum size is reached, ProSync terminates with an error. This can happen if there is an open transaction that does not close. The user must resolve this issue.

    • Data block size for processing: The batch size for processing a transaction.

      This parameter is for internal tuning of the application.

    • Data block size for writing: The batch size for inserting data.

      The value of 0 means that the data is inserted as new data occurs.

    • Validate record sequence: Specifies whether to validate a sequence of LogMiner log files.

      If a log file is missing, ProSync terminates with an error.

      If you are prepared to lose data, set this parameter to No.

      Possible values:

      • No

      • Yes

    • Data volume in bytes to process in one iteration for LOB type data: The maximum number of bytes to write at a time when writing LOBs.

  6. Click Save.

  7. Add replication tasks.

    List of replication tasks of a data transfer
    1. In the top-right corner of the table, click + Add task.

    2. Enter parameters of the new replication task:

      • Task Type.

        Possible values:

        • Schema-schema

        • SQL query

      • Title.

      • Database introspection: Allows scanning source and target databases to check schemas and tables available for the data transfer with the created database connection.

        Database introspection tile includes the following information:

        • Source/Target: The source and target database for the data transfer. The possible values are the database connection names entered while creating a database connection.

        • Updated: The date when the introspection was last run or manually restarted. To run, restart, or stop the database introspection, click Start, Restart, or Stop, respectively.

        • Schemas: Database schemas available for the data transfer.

        • Tables: Database tables available for the data transfer.

        • Status: The database introspection status.

          Possible values:

          • Waiting to start

          • In progress…​

          • Ready

          • Not fully completed

          • Error

          • Stopped

      • Source schema/Source schemas: Schema or schemas of the replication source database. The number of schemas to select depends on the Task type parameter value. For the Schema-schema task type, you can select only one schema. For the SQL query task type, multiple schemas are available for selection.

      • Target schema: The schema of the replication target database.

        • Target table: The table in the schema of the replication target database. This field is displayed if you select the SQL query task type.

      • Show system schemas: If the checkbox is selected, system schemas are also displayed in the schema lists.

        Replication task creation window
    3. If you select the Schema-schema task type:

      1. Click Next. The second step of task creation, which contains the mapping table, will be displayed.

      2. Map tables from the source schema with target schema tables:

        • Manually by selecting target tables from drop-down lists next to source tables.

        • Automatically by selecting the checkboxes next to the tables and clicking Auto-map.

          To view or hide table fields for manual field mapping, click Expand or Collapse.

          Table mapping when creating a replication task

          Object mapping becomes available only after the database introspection completes with the Ready status.

      3. (Optional) Set table-level transfer task parameters for the specific schema-schema mapping by clicking Settings.

        These parameters are disabled by default. To edit them, disable the NULL checkbox. You can edit the following parameters:

        • Data block size limit in bytes.

        • Need to clear target tables.

        • Number of records in one subtask.

        • Automatic snapshot creation in PostgreSQL/Postgres Pro.

          If set to Yes, a snapshot is created to be used to get data.

        • Snapshot ID: The global identifier of the PostgreSQL/Postgres Pro snapshot.

          This parameter is used if the snapshot configuration parameter is needed but not specified for the task.

        • Size of a buffer used by encoders.

        • Sliding window reading size in rows.

        • Disable index hints usage when reading data.

          If the parameters are modified, the icon changes to Settings (modified).

      4. Click Save.

    4. If you select the SQL query task type:

      1. Type the SQL query for the data transfer task. The console window supports syntax checking and autocompletion based on keywords, field names, and table names. If the query is incorrect, an error is displayed.

        To enable or disable query validation, use the Query validation toggle in the top-left corner above the console window.

        Query validation error when creating a replication task
      2. Map fields from the SQL query with target table fields:

        • Manually by selecting target fields from drop-down lists next to source fields.

        • Automatically by clicking Auto-map.

          Field mapping when creating a replication task

          Object mapping becomes available only after the database introspection completes with the Ready status.

      3. Click Add task.

  8. Click Finish setup.

Viewing Data Transfers

In the navigation panel, go to Projects → Transfers.

The table of data transfers with the following columns will be displayed:

  • Title.

  • Source: The source database for the data transfer. The possible values are the database connection names entered while creating a database connection.

  • Target: The target database for the data transfer. The possible values are the database connection names entered while creating a database connection.

  • Created at: The date and time when the data transfer was created.

  • Status.

    Possible values:

    • Draft

    • Prepared

    • Start requested

    • Stop requested

    • Completed

    • ProSync initialization start requested

    • ProSync initialization started

    • ProSync initialization stopped by user

    • ProSync initialization stopped by internal error

    • ProSync initialization completed

    • ProSync start requested

    • ProSync started

    • ProSync stop requested

    • ProSync stopped by internal error

    • ProSync run completed

    • ProSync connection completion start requested

    • ProSync connection completing

    • ProSync completion stopped by internal error

    • ProSync connection completed

    • ProCopy start requested

    • ProCopy started

    • ProCopy stop requested

    • ProCopy run completed

    • ProCopy stopped by internal error

  • Status change: The date and time when the data transfer status was changed.

  • Execution progress: The number of completed data transfer tasks with a horizontal progress bar.

  • Actions.

    For more information about available actions, refer to other instructions in this section.

Viewing Detailed Data Transfer Information

  1. In the navigation panel, go to Projects → Transfers.

  2. Click the name of the transfer.

    The data transfer page with the Tasks and Event log tabs will be displayed.

    The Tasks tab displays the following web interface elements:

    The ProCopy Tasks tile with the following parameters:

    • Completed: The number of completed tasks.

    • Data transfer speed: The rate at which the data is transferred.

    • Records transfer speed: The rate at which the records are transferred.

    • Total records: The total number of transferred records.

    • Total records with errors: The total number of records transferred with errors.

      The ProSync Tasks tile. This tile is displayed if ProSync is used. The displayed parameters are as follows:

    • Parsing SCN: The system change number processed by ProSync.

    • Latest SCN: The current system change number in the source database.

    • Data transfer speed: The rate at which the data is transferred.

    • Records transfer speed: The rate at which the records are transferred.

    • Total data: The total volume of transferred data.

    • Total records: The total number of transferred records.

      The Replication Tasks table with the following columns:

    • Title: The replication task name.

    • Type: The replication task type.

    • Table count: The number of tables in the replication task.

    • Status: The replication task status.

    • Actions.

      Detailed Data Transfer Information
  3. (Optional) To view the history of data transfer statuses, open the Event log tab.

    A table with the following columns will be displayed:

    • Status: The data transfer status.

    • Created at: The time when the data transfer status changed.

    • Changed by: The user who initiated the change of the data transfer status.

    • Process: The process number.

      To view detailed process information, click View grey icon in the corresponding row.

Starting a Data Transfer

  1. In the navigation panel, go to Projects → Transfers.

  2. Click Start next to the data transfer.

    You can stop the already started data transfer. To do this, click Stop next to the data transfer.

Editing a Data Transfer

  1. In the navigation panel, go to Projects → Transfers.

  2. Click Three vertical dots icon → Configure next to the data transfer. You can edit only transfers in the Draft status or stopped transfers.

    The Data transfer settings page with the Source and Target, Parameters, and Tasks tabs will be displayed.

  3. On the Source and Target tab, edit the source and target database parameters and click Save.

  4. On the Parameters tab, edit the initial load parameters and, if applicable, the replication parameters, and click Save.

  5. On the Tasks tab, edit replication tasks.

  6. Click Finish setup.

Deleting a Data Transfer

Deleted data transfers cannot be restored.

To delete a data transfer:

  1. In the navigation panel, go to Projects → Transfers.

  2. Click Three vertical dots icon → Delete next to the data transfer.

  3. Click Delete.