I used a new laptop to execute some .NET Code + DB2 11.5.8 Database via ODBC / DB Factories / IBM DB2 .NET Data Provider) I found unpredictable hang or take a lot of time (about 20 minutes ++) to create a DB Connection.
Solution
- Check Windows PATH variable container DB2 Bin Path (Default Path "C:\Program Files\IBM\SQLLIB\BIN"
- if DB2 Path variable, not exist then add DB2 Bin Path
- Reboot Machine
Reference
- c# - IBM DB2 issue--System.BadImageFormatException: Could not load file or assembly IBM.DB2.DLL or one of its dependencies - Stack Overflow
- "QE-DEF-0285 - The logon failed ... Unable to load the driver manager library ( db2cli.dll )" when running Standard Reports (ibm.com)
- Generic coding with the ADO.NET common base classes - IBM Documentation
- Obtaining a DbProviderFactory - ADO.NET | Microsoft Learn
- DB21061E Command line environment not initialized. – CogKnowHow (tm1.dk)
- IBM DB2 ODBC driver could not be loaded. (microsoft.com) //Permission Issue
- How to point to 32 bit IBM DB2 ODBC driver on 64-bit Microsoft system?
Discover more from naiwaen@DebuggingSoft
Subscribe to get the latest posts sent to your email.