Cloud APM Db2 agent configuration fails in case TEMA patch is applied after agent configuration

Problem

The Cloud APM Db2 agent configuration fails in case TEMA patch is applied after agent configuration.

Symptom

The terminal shows the following messages:

**********
KCIIN0524E Error attempting to build a merge file
java.io.FileNotFoundException: : /opt/IBM/ITM/tmp/.ud.rc (Permission denied)
**********
KCIIN0230E Unable to prompt for input...

Solution

Manually grant write permission to db2 admin group on /CandleHome/tmp/.ud.rc.

OR

Remove/CandleHome/tmp/.ud.rc and configure the agent.