Processing Data

DRS can process synchronized objects. You can add rules for selected objects. Currently, synchronizations from DDM to DWS and DDM to Oracle support adding synchronization timestamps only to columns in source database tables. Synchronizations from MySQL to MySQL, Oracle to MySQL, and Oracle to GaussDB(for MySQL) Primary/Standby Edition support only data filtering.

Currently, only synchronization from DDM to DWS, DDM to Oracle, MySQL to MySQL, Oracle to MySQL, and Oracle to GaussDB(for MySQL) supports data processing.

Adding Synchronization Timestamp

  1. On the Process Data page, select the table objects to be processed in the Select Source Database Object.
  2. Click the Process Data area, click Add Rule, and enter the column name, type, and operation to be added.

    • The column to which the rule is to be added already exists in the table and cannot be the primary key.
    • You are advised to use columns whose data type is timestamp (TIMESTAMP) as rule columns.

  3. Click Next.

Filtering Data

After a data filtering rule is added, update the source database to ensure data consistency. If:
  • The filter criteria are met after the update. You need to continue the synchronization and perform the same update operation on the destination database. If no data is matched, the operation will be ignored, causing data inconsistency.
  • The filter criteria are not met after the update. You need to continue the synchronization and perform the same update operations in the destination database.
  1. On the Processing Data page, set Processing Type to Data filtering.

    Figure 1 Processing Data

  2. In the Object area, select the table to be processed.
  3. In the Filtering Criteria area, enter the filter criteria (only the part after WHERE in the SQL statement, for example, id=1), and click Verify.

    • Each table has only one verification rule.
    • Up to 500 tables in the source Oracle database and 500 tables in the source MySQL database can be filtered at a time.
    • The filter criteria cannot use the packet, function, variable, or constant of a specific DB engine. It must comply with the general SQL standard.

  4. After the verification is successful, click Generate Processing Rule. The rule is displayed.
  5. Click Next.

Viewing Processed Data

  1. On the Data Synchronization Management page, click the task to be processed.
  2. Click the Process Data tab to view data processing records. Click in the upper right corner to refresh the record list.