我正在尝试在SCT中创建DMS任务,但出现以下错误-我的源是SQLServer,目标是MySQL DB v 5.7.23。
这是生成的映射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"
}
]
}
我已经在这一步骤上停留了一个多星期。你能帮我解决这个问题吗?
答案 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”。