Note
This view is available starting with V4.0.0.
This view displays the global information of major compactions in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| FROZEN_SCN | NUMBER(38) | NO | The version number of the last major compaction. |
| GLOBAL_BROADCAST_SCN | NUMBER(38) | NO | The version number of the global broadcast major compaction. |
| LAST_SCN | NUMBER(38) | NO | The version number of the last major compaction that was completed. |
| 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 | IDLE: No major compaction is in progress.COMPACTING: A major compaction is in progress.CHECKSUM: Checksum verification is in progress. |
| IS_ERROR | VARCHAR2(3) | NO | YES: An error occurred during the major compaction.NO: No error occurred during the major compaction. |
| IS_SUSPENDED | VARCHAR2(3) | NO | YES: The major compaction is suspended.NO: The major compaction is not suspended. |
| INFO | VARCHAR2(14) | NO | The information about the major compaction. For example, the reason why the major compaction failed. |
Sample query
Query the major compaction information of the current user tenant.
obclient [SYS]> SELECT * FROM SYS.DBA_OB_MAJOR_COMPACTION;
The query result is as follows:
+---------------------+----------------------+---------------------+------------------+------------------+--------+----------+--------------+------+
| FROZEN_SCN | GLOBAL_BROADCAST_SCN | LAST_SCN | LAST_FINISH_TIME | START_TIME | STATUS | IS_ERROR | IS_SUSPENDED | INFO |
+---------------------+----------------------+---------------------+------------------+------------------+--------+----------+--------------+------+
| 1736359202149291000 | 1736359202149291000 | 1736359202149291000 | 1736359425486421 | 1736359202174093 | IDLE | NO | NO | NULL |
+---------------------+----------------------+---------------------+------------------+------------------+--------+----------+--------------+------+
1 row in set
References
Query the global information of major compactions in the current tenant: DBA_OB_ZONE_MAJOR_COMPACTION
Query the detailed historical information of major compactions at the tablet level:
For more information about major compactions, see the following topics: