SQL Server Migration Assistant for DB2 - Unable to connect using connection String Option

Amy Johns 0 Reputation points
2023-01-27T18:26:02.4666667+00:00

Trying to connect my Db2 server to the newly installed SSMA (V9.2). I have MS OLEDB installed (v6) and can connect successfully with the client however I can't run a samply query in MS OLEDB. In both tools, I'm getting the following error message:

Connection to DB2 failed.

An internal network library error has occurred. A network level conversational protocol error has occurred.

I have trace turned on but really can't understand in the logs where the problem is. Any suggestions? I need this to convert my Db2 Database (V11.1) to Azure SQL.

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.
494 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Seeya Xi-MSFT 16,436 Reputation points
    2023-01-30T06:50:18.8633333+00:00

    Hi Amy Johns,

    Please check the Prerequisites: Installing SSMA for DB2 client (DB2ToSQL)

    Before you install SSMA, make sure that the computer meets the following requirements:

    • Windows 7 or later versions, or Windows Server 2008 or later versions.
    • Microsoft Windows Installer 3.1 or later versions.
    • The Microsoft .NET Framework version 4.7.2 or a later version. You can obtain it from the .NET Framework Developer Center.
    • Microsoft OLE DB Provider for DB2 version 5 or a later version, and connectivity to the DB2 databases that you want to migrate.
    • Access to and sufficient permissions on the computer that hosts the target instance of SQL Server or Azure SQL Database where you will be migrating database objects and data. For more information, see Connecting to SQL Server (DB2ToSQL).
    • 4 GB RAM recommended.

    From the error message, it seems that there is something wrong with your network. Can your DB2 database connect properly? Are there any error codes? Also, please see this documentation.

    https://learn.microsoft.com/zh-cn/host-integration-server/db2oledbv/data-provider-error-codes

    Best regards,

    Seeya


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


  2. Seeya Xi-MSFT 16,436 Reputation points
    2023-02-16T01:32:17.29+00:00

    Hi,

    Have you checked your connection string?

    Like this:

    Provider=DB2OLEDB;User ID=useName;Password=password;Initial Catalog=dbName;Network Transport Library=TCPIP;Host CCSID=37;PC Code Page=1252;Network Address=serverName;Network Port=portNbr;Default Schema=schemaName;Units of Work=RUW;DBMS Platform=DB2/MVS;Use Early Metadata=False;Defer Prepare=False;DateTime As Char=False;Rowset Cache Size=0;Binary CodePage=0;Datetime As Date=False;AutoCommit=True;Authentication=Server_Encrypt_UsrPwd;Decimal As Numeric=False;Allow Null Chars=False;LoadBalancing=False;Persist Security Info=False;Cache Authentication=False;Connection Pooling=False;Literal Replacement=False;

    https://stackoverflow.com/questions/47659773/can-i-configure-ssma-to-use-db2-server-encrypt-authentication

    0 comments No comments