add query for migrate db2 error

Change-Id: I500cd54ba56b6211768362e78394f97edb0fec79
Related-Bug: #1287229