Purpose
This statement is used to initiate a major compaction or a minor compaction for a normal tenant. Manual compactions and minor compactions are only supported at the tenant level.
Syntax
ALTER SYSTEM merge_action;
merge_action:
MAJOR FREEZE
| MINOR FREEZE
| {SUSPEND | RESUME} MERGE
| CLEAR MERGE ERROR
Parameters
| Parameter | Description |
|---|---|
| MAJOR FREEZE | Initiates a daily major compaction. Note Only the user tenant can initiate a major compaction for itself. |
| MINOR FREEZE | Initiates a minor compaction. Note Only the user tenant can initiate a minor compaction for itself. |
| {SUSPEND | RESUME} MERGE | Suspends or resumes a daily major compaction. Note Only the user tenant can suspend or resume its own daily major compaction. |
| CLEAR MERGE ERROR | Clears the error flag for a major compaction. Note Only the user tenant can clear the error flag for its own major compaction. |
Examples
Examples related to major compactions
Initiates a daily major compaction for the normal tenant.
obclient> ALTER SYSTEM MAJOR FREEZE; Query OK, 0 rows affectedSuspends the daily major compaction for the normal tenant.
obclient> ALTER SYSTEM SUSPEND MERGE; Query OK, 0 rows affectedResumes the daily major compaction for the normal tenant.
obclient> ALTER SYSTEM RESUME MERGE; Query OK, 0 rows affectedClears the error flag for the major compaction of the normal tenant.
obclient> ALTER SYSTEM CLEAR MERGE ERROR; Query OK, 0 rows affected
Examples related to minor compactions
Initiates a minor compaction for the normal tenant.
obclient> ALTER SYSTEM MINOR FREEZE; Query OK, 0 rows affected