3 repository views, Overview, Query statistics – HP Neoview Release 2.3 Software User Manual
Page 21: Overview query statistics, Chapter 3: repository views
3 Repository Views
Overview
You can use the following views for access to the Repository:
•
“VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V1” (page 22)
•
“VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V2” (page 25)
•
“VIEW NEO.HP_METRICS.QUERY_RUNTIME_STATS_V1” (page 27)
•
“VIEW NEO.HP_METRICS.ODBC_SESSION_STATS_V1” (page 35)
•
“VIEW NEO.HP_METRICS.ODBC_SESSION_STATS_V2” (page 38)
•
“VIEW NEO.HP_METRICS.NODE_STATS_V1” (page 41)
•
“VIEW NEO.HP_METRICS.PROCESS_STATS_V1” (page 44)
•
“VIEW NEO.HP_METRICS.PROCESS_AGGR_LEVEL1_STATS_V1” (page 46)
•
“VIEW NEO.HP_METRICS.TABLE_STATS_V2 and VIEW
NEO.HP_METRICS.TABLE_STATS_DETAIL_V2” (page 52)
•
“VIEW NEO.HP_METRICS.DISK_STATS_V1” (page 54)
Query Statistics
The Repository defines three views for retrieval of query information:
•
“VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V1” (page 22)
preserves separate rows
for data collected at the start and end of a query.
•
“VIEW NEO.HP_METRICS.ODBC_QUERY_STATS_V2” (page 25)
combines all statistics
collected at the start and end of the query in a single row.
•
“VIEW NEO.HP_METRICS.QUERY_RUNTIME_STATS_V1” (page 27)
provides statistics
collected while a query is in progress.
A Repository configuration can support ODBC query statistics, query runtime statistics, or both.
By default, both are enabled. The following table lists the major differences between ODBC and
query runtime statistics.
NOTE:
Many of the differences reflect features of Neoview Workload Management Services
(WMS). For information about that product, see the Neoview Workload Management Services Guide.
Table 3-1 Comparison of ODBC Query Statistics and Query Runtime Statistics
Query Runtime Statistics
ODBC Query Statistics
Monitors queries managed by WMS.
Monitors queries from ODBC and JDBC.
Execution metrics are updated while the query is running.
Data for finished queries is stored in the Repository.
Execution metrics become available at the end of the
query.
Includes additional query data, such as disk process busy
time, query elapsed time, execution start and end times
(when available), node utilization percentages, and busy
times for various processes involved in query execution.
Includes only information supplied by the NDCS (ODBC,
JDBC) server and available through Neoview event
services.
Provides all statement information in a single row.
Different views provide separate rows of data at the start
and end of query, or consolidate data in a single row.
Query completion statistics might not be available from
the runtime statistics data source. In this case, the final
statistics are the last received from WMS.
Query completion statistics are provided by the NDCS
server when the query completes.
SQL text is not available.
SQL text is available.
Service name is available.
Data source name is available.
Overview
21