要使用 Data Mover 命令行启用增量复制作业,请在 <log_to_event_table> xml tag 之后添加 XML 标记 enable_incremental_restore 并设置为“TRUE”。
<dsa_options> 标记下有几个可选参数必须保留为 UNSPECIFIED。(有关何时应用这些参数,请参阅限制和注意事项和对增量执行失败进行故障排除部分):
| 参数名称 | 必需 | 说明 |
|---|---|---|
| ir_allow_write | 否 | 在启用增量还原时使用。允许在增量还原后写入对象。有效值为:UNSPECIFIED、TRUE 或 FALSE。 |
| ir_execution_type | 否 | 在启用增量还原时使用。增量还原执行类型。有效值为:UNSPECIFIED 或 FULL。 |
以下示例显示了为 DSA 增量复制作业添加到 XML 的所有参数:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<dmCreate xmlns="http://schemas.teradata.com/dataMover/v2009" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.teradata.com/unity/DataMover.xsd">
<source_tdpid>sourceSys</source_tdpid>
<source_user>source_user</source_user>
<source_password>source_password</source_password>
<target_tdpid>targetSys</target_tdpid>
<target_user>target_user</target_user>
<target_password>target_password</target_password>
<use_userid_pool>false</use_userid_pool>
<overwrite_existing_objects>TRUE</overwrite_existing_objects>
<freeze_job_steps>UNSPECIFIED</freeze_job_steps>
<force_utility>DSA</force_utility>
<compare_ddl>UNSPECIFIED</compare_ddl>
<log_level>99</log_level>
<online_archive>UNSPECIFIED</online_archive>
<log_to_event_table>tmsmevent</log_to_event_table
<enable_incremental_restore>TRUE</enable_incremental_restore>
<dsa_options>
<ir_allow_write>UNSPECIFIED</ir_allow_write>
<ir_execution_type>UNSPECIFIED</ir_execution_type>
</dsa_options>
<db_client_encryption>UNSPECIFIED</db_client_encryption>
<database selection="unselected">
<name>db1</name>
<table selection="included">
<name>tb1</name>
</table>
</database>
</dmCreate>