Generate Execution Plans
- Call the 
SYSPROC.SYSINSTALLOBJECTSprocedure:{{}} {{db2 CONNECT TO database-name db2 }} {{CALL SYSPROC.SYSINSTALLOBJECTS('EXPLAIN', 'C', CAST (NULL AS VARCHAR(128)), CAST (NULL AS VARCHAR(128)))}}This call creates the explain tables under SYSTOOLS schema. To create them under a different schema, specify a schema name as the last parameter in the call.
 - Run the 
EXPLAIN.DDLcommand file:{{}} {{db2 CONNECT TO database-name db2 -tf EXPLAIN.DDL}} {{}}