I think you should really get used to reading manuals
Code:
>db2 ? SQL0219N
SQL0219N The required Explain table "<name>" does not exist.
Explanation:
The Explain facility has been invoked but was unable to find the
required Explain table "<name>". The Explain tables must be created
prior to invoking Explain.
User response:
Create the required Explain tables. The SQL Data Definition Language
statements needed to create the Explain tables are available in the file
called EXPLAIN.DDL in the misc directory under sqllib.
sqlcode: -219
sqlstate: 42704
While you are at it, you may want to also read about the
db2exfmt utility - you will need it to retrieve plan information.
Check out
db2expln too.