AWS Schema Conversion Tool 中的错误 - 无效 Table 映射文档
Error in AWS Schema Conversion Tool - Invalid Table Mappings document
我正在尝试在 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"
}
]
}
我已经在这一步卡住了一个多星期了。你能帮我解决这个问题吗?
通过删除 "object-locator"
元素下的 "database-name"
元素修复了它。首先在 AWS DMS 中直接使用编辑后的 JSON.
进行测试
修改后的TableMappingJSON如下-
{
"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”。
我正在尝试在 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"
}
]
}
我已经在这一步卡住了一个多星期了。你能帮我解决这个问题吗?
通过删除 "object-locator"
元素下的 "database-name"
元素修复了它。首先在 AWS DMS 中直接使用编辑后的 JSON.
修改后的TableMappingJSON如下-
{
"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”。