AWS DMS Migration Task Fails with "No Tables Found" Using Wildcard in Schema Mapping for MySQL

0

I am working on migrating data from MySQL to S3 using AWS DMS. I want to employ wildcard mapping for the schema name in the DMS task's selection rules. Specifically, I aim to include tables from schema names starting with 'a', 'b', or 'c'. However, my attempts with [abc]% and [a-c]% have proven unsuccessful. Instead, I encountered an error stating 'AWS DMS Migration Task Fails with "No Tables Found" Using Wildcard in Schema Mapping' with all the methods I tried. Interestingly, it did work when I used 'a%' to capture all schemas starting with 'a'. Can someone please help me that what wildcard mapping use to get schema names starting with 'a', 'b', or 'c'.

6 Antworten
0

ideally it should work with [a-b]% but it is failing for me also you can rather use multiple selection rules e.g. which selects tables starting a b c from mydata schema

{
  "rules": [
    {
      "rule-type": "selection",
      "rule-id": "023641129",
      "rule-name": "023641129",
      "object-locator": {
        "schema-name": "mydata",
        "table-name": "c%"
      },
      "rule-action": "include",
      "filters": [],
      "parallel-load": null,
      "isAutoSegmentationChecked": false
    },
    {
      "rule-type": "selection",
      "rule-id": "023631379",
      "rule-name": "023631379",
      "object-locator": {
        "schema-name": "mydata",
        "table-name": "b%"
      },
      "rule-action": "include",
      "filters": [],
      "parallel-load": null,
      "isAutoSegmentationChecked": false
    },
    {
      "rule-type": "selection",
      "rule-id": "018911961",
      "rule-name": "018911961",
      "object-locator": {
        "schema-name": "mydata",
        "table-name": "a%"
      },
      "rule-action": "include",
      "filters": [],
      "parallel-load": null,
      "isAutoSegmentationChecked": false
    }
  ]
}
AWS
beantwortet vor einem Monat
0

I have 15 tables and have total 30k schemas. Its very difficult to mange with add section rules for each table. I have to add many schemas in the future with start with other letters. This is very bad that AWS still not fix this issue yet.

Bhavesh
beantwortet vor einem Monat
0

Can you try it with capital letters instead?

profile picture
EXPERTE
beantwortet vor einem Monat
0

Not working with capital letters too. Giving same error.

Bhavesh
beantwortet vor einem Monat
0

if the 15 tables are common across schemas you can use % for schema name.

AWS
beantwortet vor einem Monat
0

I have different schema mapping requirement for each table so its difficult to add multiple selection rules for each letter for each table.

Bhavesh
beantwortet vor einem Monat

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen