beautypg.com

View neo.hp_metrics.odbc_query_stats_v2, Odbc_query_stats_v2 fields – HP Neoview Release 2.4 Software User Manual

Page 26

background image

2 digits

processing node (CPU) number

node

4 digits

process identification number

pin

18 digits

time when the Master Executor
process started

processStartTS

10 digits

sequentially increasing session
number

sessionNum

2 digits

length of the user ALIAS name

unLen

unLen

bytes, maximum 32

internal safeguard alias for actual
user name (see Note following this
table)

userName

2 digits

length of application-specified session
name

snLen

snLen

bytes, maximum 24

actual session name

sessionName

The session ID consists of the first nine fields of the query ID. All fields are fixed length, except
the user name and session name. The ID has a total maximum length of 160.

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 descriptions 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.

The primary key for ODBC_QUERY_STATS_V2 fields is SEGMENT_ID, NODE_ID,
SEQUENCE_NUM and the date/time fields (QUERY_START_DATETIME_UTC and the other
date fields.

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

26

Repository Views