40.5.4 Items that are output as SQL statement statistical information
- Organization of this subsection
(1) List of items that are output as SQL statement statistical information
The following table lists the titles of the items (columns) that are output as SQL statement statistical information and the content that is output. The columns are output in the order listed in the table.
If one SQL statement accessed multiple global buffers and DB areas, separate lines of information are output under that SQL statement for the individual global buffers and DB areas. For examples of SQL statement statistical information, see (2) Examples of SQL statement statistical information.
No. |
Column title |
Information that is output |
Enclosing character |
---|---|---|---|
1 |
Type |
|
N |
2 |
HADB_system_version |
|
Y |
3 |
Timestamp |
|
Y |
4 |
AP_name |
|
Y |
5 |
Connection_information |
|
Y |
6 |
Connect_time |
|
Y |
7 |
SQL_serial_number |
|
N |
8 |
SQL_type |
|
N |
9 |
SQL_total_time |
|
N |
10 |
Fetch_row_cnt |
|
N |
11 |
Update_row_cnt |
|
N |
12 |
Hashgrp_area_max_size |
|
N |
13 |
Hashgrp_area_get_cnt |
|
N |
14 |
Hashtbl_area_max_size |
|
N |
15 |
Lock_dbarea_request_cnt |
|
N |
16 |
Lock_dbarea_wait_cnt |
|
N |
17 |
Lock_dbarea_wait_time |
|
N |
18 |
Lock_table_request_cnt |
|
N |
19 |
Lock_table_wait_cnt |
|
N |
20 |
Lock_table_wait_time |
|
N |
21 |
DBbuff_dbarea_information_num |
|
N |
22 |
DBbuff_information_num |
|
N |
23 |
DBbuff_dbarea_name |
|
Y |
24 |
DBbuff_name |
|
Y |
25 |
DBbuff_page_request_cnt |
|
N |
26 |
DBbuff_page_hit_cnt |
|
N |
27 |
DBbuff_page_hit_rate |
|
N |
28 |
DBbuff_page_put_cnt |
|
N |
29 |
DBbuff_page_read_cnt |
|
N |
30 |
DBbuff_page_write_cnt |
|
N |
31 |
DBbuff_page_rng_request_cnt |
|
N |
32 |
DBbuff_page_rng_hit_cnt |
|
N |
33 |
DBbuff_page_rng_hit_rate |
|
N |
34 |
DBbuff_page_rng_put_cnt |
|
N |
35 |
DBbuff_page_rng_read_cnt |
|
N |
36 |
DBbuff_page_rng_write_cnt |
|
N |
37 |
DBbuff_tblscan_request_cnt |
|
N |
38 |
DBbuff_tblscan_hit_cnt |
|
N |
39 |
DBbuff_tblscan_hit_rate |
|
N |
40 |
DBbuff_tblscan_read_cnt |
|
N |
41 |
DBbuff_tblscan_failed_cnt |
|
N |
42 |
DBbuff_tblscan_insufficient_buff_num |
|
N |
43 |
DBbuff_tblscan_reset_cnt |
|
N |
44 |
DBbuff_wrktbl_clt_request_cnt |
|
N |
45 |
DBbuff_wrktbl_clt_hit_cnt |
|
N |
46 |
DBbuff_wrktbl_clt_hit_rate |
|
N |
47 |
DBbuff_wrktbl_clt_put_cnt |
|
N |
48 |
DBbuff_wrktbl_clt_read_cnt |
|
N |
49 |
DBbuff_wrktbl_clt_write_cnt |
|
N |
50 |
DBbuff_wrktbl_clt_tbl_cnt |
|
N |
51 |
DBbuff_wrktbl_clt_sort_merge_cnt |
|
N |
52 |
DBbuff_wrktbl_clt_sort_page_max_cnt |
|
N |
53 |
Log_usrbuf_out_cnt |
|
N |
54 |
Log_usrfile_max_size |
|
N |
55 |
DBarea_extension_cnt |
|
N |
56 |
Log_usrfile_write_cnt |
|
N |
57 |
DBbuff_wrktbl_clt_request_fix_cnt |
This value is used by the system.#14 |
N |
58 |
DBbuff_wrktbl_clt_pagein_fix_cnt |
This value is used by the system.#14 |
N |
59 |
DBbuff_wrktbl_clt_pageout_fix_cnt |
This value is used by the system.#14 |
N |
60 |
DBbuff_wrktbl_clt_max_used_blk_num |
|
N |
61 |
Directory_send_num |
This value is used by the system.#14 |
N |
62 |
Directory_recv_num |
This value is used by the system.#14 |
N |
63 |
Log_send_num |
This value is used by the system.#14 |
N |
64 |
Log_recv_num |
This value is used by the system.#14 |
N |
65 |
DBbuff_send_num |
This value is used by the system.#14 |
N |
66 |
DBbuff_recv_num |
This value is used by the system.#14 |
N |
67 |
Node_com_num |
|
N |
68 |
Node_com_time |
|
N |
69 |
Bidx_page_split_cnt |
|
N |
70 |
Tidx_page_split_cnt |
|
N |
71 |
Bidx_validation_check_cnt |
|
N |
72 |
Ridx_sgmt_skip_cnt |
|
N |
73 |
Ridx_chunk_skip_cnt |
|
N |
74 |
Ridx_chunk_read_cnt |
|
N |
75 |
Ridx_chunk_judge_cnt |
|
N |
76 |
Ridx_sgmt_read_cnt |
|
N |
77 |
Ridx_sgmt_judge_cnt |
|
N |
78 |
SegmentRel_rthd_max_num |
|
N |
79 |
Csvread_file_cnt |
|
N |
80 |
Csvread_file_read_size |
|
N |
81 |
Hashgrp_area_shortage |
|
N |
82 |
Hashgrp_area_sufficient_size |
|
N |
83 |
Hashtbl_area_shortage |
|
N |
84 |
Syndict_file_access_time |
|
N |
85 |
Auditread_file_cnt |
|
N |
86 |
Auditread_file_read_size |
|
N |
87 |
DBbuff_tblscan_read_size |
|
N |
88 |
DBbuff_tblscan_rthd_min_size |
|
N |
89 |
DBbuff_tblscan_rthd_max_size |
|
N |
90 |
DBbuff_tblscan_use_size |
|
N |
91 |
DBbuff_tblscan_insufficient_buff_size |
|
N |
92 |
Hashflt_disabled |
|
N |
93 |
Tbldef_req_cnt |
|
N |
94 |
Tbldef_access_cnt |
|
N |
95 |
Tbldef_cache_access_cnt |
|
N |
96 |
Tbldef_cache_register_cnt |
|
N |
97 |
Tbldef_cache_sweep_cnt |
|
N |
98 |
DBbuff_page_wait_cnt |
This value is used by the system.#20 |
N |
99 |
Max_sql_rthd_num |
|
N |
100 |
Hashtbl_area_size |
|
N |
101 |
Hashflt_area_size |
|
N |
- Legend:
-
Y: The output value is enclosed in a pair of enclosing characters.
N: The output value is not enclosed in the enclosing character.
- #1
-
The year (YYYY) is output in 4 digits. The month (MM), date (DD), hours (hh), minutes (mm), and seconds (ss) are each output in 2 digits. The microsecond (nnnnnn) is output as six digits. If there are not enough digits, leading zeros are added. Δ indicates a single-byte space.
- #2
-
To output the KFAA51000-I messages to the message log file, you must have specified in advance the adb_sql_text_out operand in the server definition so that SQL statements will be output to the message log file.
- #3
-
The KFAA51005-I message is output if the SQL statement results in an error.
- #4
-
The following table lists and describes the SQL statement types that are displayed.
Table 40‒8: SQL statement types No.
SQL statement type
Description
1
ALTER_TABLE
Changing table definitions
2
ALTER_USER
Changing HADB user information
3
ALTER_VIEW
Re-creating viewed tables
4
CREATE_AUDIT
Defining audit targets
5
CREATE_INDEX
Defining indexes
6
CREATE_SCHEMA
Defining schemata
7
CREATE_TABLE
Defining tables
8
CREATE_USER
Creating HADB users
9
CREATE_VIEW
Defining viewed tables
10
DROP_AUDIT
Deleting audit target definitions
11
DROP_INDEX
Deleting indexes
12
DROP_SCHEMA
Deleting schemata
13
DROP_TABLE
Deleting tables
14
DROP_USER
Deleting HADB users
15
DROP_VIEW
Deleting viewed tables
16
GRANT
Granting privileges
17
REVOKE
Revoking privileges
18
DELETE
Deleting rows
19
INSERT
Inserting rows
20
PURGE_CHUNK
Deleting all rows from a chunk
21
SELECT
Retrieving rows
22
TRUNCATE_TABLE
Deleting all rows from a base table
23
UPDATE
Updating rows
24
No value is output.
The SQL statement type is other than one of the above or the SQL statement preprocessing resulted in an error.
- #5
-
The following SQL statements' execution time is counted:
-
SELECT statement
-
INSERT statement
-
UPDATE statement
-
DELETE statement
-
TRUNCATE TABLE statement
-
PURGE CHUNK statement
-
- #6
-
This is the number of rows fetched on the HADB server. If an error occurs in an SQL statement using batch transfer of retrieval results, the displayed value might differ from the actual number of rows fetched by the application program.
The fetched row count does not include the number of rows retrieved when the following commands were executed:
-
adbarchivechunk command
-
adbexport command
-
adbgetcst command
-
adbidxrebuild command
-
adbmergechunk command
-
adbreorgsystemdata command
-
- #7
-
If an error occurs in an SQL statement using batch transfer of retrieval results, the rows that were updated successfully before the error occurred are counted. If the SQL statement is rolled back implicitly, the number of updated rows is 0.
- #8
-
If local hash grouping processing is applied, as many hash grouping areas are allocated as the number of SQL processing real threads. If local hash grouping processing is applied within a subquery that contains an external reference column, local hash grouping processing is performed as many times as the number of rows outside the subquery. Therefore, as many hash grouping areas are allocated as the value obtained from the following formula:
number-of-rows-in-external-queries × number-of-SQL-processing-real-threads
- #9
-
When a global buffer page is requested, global buffer flushing might occur. In such a case, the page subject to flushing might not be the page accessed by the SQL statement that requested the page. Therefore, information about a DB area or global buffer that is not accessed by the target SQL statement might be output as SQL statement statistical information.
- #10
-
Digits to the right of the decimal point are rounded up.
- #11
-
Statistical information on accesses to the table scan buffer in pages.
- #12
-
Statistical information on accesses to the table scan buffer in segments.
- #13
-
This does not include automatic extensions for the work table DB area. To determine whether automatic extension has occurred for the work table DB area, check the value of Wrktbl_page_use_max in No. 13 in Table 40‒4: Columns output as HADB server statistical information in 40.5.1 Items that are output as HADB server statistical information.
- #14
-
No value is output if the value of the HADB_system_version column is 03-00.
A value is output if the value of the HADB_system_version column is 03-01 or later.
- #15
-
The access time is counted each time the synonym dictionary file is accessed, but the time less than a microsecond is cut off. Therefore, if every access requires less than 1 microsecond, the total access time is 0.
- #16
-
No value is output if the value of the HADB_system_version column is earlier than 03-06.
A value is output if the value of the HADB_system_version column is 04-00 or later.
- #17
-
No value is output if the value of the HADB_system_version column is earlier than 04-00.
A value is output if the value of the HADB_system_version column is 04-01 or later.
- #18
-
The value of memory size used for the table scan buffer specified in the -v option of the adbbuff operand in the server definition includes the area used for managing the table scan buffer. For this reason, you cannot assign the entire memory specified by the -v option to real threads. Therefore, the value output for the output item applicable to this note does not match the value of memory size used for the table scan buffer or maximum memory size that can be used for each real thread specified in the -v.
- #19
-
No value is output if the value of the HADB_system_version column is earlier than 04-02.
A value is output if the value of the HADB_system_version column is 04-03 or later.
- #20
-
No value is output if the value of the HADB_system_version column is earlier than 04-03.
A value is output if the value of the HADB_system_version column is 05-00 or later.
- #21
-
No value is output if the value of the HADB_system_version column is earlier than 05-00.
A value is output if the value of the HADB_system_version column is 05-01 or later.
(2) Examples of SQL statement statistical information
The SQL statement statistical information item values that are output depend on whether the corresponding SQL statement accessed DB areas. This subsection shows examples of SQL statement statistical information when the target SQL statement accessed DB areas and when it did not access any DB areas.
- Note
-
In the examples provided below, spaces are used to align the items for readability. The lines in the actual output results are very long so, in the figure, each line is divided into multiple parts.
The following figure shows an example of SQL statement statistical information when the target SQL statement accessed three DB areas.
|
The following figure shows an example of SQL statement statistical information when the target SQL statement did not access any DB areas.
|