Purpose
The oceanbase.CDB_OB_MAJOR_COMPACTION view displays the global major compaction information of all tenants in the sys tenant.
Columns
| Column | Type | Nullable? | Description |
|---|---|---|---|
| TENANT_ID | bigint(20) | NO | The ID of the tenant. |
| FROZEN_SCN | bigint(20) unsigned | NO | The version number of the last major compaction. |
| FROZEN_TIME | timestamp(6) | NO | The time when the last major compaction was initiated. The value of FROZEN_SCN is displayed in an intelligible format. |
| GLOBAL_BROADCAST_SCN | bigint(20) unsigned | NO | The major compaction version that is globally broadcast. |
| LAST_SCN | bigint(20) unsigned | NO | The last version of major compaction. |
| LAST_FINISH_TIME | timestamp(6) | NO | The time when the last major compaction was completed. |
| START_TIME | timestamp(6) | NO | The time when the major compaction started. |
| STATUS | varchar(10) | NO | IDLE: not in major compactionCOMPACTION: in major compactionCHECKSUM: checksum checking |
| IS_ERROR | varchar(3) | NO | YES: An error occurred during the major compaction.NO: No error occurred during the major compaction. |
| IS_SUSPENDED | varchar(3) | NO | YES: The major compaction was suspended.NO: The major compaction was not suspended. |
| INFO | varchar(14) | NO | The major compaction information. For example, the reason for the major compaction failure. |