码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-12-08 15:35:28      阅读:236      评论:0      收藏:0      [点我收藏+]

标签:db2   dbvisualizer   explain   

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

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

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

查看连接属性如下

bubuko.com,布布扣

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

bubuko.com,布布扣

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

bubuko.com,布布扣

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

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


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

标签:db2   dbvisualizer   explain   

原文地址:http://blog.csdn.net/zml6308/article/details/41803679

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!