You configure Microsoft OLE DB Provider for DB2 2.0 to use SERVER_ENCRYPT authentication to connect to an IBM DB2 database. When you try to connect to this database by using a SQL Server linked server that is defined for the IBM DB2 database, you receive the following error:
OLE DB provider "DB2OLEDB" for linked server "Linked Server Name" returned message "Internal NetLib Error."
Msg 7303, Level 16, State 1, Server Server Name, Line 1
Cannot initialize the data source object of OLE DB provider "DB2OLEDB" for linked server "Linked Server Name."This problem occurs when OLE DB Provider for DB2 2.0 is initialized under a user context that is not logged in to the SQL Server system where the linked server is defined. If the user who is using the linked server logs on to the SQL Server system, the linked server can successfully connect to the IBM DB2 database to run queries.
Note This problem can also occur in certain scenarios that are not related to SQL Server linked servers. These scenarios may occur if OLE DB Provider for DB2 2.0 is initialized for use by a user who is not logged on to the SQL Server system. The problem does not occur for users who are not logged on if OLE DB Provider for DB2 2.0 is configured to use a DB2 authentication method that does not require encryption, such as SERVER authentication.
OLE DB provider "DB2OLEDB" for linked server "Linked Server Name" returned message "Internal NetLib Error."
Msg 7303, Level 16, State 1, Server Server Name, Line 1
Cannot initialize the data source object of OLE DB provider "DB2OLEDB" for linked server "Linked Server Name."
Note This problem can also occur in certain scenarios that are not related to SQL Server linked servers. These scenarios may occur if OLE DB Provider for DB2 2.0 is initialized for use by a user who is not logged on to the SQL Server system. The problem does not occur for users who are not logged on if OLE DB Provider for DB2 2.0 is configured to use a DB2 authentication method that does not require encryption, such as SERVER authentication.