Customizing OMEGAMON II
61
Using the Callable Interface
EXPLAINing SQL Code
Use the following procedure to EXPLAIN SQL.
Type of Save
Type of save to be executed when saving SQL text to the member
specified within the SQL statement PDS. Values are REPLACE and
APPEND.
I
REPLACE writes over an existing member or creates the member if it
does not currently exist. System default.
I
APPEND concatenates the new SQL text to the existing number.
Default Qualifier
Qualifier to use to qualify unqualified tables, views, and aliases in SQL
statements.
Qualifier Option
Type of qualifier. Values are USE and PROMPT.
I
USE indicates the current Default Qualifier for unqualified SQL text.
I
PROMPT indicates you want to be prompted for a Qualifier
whenever an SQL statement is used.
Gather Statistics
I
Type YES to have !DB/EXPLAIN gather statistics.
I
Type NO to bypass.
Initial Report
Type the name of the initial !DB/EXPLAIN report to be displayed:
ESTMT, EPATH, EPTBL, EOBJ, or ERECM.
I
ESTMT
is the actual SQL statement text being explained. If there is
an SQL error, SQL error text also appears. Use the pushbuttons to
select from the other !DB/EXPLAIN report sections that follow.
I
EPATH
is a narrative describing the access path for the SQL
statement.
I
EPTBL
reports the plan table entries for the SQL statement in
tabular form.
I
EOBJ
reports the DB2 catalog statistics for objects referenced by the
SQL statement. This section is available if you specified Yes for
Gather Statistics in the D2/EXPLAIN Options panel under the
Option pull-down (fastpath 08).
I
ERECM
provides suggestions for optimizing the SQL statement.
For more information about !DB/EXPLAIN parameters, see the
!DB/EXPLAIN Reference Manual
.
Step
Action
1
Log onto CUA.
Field
Description
Summary of Contents for Network Adapter DB2
Page 6: ...6 OMEGAMON II for DB2 User s Guide CUA Interface Version 540...
Page 13: ...13...
Page 14: ...14 OMEGAMON II for DB2 User s Guide CUA Interface Version 540...
Page 18: ...18 OMEGAMON II for DB2 User s Guide CUA Interface Version 540...
Page 64: ...Using the Callable Interface 64 OMEGAMON II for DB2 User s Guide CUA Interface Version 540...
Page 88: ...Using the IFCID Trace Facility 88 OMEGAMON II for DB2 User s Guide CUA Interface Version 540...