beautypg.com

View neo.hp_metrics.query_runtime_stats_v1 – HP Neoview Release 2.5 Software User Manual

Page 122

background image

Table E-7 ODBC_QUERY_STATS_V2 Fields (continued)

Source and Notes

Data Type

Incomplete Queries

Complete Queries

END, or NULL for
an incomplete
query

LARGEINT

ROWS_ACCESSED

END, or NULL for
an incomplete
query

LARGEINT

ROWS_RETRIEVED

END, or NULL for
an incomplete
query

LARGEINT

NUM_ROWS_IUD

END, or NULL for
an incomplete
query

LARGEINT

TOTAL_EXECUTES

START

VARCHAR(3200)

SQL_TEXT

NOTE:

In both ODBC_QUERY_STATS_V1 and ODBC_QUERY_STATS_V2, the QUERY_ID

field contains the unique ID of the query unless an error occurs before the query is launched. In
this case, no query ID is assigned, and the corresponding field is populated with the value
. The rest of the information pertaining to the query, including the error code, is stored
in the appropriate columns.

VIEW NEO.HP_METRICS.QUERY_RUNTIME_STATS_V1

This view provides information collected while a query is running. The Repository obtains this
information through a statistics gathering process within the Neoview Management Dashboard.
Because statistics are updated as the query executes, you can use this view to monitor running
queries.
With regard to when query statistics will be present, a single row is written per query execution.
Thus, if the same query is executed 3 times, 3 rows will be present. If a query runs for a long time
(that is, longer than the configured data collection interval), the statistics for that query will be
updated at each data collection interval.
When compared with the other available views that provide information for queries, this one
contains many additional fields. Fields available only in this view are marked with asterisks (*)
in the list below.
Note that only queries managed by Neoview Workload Management Services are reflected in
this view. For information about the features and limitations of WMS, see the Neoview Workload
Management Services Guide
.
Also note that query completion statistics are not guaranteed to be present in this view.
The interval for collecting data while a query runs is set in the Dashboard configuration. Contact
your HP Support representative for assistance in changing the configuration.
Character columns use ISO88591 or UCS2 encoding, as appropriate to the Neoview platform
configuration. If the platform is UCS2 or SJIS, all character columns are created with CHARACTER
SET UCS2. If the platform is ISO88591, all CHAR columns are created with CHARACTER SET
ISO88591.
The primary key for QUERY_RUNTIME_STATS_V1 field definitions is SEGMENT_ID, NODE_ID,
PIN, and SUBMIT_TS.

122

Pre-R2.5 Query Statistics Views