My guess: You didn't activate the database explicitly (with the ACTIVATE DB command), so the DB2 client has to activate the DB for the first connection implicitly (and the DB is deactivated again when the last connection disconnects). During activation, DB2 will allocate the primary log files and the various shared memory segments (among other things). This could take a while..