Explains a dynamic SQL statement, producing an access plan graph. Creates explain tables if they do not exist.
Authorization
The authorization rules are those defined for the SQL statement specified in the db2vexp command. For example, if a DELETE statement was used as the explainableStatementText, then the authorization rules for a DELETE statement apply. The current authorization ID must have INSERT privilege on the explain tables. If explain tables do not exist, the current authorization ID must also have CREATETAB privilege on the database. The explain tables will be created automatically.
Required Connection
None
Command Syntax
>>-db2vexp---db--databaseName---sql--explainableStatementText---> .--------------------------------. V | >--------+--------------------------+--+----------------------->< +--withsnapshot------------+ +--queryno--queryNumber----+ +--querytag--queryTag------+ +--opt--optimizationClass--+ +--user--userid------------+ +--password--password------+ '--h-----------------------'
Command Parameters
Usage Notes
A slash (/) can be used instead of a hyphen (-) to prefix a keyword.