When triggering a DB2 masking job (e.g., for the GCIS application), the job fails immediately. The logs contain the following error:
com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501, SQLERRMC=[USERID];UPDATE;[TABLE_NAME]
The error SQLCODE=-551 is a DB2 authorization error. It indicates that the user ID defined in the Connection Profile does not have the necessary privileges (specifically the UPDATE privilege) to perform the masking operation on the target table.
To resolve this issue, update the connection profile with a user ID that has the required permissions:
SELECT and UPDATE permissions on the tables being masked.