简体   繁体   English

AWS DMS 复制任务

[英]AWS DMS Replication task

How do I add a new table to an existing replication task and start CDC for it while not impacting/breaking the existing tables on going replication?如何将新表添加到现有复制任务并为其启动 CDC,同时不影响/破坏正在进行的复制中的现有表?

Suppose Oracle to Oracle engine.假设 Oracle 到 Oracle 引擎。 I already have 4 tables in task and cdc is running and in sync.我已经在任务中有 4 个表,并且 cdc 正在运行并同步。 Now I want to add 5th table to it.现在我想向其中添加第 5 个表。 I did full load for it using native tool(data pump expdp/impdp using flashback_scn) after that I want to start CDC for it.我使用本机工具(使用 flashback_scn 的数据泵 expdp/impdp)对其进行了完全加载,之后我想为它启动 CDC。 Now do I create a new task for it or add to existing?现在我要为其创建新任务还是添加到现有任务? Can someone please help me understand how to handle such requests.有人可以帮助我了解如何处理此类请求。

TIA TIA

You can add tables to an existing task.您可以将表添加到现有任务。 To add:添加:

  1. Stop the task.停止任务。
  2. Modify and add table and source filter (if any).修改并添加表和源过滤器(如果有)。
  3. Start the task and choose "Resume".启动任务并选择“恢复”。 This is critical, if you accidentally choose "restart" instead of "resume", the task will start from the beginning.这很关键,如果您不小心选择了“重新启动”而不是“恢复”,任务将从头开始。

What to expect after adding the table: If the task is "Full load and ongoing changes" then the new table will go into FULL Load mode and once done, will move on to CDC.添加表后会发生什么:如果任务是“完全加载和正在进行的更改”,那么新表将进入 FULL 加载模式,一旦完成,将转到 CDC。

If the task is "Ongoing changes only" then the new table will start getting CDC data from that point onwards.如果任务是“仅进行中的更改”,那么新表将从该点开始获取 CDC 数据。 There will be no full load.不会有满载。

In either case, as long as the task is resumed, the rest of the tables will continue from the last CDC checkpoint and they will not be impacted.无论哪种情况,只要任务恢复,其余表将从上一个 CDC 检查点继续,不会受到影响。 I hope it helps.我希望它有所帮助。 thanks, Naveed.谢谢,纳维德。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM