User269602965 posted
Since DB2 authenticates with Windows, your Domain Controller may induce slow initial connection.
Read about the DB2 activate command to explicitly activate the database when you first start your application using DB2
before you make your first connection. That way you have pre-activated the DB2 services, open files, logs updated, etc.
If in a complex network environment, multilayer firewalls/security controllers may have rules contributing to the connection latency.
If you are using ODBC driver... it is sloowwwww.