beautypg.com

View neo.hp_metrics.odbc_query_stats_v1, Odbc_query_stats_v1 field definitions – HP Neoview Release 2.4 Software User Manual

Page 101

background image

QUERY_STATS_VW1 and SQL_TEXT_VW1 so that you can obtain query statistics in a single
row.

CAUTION:

Although your pre-R2.4 SP1 queries will not fail due to view changes, some fields

are no longer available in ODBC_QUERY_STATS_V1, ODBC_QUERY_STATS_V2, and
QUERY_RUNTIME_STATS_V1. These fields now return NULL values when you run queries
using these views. For details, see

Table D-1 (page 118)

.

VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V1

This view preserves separate rows for data collected at the start and end of a query. If information
is not available for a field (because the record represents the start of a session and the field is not
populated until the end), the value in that field is NULL. To distinguish easily between start and
end records, you can filter results according to the value of STATEMENT_STATUS.
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 the ODBC_QUERY_STATS_V1_2400 field definition is SEGMENT_ID,
NODE_ID, SEQUENCE_NUM and the date/time fields (QUERY_EVENT_DATETIME_UTC and
other date fields).

Table C-5 ODBC_QUERY_STATS_V1 Field Definitions

Description

Data Type

Field Name

Segment number of the NDCS server
that reported the statistics.

INTEGER UNSIGNED

SEGMENT_ID

Processing node number of the NDCS
server which reported the statistics.
This is the node where the master
executor process which executed the
query was running.

INTEGER UNSIGNED

NODE_ID

ANSI SQL timestamp in Local Civil
Time when the statistics were
recorded in the Repository.

TIMESTAMP(6)

QUERY_EVENT_DATETIME

ANSI SQL date in Local Civil Time
when the statistics were recorded in
the Repository.

DATE

QUERY_EVENT_DATE

ANSI SQL time in Local Civil Time
when the statistics were recorded in
the Repository.

TIME(6)

QUERY_EVENT_TIME

ANSI SQL timestamp in Coordinated
Universal Time when the statistics
were recorded in the Repository.

TIMESTAMP(6)

QUERY_EVENT_DATETIME_UTC

ANSI SQL date in Coordinated
Universal Time when the statistics
were recorded in the Repository.

DATE

QUERY_EVENT_DATE_UTC

ANSI SQL time in Coordinated
Universal Time when the statistics
were recorded in the Repository.

TIME(6)

QUERY_EVENT_TIME_UTC

Unique session ID generated by the
NDCS server when the ODBC/JDBC
connection was established.

CHARACTER(108) or
NCHAR(108)

SESSION_ID

VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V1

101