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

Page 119

Advertising
background image

Table E-6 ODBC_QUERY_STATS_V1 Field Definitions (continued)

Description

Data Type

Field Name

Compiler-provided value, one of:
SQL_SELECT_UNIQUE,
SQL_SELECT_NON_UNIQUE
SQL_INSERT_UNIQUE,
SQL_INSERT_NON_UNIQUE,
SQL_UPDATE_UNIQUE,
SQL_UPDATE_NON_UNIQUE,
SQL_DELETE_UNIQUE,
SQL_DELETE_NON_UNIQUE,
SQL_CONTROL,
SQL_SET_TRANSACTION,
SQL_SET_CATALOG,
SQL_SET_SCHEMA, SQL_OTHER,
SQL_UNKNOWN,
SQL_CALL_NO_RESULT_SETS,
SQL_CALL_WITH_RESULT_SETS,
SQL_SP_RESULT_SET,
SQL_NOT_SUPPORTED. For
definitions of SQL statement types,
see the Neoview SQL Reference
Manual. For example, to find
information about
SQL_SET_TRANSACTION, look up
the SET TRANSACTION statement
in the Neoview SQL Reference Manual.
The suffix _UNIQUE indicates that
the statement operates on a single
row. The suffix _NON_UNIQUE
indicates that the statement could
operate on multiple rows. In the
START row for an ExecuteDirect
query, the value of this field is always
SQL_UNKNOWN; in the END row,
it has its proper value.

CHARACTER(36)

STATEMENT_TYPE

A unique ID for the query, beginning
with the string “MXID” and
including, among other elements a
unique query number, delimited by
underscores, and an ODBC-generated
statement ID. If an error occurred
before the query launched, the value
in this field is the text <EMPTY>.

VARCHAR(160)

QUERY_ID

Text of the query. If the length
exceeds 3200 bytes, the Repository
will contain multiple rows, with
ascending values in the
SEQUENCE_NUM field.

VARCHAR(3200)

SQL_TEXT

VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V2

For ODBC/JDBC data—not query runtime statistics—the Repository stores a start and end row
for each ODBC query (active or historical). To access the rows separately, use the
ODBC_QUERY_STATS_V1 view.
In contrast, the view ODBC_QUERY_STATS_V2 converts this information so that a single row
provides complete information about the start and end of a query for COMPLETE queries. You
can also use this view to extract UNTERMINATED queries and MULTIROW queries.
UNTERMINATED queries are queries that are still active (INCOMPLETE) or that terminated
abnormally (ERRTERMINATION). MULTIROW rows provide the complete query text of queries
whose length exceeds 3200 bytes. The QUERY_TEXT_IS_MULTIROW column also designates
multirow queries.

Query Statistics for Release 2.4

119

Advertising