View neo.hp_metrics.odbc_query_stats_v2, Odbc_query_stats_v2 fields – HP Neoview Release 2.3 Software User Manual
Page 25
Table 3-2 ODBC_QUERY_STATS_V1 Field Definitions (continued)
Description
Data Type
Field Name
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
VARCHAR(160) or NCHAR
VARYING(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) or NCHAR
VARYING(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.
This table indicates which fields are present for completed and incomplete queries. The source
of data fields indicates whether the value is collected at the start of the query or at the end. Unless
indicated here, field semantics are those provided above for ODBC_QUERY_STATS_V1.
Character columns use ISO88591 or UCS2 encoding, as appropriate to the Neoview platform
configuration. In the following table:
•
If a data type is given as CHAR or NCHAR, then CHAR applies if the character set is
ISO88591, and NCHAR applies if the character set is UCS2.
•
If a data type is given as VARCHAR or NCHAR VARYING, the VARCHAR applies if the
character set is ISO88591, and NCHAR VARYING applies if the character set is UCS2.
Table 3-3 ODBC_QUERY_STATS_V2 Fields
Source and Notes
Data Type
Incomplete Queries
Complete Queries
START
CHAR(10) or
NCHAR(10)
SEGMENT_NAME
SEGMENT_NAME
START
INT
UNSIGNED
SEGMENT_ID
SEGMENT_ID
START
INT
UNSIGNED
NODE_ID
NODE_ID
Derived from CPU,
PIN
INT
UNSIGNED
PIN
PIN
START
SMALLINT
UNSIGNED
START_PRIORITY
START
CHAR(18) or
NCHAR(18)
PROCESS_NAME
PROCESS_NAME
Query Statistics
25