Repairs a database copy, if possible.
CALL DBCloud.RepairDatabaseCopy ( databasecopy=databasecopy, exp_running_status=exp_running_status )
dbcloudcmd run RepairDatabaseCopy databasecopy exp_running_status
The database copy to repair. Accepts a database copy name, ID, or a search query that returns a database copy. (Required)
The expected status after repair. (Required)
The following values are supported:
The object should not be running.
The object should be running and accepting requests.
The object is being maintained.
This task repairs a database copy to its expected running status (either stopped or running). Repairing a database copy fails if its parent object is not running properly. The cloud server and host that the database copy is located on, as well as the cloud server and host where the primary database is located, the arbiter for the tenant mirroring system, and the hosts that those cloud servers run on must all be running for the database copy to be successfully repaired.
Repairing a read-only scale-out copy to run status fails if the primary database is stopped.
The value maintenance is for internal use only.
Run the following task to repair and start the database copy of the tenant database my_db_3 running on the cloud server my-server#2:
dbcloudcmd run RepairDatabaseCopy databasecopy=my_db_3@my-server#2 exp_running_status=run