Note
This view is available starting with V4.0.0.
Overview
Displays the cumulative modification information of tables in the current tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| TABLE_OWNER | varchar(128) | NO | Database of the Modified Table |
| TABLE_NAME | varchar(128) | NO | Name of the table to be modified |
| PARTITION_NAME | varchar(128) | NO | Modified partition name |
| SUBPARTITION_NAME | varchar(128) | NO | Modified Subpartition Name |
| INSERTS | bigint(20) | NO | Approximate Number of Insertions |
| UPDATES | bigint(20) | NO | Total Number of Updates |
| DELETES | bigint(20) | NO | Approximate Number of Deletions |
| TIMESTAMP | date | NO | Indicates the time when the table was last modified. |
| TRUNCATED | varchar(3) | NO | Currently has no practical meaning, defaults to NULL. |
| DROP_SEGMENTS | bigint(0) | NO | Currently has no practical meaning, defaults to NULL. |
Sample query
Query the cumulative modification information of table t_subpart.
obclient [oceanbase]> SELECT * FROM oceanbase.DBA_TAB_MODIFICATIONS WHERE TABLE_NAME='t_subpart';
The query result is as follows:
+-------------+---------------+----------------+-------------------+---------+---------+---------+------------+-----------+---------------+
| TABLE_OWNER | TABLE_NAME | PARTITION_NAME | SUBPARTITION_NAME | INSERTS | UPDATES | DELETES | TIMESTAMP | TRUNCATED | DROP_SEGMENTS |
+-------------+---------------+----------------+-------------------+---------+---------+---------+------------+-----------+---------------+
| test | t_subpart | NULL | p2023sp0 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2023sp1 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2023sp2 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2023sp3 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2024sp0 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2024sp1 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2024sp2 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p2024sp3 | 0 | 0 | 0 | 2025-03-21 | NULL | NULL |
| test | t_subpart | NULL | p_maxsp1 | 1 | 0 | 0 | NULL | NULL | NULL |
+-------------+---------------+----------------+-------------------+---------+---------+---------+------------+-----------+---------------+
9 rows in set
