Add db2 communication error code when check the db connection

bug 1244092

Change-Id: I17882e407afa00167e550a565081219f9e432a31
(cherry picked from commit 3acd57c2825a8bf6660c3124f12794414622eb26)