Enterprise Edition Home | Express Edition Home | Previous Page | Next Page   Displaying the Optimizer Plan of an Executing Query >

Displaying Query Plans with onmode -q explain Commands

Version 8.32 of Extended Parallel Server introduced the -q explain option to the onmode utility to turn SET EXPLAIN output on and off for a specified session, using the following syntax:

Read syntax diagramSkip visual syntax diagram>>-onmode -q explain--session_id-------------------------------->
 
>--+-+-file-------+--filename-+--------------------------------><
   | '-fileappend-'           |
   +-on-----------------------+
   +-off----------------------+
   '-avoid execute------------'
 

Here session_id specifies the identifying number of a session.

The filename specifies the file to which output is written, and can include a pathname from the current working directory. If you include no pathname, then filename is created or updated in the current working directory.

The keywords that follow session_id have the following effects:

These command line options to the onmode -q explain session_id utility correspond to options of the SET EXPLAIN statement of SQL:

See the IBM Informix Guide to SQL: Syntax for more information about these options to the SET EXPLAIN statement of SQL.

You must run the onmode -q explain session_id command on the coserver to which the specified session is connected, or else the command fails with an error.

In versions 8.50 and earlier of Extended Parallel Server, the resulting output from onmode -q explain session_id commands is restricted to the most recently executed query plan, but in most contexts there is no facility of XPS that can display the plan of a query that the database server is currently executing.

Enterprise Edition Home | Express Edition Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]