Note
This view is available starting with V4.0.0.
Purpose
This view displays the major compaction information of each zone in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| ZONE | VARCHAR2(128) | NO | The name of the zone. |
| BROADCAST_SCN | NUMBER(38) | NO | The version number of the broadcasted major compaction. |
| LAST_SCN | NUMBER(38) | NO | The version number of the last major compaction. |
| LAST_FINISH_TIME | NUMBER(38) | NO | The end time of the last major compaction. |
| START_TIME | NUMBER(38) | NO | The start time of the major compaction. |
| STATUS | VARCHAR2(10) | NO |
|
Sample query
Query the major compaction information of each zone in the current tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_ZONE_MAJOR_COMPACTION;
The query result is as follows:
+-------+---------------------+---------------------+------------------+------------------+--------+
| ZONE | BROADCAST_SCN | LAST_SCN | LAST_FINISH_TIME | START_TIME | STATUS |
+-------+---------------------+---------------------+------------------+------------------+--------+
| zone1 | 1736474754113143000 | 1736474754113143000 | 1736474917120680 | 1736474754176065 | IDLE |
+-------+---------------------+---------------------+------------------+------------------+--------+
1 row in set
References
Query the global major compaction information of the current tenant: DBA_OB_MAJOR_COMPACTION
Query the detailed historical information about major compactions at the tablet level:
For more information about major compaction, see the following topics: