[IBM DB2] 7. Solve "can not explain query" when upgrade DB2 version

[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.

  • Required Actions: You need to either recreate or upgrade your EXPLAIN tables.

errors when running

Script to update the EXPLAIN tables:

CALL SYSPROC.SYSINSTALLOBJECTS('EXPLAIN', 'M', NULL, 'your-schema');        
Update EXPLAIN tables command

After run upgrade command, we can explain a query as expected.


Thanks for reading!!


Previous article: [IBM DB2] 6. Temporary table | LinkedIn

要查看或添加评论,请登录

D??ng Xuan ?à的更多文章

  • [IBM DB2] 6. Temporary table

    [IBM DB2] 6. Temporary table

    Use temporary tables when we need to store data for only the duration of an application process. Depending on whether…

  • [IBM DB2] 5. Table compression

    [IBM DB2] 5. Table compression

    We can use less disk space for tables by taking advantage of the Db2 table compression capabilities. Compression saves…

  • [IBM DB2] 4. Table Partitioning

    [IBM DB2] 4. Table Partitioning

    Table partitioning is a data organization scheme in which table data is divided across multiple storage objects called…

    2 条评论
  • [IBM DB2] 3. Solve transaction log for the databases is full by increasing number of log files (SQL0964C)

    [IBM DB2] 3. Solve transaction log for the databases is full by increasing number of log files (SQL0964C)

    Each database writes log files called "transaction log" to record changes made to the database. These logs are…

  • IBM DB2: 2. Buffer pools

    IBM DB2: 2. Buffer pools

    Introduction A buffer pool is an area of main memory that has been allocated by the database manager for the purpose of…

    3 条评论
  • Elastic Load Balancer Setup to Point to AWS EC2 Instance

    Elastic Load Balancer Setup to Point to AWS EC2 Instance

    If you have a website up and running on AWS EC2 instance, it is time to setup a load balancer which will take care of…

    2 条评论
  • Adding a Custom Domain to AWS Amplify

    Adding a Custom Domain to AWS Amplify

    When deploy application (ReactJS, AngularJS, NextJs, VueJS) on AWS Amplify, it will generate a default URL for your…

    1 条评论
  • Deploy a Next.js application to AWS Amplify

    Deploy a Next.js application to AWS Amplify

    There are many ways to deploy Next.js applications, such as using Vercel or self-hosting.

    3 条评论
  • Generate Code Coverage Report with JaCoCo for Maven project

    Generate Code Coverage Report with JaCoCo for Maven project

    Testing is a most important part of a software development lifecycle. Without testing, the software is not ready for…

    3 条评论
  • [IBM DB2] 1. Explain a query in IBM DB2

    [IBM DB2] 1. Explain a query in IBM DB2

    One of the key components of a Database Management System (DBMS) is the optimizer, often referred to as the "brain" of…

    3 条评论

社区洞察

其他会员也浏览了