DR Rac Build Referred Link:: Diskgroup
DR Rac Build Referred Link:: Diskgroup
DR Rac Build Referred Link:: Diskgroup
Referred link:
https://oracledbwr.com/step-by-step-configuration-of-oracle-11gr2-two-node-rac-dataguard-setup/
SGA assigned
sga_target=57982058496 --- 54 Gb
pga_aggregate_target=6442450944 --- 6 Gb
1) DB build steps.
Restore control file. – you must have taken backup of control file.
Mount the DB
Restore the DB
run {
set newname for database to '+CRMOLTP_ASMDG';
restore database;
switch datafile all;
}
Steps to perform once the restoration is completed.
3) Once restore is completed run the below sql to rename the redo logs – Optional but would be good if done. The
redo log should be move to +ACFS_ARCHIVE, if already there should not be a problem
Check using
Select group#,member,status from v$logfile;
4) Shutdown the DB
Shut immediate;
6) Now we have to make the DB know where the archive present are.
NEW ARCHIVED MOVED LOCATION.- All the archive after the backup was started are moved to the below
location
********************************************
/RmanDR/28augRMAN_2019/archive
Now it will list down all the archive present in the mount point type ‘YES’.
7) Now do
10) You may face the challenge for any data file during bringing the db in read only mode, in this case we have to
just take a backup of that problematic data file and again do the restoration for that data file in DR.
Note ### We need to restore the standby control file (take a fresh backup from dr) now after the restoration of
Data File.
11) Step 8-9 is has to be repeated when we are trying to bring the DB in read only mode.
cd /oradata/rdbms/11.2.0.3/dbs
mv initMPCD.ora initMPCD1.ora
I have kept an original file at the above location please rename it.
initMPCD1.ora_COPY_6SEP
pfile_value.txt
15) Copy the new pfile to Node2 & Node3 of Standby and startup the instance in all the nodes.
export ORACLE_HOME=/oradata/rdbms/11.2.0.3
export CRS_HOME=/oradata/crs/11.2.0.3
export ORACLE_SID=MPCD1
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_HOME=/oradata/rdbms/11.2.0.3
export CRS_HOME=/oradata/crs/11.2.0.3
export ORACLE_SID=MPCD2
export PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_HOME=/oradata/rdbms/11.2.0.3
export CRS_HOME=/oradata/crs/11.2.0.3
export ORACLE_SID=MPCD3
export PATH=$ORACLE_HOME/bin:$PATH
16) Register the database instances with CRS framework using this command:
17) Now the instances are registered with CRS, shutdown both the instance in standby and start using srvctl
command
18) Modify the /etc/oratab to set the env for TEST1 now
19) . oraenv
MPCD1
sqlplus / as sysdba
INST_NUMBER INST_NAME
----------- -----------------
1 MPCD1
2 MPCD2
3 MPCD3
22) It should not wait for archive log.if it waits Provide the missing archive log from OLD DR or Production.
ORA-01033: ORACLE initialization or shutdown in progress scp the password file form primary to dr
i) first alter system set log_archive_dest_state_3=DEFFER sid='*';
ii) scp the password file to all the nodes
iii) alter system set log_archive_dest_state_3=ENABLE sid='*';
iv) the error is gone.
23) Create spfile in ASM and point it using the pfile’s in $ORACLE_HOME/dbs location of ALL the nodes in Standby
(https://www.thegeekdiary.com/how-to-move-asm-spfile-to-a-shared-device-in-rac/)
File created.
24) In Node1 & Node2 & Node3 of Standby:- add the entry or make a new pfile.
$ cat initMPCD1.ora
spfile='+CRMOLTP_ASMDG/MPCD/SPFILEMPCD.ora ‘ -- node1
$ cat initMPCD2.ora
spfile='+CRMOLTP_ASMDG/MPCD/SPFILEMPCD.ora ‘ -- node2
$ cat initMPCD3.ora
spfile='+CRMOLTP_ASMDG/MPCD/SPFILEMPCD.ora ‘ -- node 3
We can verify the sync between Primary (Node1 & Node2 & Node3) and Standby (Node1) by switch logfile in primary and tail alert
log from OS or query the alert log from sqlplus. Here, we go with the query.
WE NEED TO CREATE STANDBY REDO LOG FILE AT PRIMARY IF WE NEED FOR SWITCH OVER AND FAILOVER.
(NEED TO CHECK)