So Far
Up to this point, we have completed the following steps:
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:
Primary Database : vahiddb
Primary Host : dc1 (192.168.56.21)
Standby Database : vahiddbdc2
Standby Host : dc2 (192.168.56.22)
DB_NAME : vahiddb
ORACLE_HOME : /u01/app/oracle/product/19c/dbhome
-
On dc1, the database
vahiddbhas already been created using DBCA -
On dc2, no database exists yet, and we will create the Standby database
Primary-Side Prerequisites (dc1)
As the oracle user, add the following parameters to the file:
/home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/19c/dbhome
export LD_LIBRARY_PATH=/u01/app/oracle/product/19c/dbhome/lib
export ORACLE_SID=vahiddb
export PATH=$PATH:$ORACLE_HOME/bin
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: