Additional steps for enabling the DSNAEXP EXPLAIN stored procedure

The DSNAEXP stored procedure can be used to issue EXPLAIN on SQL statements without needing the authority to issue the SQL statements.

Before you begin

Start of changeBefore you complete these steps, either install the DB2®-supplied routines during migration or install the DB2-supplied routines during installation.End of change Although DSNAEXP can run in an address space with other stored procedures, DSNAEXP performs better if it runs in its own address space. Therefore, you should set up a WLM application environment and startup procedure specifically for running DSNAEXP.

About this task

Procedure

To enable the DSNAEXP EXPLAIN stored procedure:

Define a PLAN_TABLE for each user. See member DSNTESC in prefix.SDSNSAMP for sample SQL statements.