Purpose
This statement is used to initiate a major compaction or minor compaction for a normal tenant. Manual major 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 its own major compaction. |
| MINOR FREEZE | Initiates a minor compaction. Note Only the user tenant can initiate its own minor compaction. |
| {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 merge error flag. Note Only the user tenant can clear its own merge error flag. |
Examples
Examples related to major compactions
Initiates a daily major compaction for a normal tenant.
obclient> ALTER SYSTEM MAJOR FREEZE; Query OK, 0 rows affectedSuspends a daily major compaction for a normal tenant.
obclient> ALTER SYSTEM SUSPEND MERGE; Query OK, 0 rows affectedResumes a daily major compaction for a normal tenant.
obclient> ALTER SYSTEM RESUME MERGE; Query OK, 0 rows affectedClears the merge error flag for a normal tenant.
obclient> ALTER SYSTEM CLEAR MERGE ERROR; Query OK, 0 rows affected
Examples related to minor compactions
Initiates a minor compaction for a normal tenant.
obclient> ALTER SYSTEM MINOR FREEZE; Query OK, 0 rows affected