Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 466
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 471
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 477
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 466
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 471
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 477
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 466
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 471
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 477
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$width in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 463
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 466
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 471
Warning: Undefined property: stdClass::$menualign in /home/ddbcom/public_html/plugins/system/helixultimate/src/Core/Classes/HelixultimateMenu.php on line 477
Oracle Data Guard 19c Deployment Series from Zero to Fast Failover part 6 standby broker
In this part, we implement Data Guard along with Data Guard Broker. Fast-Start Failover and Observer will be explained in the next article.
Topology and Environment Information
As you have seen in the previous five parts, our environment has been set up as follows, and the Data Guard configuration will be based on this topology:
After saving the file, apply the changes using the following command, or alternatively open a new session:
source ~/.bash_profile
Then connect to the database:
sqlplus / as sysdba
2.1 Enabling ARCHIVELOG and FORCE LOGGING
SQL> SELECT log_mode FROM v$database;
If the result is NOARCHIVELOG:
SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTER DATABASE ARCHIVELOG; ALTER DATABASE OPEN;
Strongly recommended:
ALTER DATABASE FORCE LOGGING;
3. Configuring Data Guard Parameters on the Primary
ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=BOTH;
Important note: The unique name of the Primary database remains vahiddb.
4. Creating Standby Redo Logs
The number of Standby Redo Log groups must be one more than the number of Online Redo Log groups, and their size must be the same.
First, run the following query to check the current redo log configuration:
SELECT * FROM v$log;
Based on the output below, since we have 3 online redo log groups, we create 4 standby redo log groups:
ALTER DATABASE ADD STANDBY LOGFILE GROUP 10 SIZE 200M; ALTER DATABASE ADD STANDBY LOGFILE GROUP 11 SIZE 200M; ALTER DATABASE ADD STANDBY LOGFILE GROUP 12 SIZE 200M; ALTER DATABASE ADD STANDBY LOGFILE GROUP 13 SIZE 200M;
5. Enabling Flashback Database (Required for REINSTATE)
This step is mandatory before any failover operation. Enable Flashback only if you plan to reinstate the old standby database after failover.
In previous steps, db_recovery_file_dest and db_recovery_file_dest_size were already configured. If they are not
SHUTDOWN IMMEDIATE; STARTUP MOUNT; ALTER DATABASE FLASHBACK ON; ALTER DATABASE OPEN;
Verify Flashback status:
SELECT flashback_on FROM v$database;
Expected output:
YES
How Much Space Is Required for Flashback?
Based on practical experience:
Flashback size should be 2× to 3× daily redo generation
Production environments typically require 30 GB to 200 GB, depending on workload
For lab and test environments, 50 GB is usually sufficient
If Flashback is not enabled, the REINSTATE DATABASE command cannot be used, and the Standby must be rebuilt from scratch.
6. Preparing the Standby Server (dc2)
6.1 Creating a PFILE from the Primary SPFILE (on dc1)
sqlplus / as sysdba SQL> CREATE pfile='/home/oracle/pfile_for_standby.ora' FROM spfile;
This file contains all Primary database parameters and will be modified for the Standby.