Follow these steps to create an explain snapshot for a dynamic SQL statement:
To create the SAMPLE database, see the section on installing the SAMPLE database in the Administration Guide.
This command sets the explain special register. Once it is set, all subsequent SQL statements are affected. For more information, see the sections on current explain snapshots in the SQL Reference.