Andy is correct. When the first connection to a database is made, the database memory is allocated and new logs are created. Both of these take some time. If you don't have a connection pool on your application server which keeps at least one connection alive, then issue the activate db command.