[IBM DB2] 7. Solve "can not explain query" when upgrade DB2 version
When upgrade from IBM DB2 from version 11.5.4 to 11.5.9. We may encounter errors when running EXPLAIN commands. The changes to EXPLAIN tables were introduced in Db2 version 11.5.5, and databases upgraded from earlier versions require an update to the EXPLAIN table structures to align with the new format.
Script to update the EXPLAIN tables:
CALL SYSPROC.SYSINSTALLOBJECTS('EXPLAIN', 'M', NULL, 'your-schema');
After run upgrade command, we can explain a query as expected.
Thanks for reading!!
Previous article: [IBM DB2] 6. Temporary table | LinkedIn