Repairs a database, if possible.
CALL DBCloud.RepairDatabase ( database=database, exp_running_status=exp_running_status [, optional-parameters ] )
dbcloudcmd run RepairDatabase database exp_running_status [ optional-parameters ]
The database to repair. Accepts a search query that identifies one database, for example a database name or ID. (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.
Whether the copy nodes of the database need to be repaired. The default is 1.
This task repairs a database to its expected running status (either stopped or running). Repairing a database fails if its parent object is not running properly. The cloud servers running the primary and mirror databases, the arbiter for the tenant mirroring system, and the hosts that those cloud servers run on must all be running for the database to be successfully repaired.
The following task repairs and starts the database my_db and all its database copies that are on running cloud servers:
dbcloudcmd run RepairDatabase database=my_db exp_running_status=run