REINSTATE DATABASE
The REINSTATE DATABASE command reinstates a database as a new standby database in the broker configuration for the current primary database.
Format
REINSTATE DATABASE <db_unique_name>;
Command Parameters
Usage Notes
-
If the conditions for reinstatement described in Reinstating the Former Primary Database in the Broker Configuration are not satisfied, the reinstatement will fail with an appropriate error status and the specified database will remain disabled.
-
If the
db_unique_namespecified is that of the old primary and fast-start failover is enabled, the old primary database will be reinstated as a standby to the new primary, and the fast-start failover environment will be updated to reflect the availability of the new standby database. It will accept redo data from the new primary database and be the target of a fast-start failover should the new primary database fail. Reinstatement occurs automatically if the observer is running unless theFastStartFailoverAutoReinstateconfiguration property is set toFALSE. -
This command does not require that fast-start failover be enabled. It can be used to reinstate an old primary database after a complete manual failover has been performed. It can also be used to reinstate a bystander standby database that had been disabled after either a complete or immediate failover.
-
Issue this command while connected to any database in the broker configuration, except the database that is to be reinstated.
Command Example
The following example reinstates the North_Sales database as a standby database in the broker configuration.
DGMGRL> REINSTATE DATABASE 'North_Sales'; Reinstating database "North_Sales", please wait... Reinstatement of database "North_Sales" succeeded