Overview
Displays the global major compaction information for the tenant.
Columns
Field Name |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| FROZEN_SCN | bigint(20) unsigned | NO | Version number of the most recent major compaction |
| FROZEN_TIME | timestamp(6) | NO | Time when the last major compaction was initiated (displayed in a readable format). |
| GLOBAL_BROADCAST_SCN | bigint(20) unsigned | NO | Global Broadcast Major Compaction Version |
| LAST_SCN | bigint(20) unsigned | NO | The last version for which major compaction is completed |
| LAST_FINISH_TIME | timestamp(6) | NO | Last Major Compaction End Time |
| START_TIME | timestamp(6) | NO | Start Time of Major Compaction |
| STATUS | varchar(10) | NO |
|
| IS_ERROR | varchar(3) | NO |
|
| IS_SUSPENDED | varchar(3) | NO |
|
| INFO | varchar(14) | NO | Displays the major compaction information. For example, the cause of the major compaction failure. |
| MODE | varchar(7) | NO | Type of daily major compaction:
|
Sample query
The system tenant queries the global major compaction information of the current tenant.
obclient(root@sys)[oceanbase]> SELECT * FROM oceanbase.DBA_OB_MAJOR_COMPACTION;
The query result is as follows:
+---------------------+----------------------------+----------------------+---------------------+----------------------------+----------------------------+--------+----------+--------------+------+--------+
| FROZEN_SCN | FROZEN_TIME | GLOBAL_BROADCAST_SCN | LAST_SCN | LAST_FINISH_TIME | START_TIME | STATUS | IS_ERROR | IS_SUSPENDED | INFO | MODE |
+---------------------+----------------------------+----------------------+---------------------+----------------------------+----------------------------+--------+----------+--------------+------+--------+
| 1773079200622919000 | 2026-03-10 02:00:00.622919 | 1773079200622919000 | 1773079200622919000 | 2026-03-10 02:04:11.869858 | 2026-03-10 02:00:00.761885 | IDLE | NO | NO | | TENANT |
+---------------------+----------------------------+----------------------+---------------------+----------------------------+----------------------------+--------+----------+--------------+------+--------+
1 row in set
References
View major compaction information for each zone in the tenant: DBA_OB_ZONE_MAJOR_COMPACTION
View basic statistics on tablet-level major compactions:
View detailed historical information on tablet-level major compactions:
For more information about major compaction, see the following topics: