扫二维码与项目经理沟通
我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流
DB2 SQL文执行计划监控是DB2数据库监控的重要组成部分,下面就让我们来了解一下什么是DB2 SQL文执行计划监控。

我们提供的服务有:网站制作、成都做网站、微信公众号开发、网站优化、网站认证、长葛ssl等。为上千企事业单位解决了网站和推广的问题。提供周到的售前咨询和贴心的售后服务,是有科学管理、有技术的长葛网站制作公司
静态的sql文执行计划存放在系统的catalog表中,动态sql文的执行计划存放在global package cache。
如果要使用explain工具,首先要创建相关的表,建表脚本在/misc/EXPLAIN.DDL,只要运行过一次explain GUI工具,将自动创建这些表。
explain特定注册器类型:
CURRENT EXPLAIN MODE - Used to populate only the explain data. No snapshot will be taken.
CURRENT EXPLAIN SNAPSHOT - Used to capture only the explain snapshot data.
设置explain特定注册器类型:
SET CURRENT EXPLAIN MODE option
SET CURRENT EXPLAIN SNAPSHOT option
The explain registers options are:
NO - No explain information is captured for dynamic SQL statements.
YES - Explain tables or snapshot information will be populated for dynamic SQL statements while executing the SQL statement, and the result is returned.
EXPLAIN - Explain tables or snapshot information will be populated for dynamic SQL statements without executing the SQL statement. Use this state to obtain explain information without executing the SQL statement.

我们在微信上24小时期待你的声音
解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流