Note
This view is available starting with V4.0.0.
Purpose
This view displays the DML information of user tables in the current tenant on the current OBServer node.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| SVR_IP | varchar(46) | NO | The IP address of the server. |
| SVR_PORT | bigint(20) | NO | The port number of the server. |
| INST_ID | bigint(20) | NO | The tenant ID. |
| OBJN | bigint(20) | NO | The object ID. |
| INS | bigint(20) | NO | The approximate number of insertions since the last statistics collection. |
| UPD | bigint(20) | NO | The approximate number of updates since the last statistics collection. |
| DEL | bigint(20) | NO | The approximate number of deletions since the last statistics collection. |
| DROPSEG | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| CURROWS | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| PAROBJN | bigint(20) | NO | This column is not supported and is set to NULL by default. |
| LASTUSED | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| FLAGS | bigint(0) | NO | This column is not supported and is set to NULL by default. |
| CON_ID | bigint(0) | NO | This column is not supported and is set to NULL by default. |
Sample query
Query the DML information of user tables in the current tenant on the current OBServer node.
obclient [oceanbase]> SELECT * FROM oceanbase.V$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 | 18 | 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
