Issues of building RAC ADG
Issues of building RAC ADG
The background of this case is that our customer want to build a RAC to RAC ADG, we used duplicate database from backup set to restore the ADG, but because the source database is very huge, about 16TB, all the backup sets were stored in NFS file system which shared by primary and standby. Customer's network bandwidth is 1000Mb, but the transportation speed is under 30MB/s, it took a very long time to restore the whole database.
1. Missing directory
The first problem we encountered is data file name non-normalization, because the ASM diskgroups are the same with both primary and standby database, we didn't specify the set new name command, almost all the datafiles in this backup piece were failed to be restored.But it didn't impact the whole restore progress, duplicate process would restore those missing datafiles from previous backupset, or recreate them with empty contents.
1
|
--error messages because of datafile name's non-normalization
|
After restore finished, duplicate process would try to recover the standby, but the archived logs which need to be applied by recover process are years ago, recover process was failed again. All we need to do is restore those impacted files and recover them.
1.1 resolution
One of the resolution is restore the missing datafiles from backup set, or take data file copy from primary:
- restore from backup set
Every time you issue a restore command, rman would read relevant backup piece once, it's recommended to use one restore command to restore multiple datafiles, especial your backup piece is very large:
1
|
rman target / <<EOF
|
- restore from datafile copy
Take the datafile copy from primary:
1
|
RMAN> backup as copy datafile 319 format '/arch2/data319.dbf';
|
scp to the standby and catalog with it:
1
|
RMAN> catalog datafilecopy '/gglog/data319.dbf';
|
2. Backup from standby side
If you want to backup in standby side, you must resync catalog from primary, otherwise, it will get the below errors:
1
|
resyncing from database with DB_UNIQUE_NAME PRODDB
|
- resync catalog from primary
1
|
RMAN> connect catalog rman/<rman password>@RMAN_REMOTE_CAT
|
- resync catalog from standby
1
|
RMAN> resync catalog;
|
After that, run the usual backup script in the standby.
EOF

浙公网安备 33010602011771号