AWS Schema Conversion Tool中的错误-无效的表映射文档

时间:2019-01-25 15:31:44

标签: amazon-rds aws-dms

我正在尝试在SCT中创建DMS任务,但出现以下错误-我的源是SQLServer,目标是MySQL DB v 5.7.23。

enter image description here

这是生成的映射json-

{
  "rules": [
    {
      "rule-type": "selection",
      "rule-id": "1",
      "rule-name": "SelectionRule_1",
      "rule-action": "include",
      "object-locator": {
        "database-name": "sourceDB",
        "schema-name": "dbo",
        "table-name": "%"
      }
    },
    {
      "rule-type": "transformation",
      "rule-id": "2",
      "rule-name": "2",
      "rule-action": "rename",
      "rule-target": "schema",
      "object-locator": {
        "database-name": "sourceDB",
        "schema-name": "dbo"
      },
      "value": "sourceDB_dbo"
    }
  ]
}

我已经在这一步骤上停留了一个多星期。你能帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

通过删除"database-name"元素下的"object-locator"元素来修复它。首先使用编辑后的JSON在AWS DMS中进行了首次测试。

修改后的TableMapping JSON如下-

{
  "rules": [
    {
      "rule-type": "selection",
      "rule-id": "1",
      "rule-name": "1",
      "rule-action": "include",
      "object-locator": {
        "schema-name": "dbo",
        "table-name": "%"
      }
    },
    {
      "rule-type": "transformation",
      "rule-id": "2",
      "rule-name": "2",
      "rule-action": "rename",
      "rule-target": "schema",
      "object-locator": {
         "schema-name": "dbo"
      },
      "value": "sourceDB_dbo"
    }
  ]
}

我也将第一个规则名称重命名为“ 1”。