Scenario 4: Setting the Configuration Protection Mode
You can change the protection mode of the configuration at any time.
Note:
You cannot change the protection mode from maximum performance mode to maximum protection mode. You must first change the protection mode to maximum availability and then to maximum protection mode.
A restart of the primary database is not necessary when changing the protection mode.
This scenario sets the protection mode of the configuration to the MAXAVAILABILITY mode. Note that this protection mode requires that there be at least one standby configured to use standby redo log files and it must receive redo via SYNC or FASTSYNC mode if it receives redo directly from the primary database. If the standby receives redo via a far sync instance, then the far sync instance must receive redo via SYNC or FASTYSYNC mode and the standby must receive redo from the far sync instance via ASYNC mode.
-
Configure standby redo log files, if necessary.
Because you will be setting the protection mode to the
MAXAVAILABILITYmode, it is important to ensure that sufficient standby redo log files are configured on the standby database. For more information on setting up redo transport, see Oracle Data Guard Concepts and Administration. -
Configure redo transport mode appropriately.
Configure the standby to receive redo via
SYNCorFASTSYNCmode, if the standby receives redo directly from the primary database. If the standby receives primary redo via a far sync instance, then configure the far sync instance to receive redo viaSYNCorFASTSYNCmode and configure the standby to receive redo viaASYNCmode. For example:DGMGRL> EDIT DATABASE 'South_Sales' SET PROPERTY 'LogXptMode'='SYNC'; Property "LogXptMode" updated
The broker will not allow this command to succeed unless the standby database is configured with standby redo log files in the configuration.
-
Change the overall protection mode for the configuration.
Use the
EDITCONFIGURATIONcommand to upgrade the broker configuration to theMAXAVAILABILITYprotection mode:DGMGRL> EDIT CONFIGURATION SET PROTECTION MODE AS MAXAVAILABILITY; Succeeded.
If the configuration is disabled when you enter this command, the actual protection mode change is not applied until you enable the configuration with the
ENABLE CONFIGURATIONcommand. The broker will not allow you to enable the configuration if it does not find a standby database in the configuration that can support the requirements of the protection mode. -
Verify the protection mode has changed.
Use the
SHOW CONFIGURATIONcommand to display the current protection mode for the configuration:DGMGRL> SHOW CONFIGURATION; Configuration - DRSolution Protection Mode: MaxAvailability Members: North_Sales - Primary database South_Sales - Physical standby database Fast-Start Failover: DISABLED Configuration Status: SUCCESS
See Also: