How to better set up the SQL Server Migration Assistant (SSMA) tool in order to enable loading huge tables (+1.5 Billions of rows) from DB2 (IBM Public cloud) to SQL server (Azure).

ROBERTO ALVES PEREIRA 20 Reputation points
2023-07-05T18:04:26.3966667+00:00

I'm working in a project to copy huge DB2 tables (1.5 Billions of rows) from DB2 (IBM Public Cloud) into the SQL server (Microsoft Azure cloud). I'm using SSMA (SQL Server Migration Assistant) tool installed in a VM in Azure as 'middle-man' to access both (DB2 and SQL server) to transfer data. For shorter tables everything work as intended, but for those BIG tables, the process cancel with 'Cache error' or'Timeout', I'm working with Azure support to improve the VM to get more NIC/CPU/RAM (Standard_L48s_v3) but I would like to share with this community whether i need to setup something differently in the SSMA tool to increase the power to that tool transfer data on the situation mentioned above.
I appreciate any help !

Azure Database Migration service
Azure SQL Database
SQL Server Migration Assistant
SQL Server Migration Assistant
A Microsoft tool designed to automate database migration to SQL Server from Access, DB2, MySQL, Oracle, and SAP ASE.
538 questions
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 29,477 Reputation points Microsoft Employee
    2023-07-20T15:39:20.6233333+00:00

    Hi, @ROBERTO ALVES PEREIRA Is your issue resolve?What's the average row size of the tables mentioned?
    Higher throughput can be achieved by increasing the batch size of the migration in the project settings but setting it too high will cause timeouts to occur more frequently,

    Migration is always a Timeout vs Throughput activity with a sweet spot in between based on row size, network config, and other factors

    User's image

    Can you also check the resources being used by the VM during migration? Is there a bottleneck on the VM on which SSMA is running?

    Can you increase batch size as well, set it to 50000 It may cause timeouts as I do not know the average row size, but it can be worth trying.

    Regards

    Geetha

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. ROBERTO ALVES PEREIRA 20 Reputation points
    2023-07-27T16:01:09.1766667+00:00

    **Follow answers for each one of your questions :

    Hi, Roberto Is your issue resolve?**

    Actually, we did many different actions around same time, so we cannot ensure which action caused the better performance when migration tables to SQL server : We added v-cores and memory to VM, also we created SQL server in production hyper scaler machine type (instead of general purposes type used before in Dev environment). Beside of that, our DBA did lot of tests increasing the batch size # from 10.000 to 100.000 and we ended up using 100.000 most of time.
    Currently, after migrating 97% of tables, we faced some issues when loading few tables on source DB2 with the following error message : “The data value could not be converted for reasons other than sign mismatch or data overflow. For example, the data was corrupted in the data store but the row was still retrievable.”,  attempt to solve that issue with no success, led us to use another tool ‘DBeaver’ to complete the data migration for the remaining tables (3%) with success.

    What's the average row size of the tables mentioned?

    10k is the total of tables migrated.
    5 of them around 350 Mi of rows.
    1 with 1,6 Billion of rows but business team noted that only <5% was needed for historical purposes, then it brought the rows to thousands rows only.
    Record length was really different but we did not take it on count when setting batch size# on SSMA tool.

    Higher throughput can be achieved by increasing the batch size of the migration in the project settings but setting it too high will cause timeouts to occur more frequently,

    Migration is always a Timeout vs Throughput activity with a sweet spot in between based on row size, network config, and other factors.

    Yes, agree.

    Can you also check the resources being used by the VM during migration? Is there a bottleneck on the VM on which SSMA is running?

    It seemed that bottleneck was on Network during business hours. The Network rate increased significantly on weekends and out of BH.

    Can you increase batch size as well, set it to 50000 It may cause timeouts as I do not know the average row size, but it can be worth trying.

    Yes, we did tests using many different batch size qtdy and ended up using 100.000.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.