All Products
Search
Document Center

Data Management:Table synchronization

Last Updated:Mar 28, 2026

The Table Sync module in Data Management (DMS) lets you define security rules that control four table-related operations: Schema Synchronization, Shadow Table Synchronization, Empty Database Initialization, and Table Consistency Repair. Security rules determine whether SQL statements can run, which approval process applies, and how long the analysis phase script remains valid.

How it works

When a user submits a ticket for a table sync operation, DMS evaluates security rules in this order:

  1. A user submits a ticket — for example, a Schema Synchronization ticket.

  2. DMS evaluates the Basic Configuration Item settings. If execution capability is disabled, no SQL statements run and all other rules in the Table Sync module become invalid.

  3. DMS evaluates the checkpoint that matches the ticket type — in this case, Schema Synchronization Validation.

  4. Based on the matching rules, DMS either blocks the ticket, routes it through an approval process, or auto-approves it.

Each checkpoint is independent. Only the rules configured for the matching checkpoint apply to a given ticket type:

CheckpointApplies to
Schema Synchronization ValidationSchema Synchronization tickets
Shadow Table Synchronization ValidationShadow Table Synchronization tickets
Empty Database Initialization ValidationEmpty Database Initialization tickets
Table Consistency Repair ValidationTable Consistency Repair tickets

Basic configuration items

Three basic configuration items apply globally across all four operation types in the Table Sync module:

Configuration itemDescription
Enable execution capabilityControls whether SQL-based synchronization is active. When set to OFF, DMS can compare table schemas but does not run SQL statements, and all other rules in the Table Sync module become invalid.
Database table synchronization default approval TemplateThe default approval template for table synchronization tickets. Switch to a different template as needed.
Analysis phase script Expiration TimeThe validity period of the analysis phase script. If the destination database schema changes during this period, you can cancel the synchronization before execution.

Factors and actions

Security rules within each checkpoint use factors (condition variables) and actions (operations DMS performs when a condition is met), written in domain-specific language (DSL) syntax.

Factors

Factors are predefined variables that provide context — such as environment type or schema name — for rule evaluation. Use them in the IF condition of a rule.

FactorDescription
@fac.env_typeThe environment type of the instance. The value is the display name of the environment type, such as DEV or PRODUCT. See Change the environment type of an instance.
@fac.schema_nameThe name of the schema.

Factor names use the format @fac.<display-name>.

Actions

Actions define what DMS does when a rule's IF condition is met.

ActionDescription
@act.forbid_submit_orderBlocks the ticket from being submitted. Format: @act.forbid_submit_order 'Reason for blocking'.
@act.do_not_approveSpecifies the ID of an approval template to use. See Configure approval processes.
@act.choose_approve_template
@act.choose_approve_template_with_reason

Action names use the format @act.<display-name>.

For DSL syntax details, see DSL syntax for security rules.

Security rule templates

DMS provides predefined templates for each checkpoint. Select a template that matches your environment and compliance requirements.

CheckpointTemplate
Schema Synchronization ValidationFree of Approval for schema synchronization in a test environment
Disable SQL execution for schema synchronization
Disable SQL execution for schema synchronization in an online environment
Approval process for schema synchronization in an online environment
Shadow Table Synchronization ValidationFree of Approval for shadow table synchronization in a test environment
Disable SQL execution for shadow table synchronization
Disable SQL execution for shadow table synchronization in an online environment
Approval process for shadow table synchronization in an online environment
Empty Database Initialization ValidationFree of Approval for empty database initialization in a test environment
Disable SQL execution for empty database initialization
Disable SQL execution for empty database initialization in an online environment
Approval process for empty database initialization in an online environment
Table Consistency Repair ValidationFree of Approval for table consistency repair in a test environment
Disable SQL execution for table consistency repair
Disable SQL execution for table consistency repair in an online environment
Approval process for table consistency repair in an online environment

Enable execution capability

To enable SQL-based synchronization, set the Enable execution capability (if closed, other rules are invalid) configuration item to ON.

  1. Log on to the DMS console V5.0.

  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All functions > Security and Specifications > Security Rules.

    In normal mode, choose Security and Specifications > Security Rules in the top navigation bar.
  3. On the Security Rules tab, find the security rule set to modify and click Edit in the Actions column.

  4. On the Details page, choose Database Development > Table Sync in the left-side navigation pane.

  5. On the Table Sync tab, click Basic Configuration Item.

  6. Find Enable execution capability (if closed, other rules are invalid) and click Edit in the Actions column.

  7. In the Change Configuration Item dialog box, turn on Configuration Value.

  8. Click Submit.

Change the default approval template

  1. Log on to the DMS console V5.0.

  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All functions > Security and Specifications > Security Rules.

    In normal mode, choose Security and Specifications > Security Rules in the top navigation bar.
  3. On the Security Rules tab, find the security rule set to modify and click Edit in the Actions column.

  4. On the Details page, choose Database Development > Table Sync in the left-side navigation pane.

  5. On the Table Sync tab, click Basic Configuration Item.

  6. Find Database table synchronization default approval Template and click Edit in the Actions column.

  7. In the Change Configuration Item dialog box, click Switch Approval Template.

  8. Find the template to apply and click Select in the Actions column.

    To skip the approval process entirely, click Reset to Free of Approval.
  9. Click Submit.

Create a rule

  1. Log on to the DMS console V5.0.

  2. Move the pointer over the 2023-01-28_15-57-17.png icon in the upper-left corner and choose All functions > Security and Specifications > Security Rules.

    In normal mode, choose Security and Specifications > Security Rules in the top navigation bar.
  3. On the Security Rules tab, find the security rule set to modify and click Edit in the Actions column.

  4. On the Details page, choose Database Development > Table Sync in the left-side navigation pane.

  5. On the Table Sync tab, click Create Rule next to Actions.

  6. In the Create Rule - Table Sync dialog box, set the following parameters.

    ParameterDescription
    CheckpointsRequired. The checkpoint for this rule: Schema Synchronization Validation, Shadow Table Synchronization Validation, Empty Database Initialization Validation, or Table Consistency Repair Validation.
    Template DatabaseOptional. A predefined template to use as a starting point. After selecting a checkpoint, click Load from Template Database to browse available templates. See Security rule templates.
    Rule NameRequired. A name for the rule. Auto-populated when loading from a template.
    Rule DSLRequired. The DSL statement that defines the rule condition and action. Auto-populated when loading from a template. See DSL syntax for security rules.
  7. Click Submit.

  8. The new rule is in the Disabled state by default. Click Enable in the Actions column.

  9. Click OK to confirm.

Related topics