Explain tables does not exist. Check the explain plan properties for this database connection.

使用DbVisulalizer链接db2,查看执行计划是报错误

 Explain tables does not exist. Check the explain plan properties for this database connection.

就是执行计划的表不村子,检查执行计划属性。

查看连接属性如下


只有DB2LUW里面才有Explain Plan属性,所以先调整Connection属性中的datatype,为DB2 LUW:


然后再用,发现还是一样的错误,最后仔细看,才发现有个勾没有勾上


只有勾上了create plan table if not exists,就是如果计划表不存在就创建。然后解决问题。

当然我们也可以把下面的Drop Explain Plan Table在执行完成后删除对应的信息。


郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。