Overview
Displays the DML information of user tables for the current tenant across all OBServer nodes.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | Server IP Address |
| SVR_PORT | bigint(20) | NO | Server Port Number |
| INST_ID | bigint(20) | NO | Tenant ID |
| OBJN | bigint(20) | NO | Object ID |
| INS | bigint(20) | NO | Approximate Number of Inserts Since the Last Statistics Collection |
| UPD | bigint(20) | NO | Approximate Number of Updates Since the Last Statistics Collection |
| DEL | bigint(20) | NO | Approximate Number of Deletions Since the Last Statistics Collection |
| DROPSEG | bigint(0) | NO | This field is not currently supported and defaults to NULL. |
| CURROWS | bigint(0) | NO | This field is not currently supported and defaults to NULL. |
| PAROBJN | bigint(20) | NO | This field is not currently supported and defaults to NULL. |
| LASTUSED | bigint(0) | NO | This field is not currently supported and defaults to NULL. |
| FLAGS | bigint(0) | NO | This field is not currently supported and defaults to NULL. |
| CON_ID | bigint(0) | NO | This field is not currently supported and defaults to NULL. |
Sample query
View the DML information of user tables for this tenant on all OBServer nodes.
obclient [oceanbase]> SELECT * FROM oceanbase.GV$DML_STATS;
The query result is as follows:
+----------------+----------+---------+--------+------+------+------+---------+---------+---------+----------+-------+--------+
| SVR_IP | SVR_PORT | INST_ID | OBJN | INS | UPD | DEL | DROPSEG | CURROWS | PAROBJN | LASTUSED | FLAGS | CON_ID |
+----------------+----------+---------+--------+------+------+------+---------+---------+---------+----------+-------+--------+
| 11.xxx.xxx.xxx | 28825 | 1002 | 1 | 0 | 32 | 0 | NULL | NULL | 1 | NULL | NULL | NULL |
| 11.xxx.xxx.xxx | 28825 | 1002 | 331 | 5 | 0 | 3 | NULL | NULL | 331 | NULL | NULL | NULL |
| 11.xxx.xxx.xxx | 28825 | 1002 | 519 | 1 | 0 | 0 | NULL | NULL | 519 | NULL | NULL | NULL |
| 11.xxx.xxx.xxx | 28825 | 1002 | 101105 | 1 | 0 | 0 | NULL | NULL | 101105 | NULL | NULL | NULL |
| 11.xxx.xxx.xxx | 28825 | 1002 | 101106 | 1 | 0 | 0 | NULL | NULL | 101106 | NULL | NULL | NULL |
+----------------+----------+---------+--------+------+------+------+---------+---------+---------+----------+-------+--------+
5 rows in set