two steps:1) use "db2pd -d -dyn" get the AnchID StmtUID NumEnv NumVar for the SQL2) use db2expln -db -cache ,,,see an example:[db2inst2@q2 ~]$ db2expln -d sample -cache 828,1,1,1 -tDB2 Universal Database Version...显示全部
two steps: 1) use "db2pd -d -dyn" get the AnchID StmtUID NumEnv NumVar for the SQL 2) use db2expln -db -cache ,,,
see an example: [db2inst2@q2 ~]$ db2expln -d sample -cache 828,1,1,1 -t
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012 Licensed Material - Program Property of IBM IBM DB2 Universal Database SQL and XQUERY Explain Tool
DB2 Universal Database Version 10.5, 5622-044 (c) Copyright IBM Corp. 1991, 2012 Licensed Material - Program Property of IBM IBM DB2 Universal Database SQL and XQUERY Explain Tool