Purpose
You can use this statement to promote the rolling upgrade of the primary and standby clusters. This statement must be invoked in sequence to promote the upgrade for OceanBase Database.
Syntax
ALTER SYSTEM {BEGIN | BEGIN ROLLING | END ROLLING | END} UPGRADE;
Parameters
| Parameter | Description |
|---|---|
| BEGIN | Begins the upgrade process. |
| BEGIN ROLLING | Begins the rolling upgrade process. |
| END ROLLING | Ends the rolling upgrade process. |
| END | Ends the upgrade process. The upgrade is completed. |
Examples
Begin the pre-upgrade process to start the upgrade.
obclient> ALTER SYSTEM BEGIN UPGRADE;Start the rolling upgrade process after the pre-upgrade process ends.
obclient> ALTER SYSTEM BEGIN ROLLING UPGRADE;Start the post-upgrade process after the rolling upgrade process ends.
obclient> ALTER SYSTEM END ROLLING UPGRADE;End the post-upgrade process to complete the upgrade.
obclient> ALTER SYSTEM END UPGRADE;