Security mechanism not supported. ERRORCODE=-4214
The JDBC Gateway fails to connect to the database. The error in the log file reads:
Reason: Security mechanism not supported. ERRORCODE=-4214, SQLSTATE=28000
The database authentication method needs to be checked.
JDBC Gateway connecting to DB2.
Resolving the problem
Check what you have the database authentication set to:
db2 get dbm cfg | grep AUTHENTICATION
If it is correctly set, this value should be SERVER. You can reset it as
db2 update dbm cfg using authentication server
Please verify this action with your DBA however before applying the
change to the database.