When we have planned maintenance activity we can simply switch roles of Primary and Standby database. But what if Primary Database crashes and we can’t recover it in a time.
Data Guard has a solution for that. We can Fail Over Primary database role to Standby Database and we don’t need to switch Standby Database role to Primary Database.
Types of FailOver:
1.Manual FailOver:
If the Primary database fails, one of the standby databases can be made to assume the Primary role. This role change of standby database to primary, in case of failure of existing primary, is called failover. There may or may not be data loss. This is not a planned activity and is performed only in catastrophic cases where the Primary database fails.
2. Fast-start FailOver:
We need to configure this in data guard broker. So when Primary Database is unavailable. Dgbroker will fail over primary database role to One of standby database configured previously in dgbroker.
Failover Considerations: Things we need to take care while using this option.
In this option old primary database will be disabled from the Data Guard configuration.
If primary database crashed and generated archived not copied to standby database then data loss is possible.
This option is critical and should only be used in EMERGENCY.
Note: To use this option we should use Standby Database is most current[Maximum synchronized]
Check Standby Database role
PRACTICE :
No comments:
Post a Comment