Skip to main content
Version: V1.3.0

ACTIVATE STANDBY

Description​

ALTER SYSTEM ACTIVATE STANDBY is used when the primary is no longer available. It activates the current standby as the new primary so it accepts reads and writes. This is a lossy failover: data that never replicated to the standby cannot be recovered. Use it only for disaster takeover when the primary cannot be restored.

Permissions​

Executing ALTER SYSTEM ACTIVATE STANDBY requires the ALTER SYSTEM privilege for the current user. For seekdb privileges, see seekdb permission classification.

Syntax​

ALTER SYSTEM ACTIVATE STANDBY [opt_verify];

Parameters​

ParameterDescription
opt_verifyOptional. When specified, runs a pre-check to verify that prerequisites for ACTIVATE STANDBY are met. Note: Primary and standby tenant role transitions can still fail. The VERIFY path only validates prerequisites and helps reduce the chance of failure; it does not run ACTIVATE STANDBY. Even if VERIFY succeeds, the following ACTIVATE STANDBY is not guaranteed to succeed.

Example​

When the primary is down or unreachable and you have decided the standby should take over, run on the standby:

ALTER SYSTEM ACTIVATE STANDBY;

References​