I am getting this error while running Liquibase Update.
Unexpected error running Liquibase: Error executing SQL SELECT MAX(ORDEREXECUTED) FROM G123.DATABASECHANGELOG: DB2 SQL Error: SQLCODE=-551, SQLSTATE=42501
It seems to be some privilege issue on Databasechangelog table.
While the change sets are getting successfully executed, the above error pops up and the value of LOCKED gets set to 1 in the changelog table.