The document outlines 8 steps to create a standby database using a new diskgroup:
1) Create a backup of the primary database to the new diskgroup over 120 minutes.
2) Validate the backup logs for errors and verify the number of backed up files matches the original datafiles.
3) Cancel media recovery and shutdown the primary database in 10 minutes.
4) Take a controlfile backup to a safe location in 10 minutes.
5) Mount the database on a secondary instance in 5 minutes.
6) Connect to the recovery catalog, switch the database copy, and start media recovery to sync the standby in 30 minutes.
7) Move other database files from the corrupted original diskgroup
The document outlines 8 steps to create a standby database using a new diskgroup:
1) Create a backup of the primary database to the new diskgroup over 120 minutes.
2) Validate the backup logs for errors and verify the number of backed up files matches the original datafiles.
3) Cancel media recovery and shutdown the primary database in 10 minutes.
4) Take a controlfile backup to a safe location in 10 minutes.
5) Mount the database on a secondary instance in 5 minutes.
6) Connect to the recovery catalog, switch the database copy, and start media recovery to sync the standby in 30 minutes.
7) Move other database files from the corrupted original diskgroup
The document outlines 8 steps to create a standby database using a new diskgroup:
1) Create a backup of the primary database to the new diskgroup over 120 minutes.
2) Validate the backup logs for errors and verify the number of backed up files matches the original datafiles.
3) Cancel media recovery and shutdown the primary database in 10 minutes.
4) Take a controlfile backup to a safe location in 10 minutes.
5) Mount the database on a secondary instance in 5 minutes.
6) Connect to the recovery catalog, switch the database copy, and start media recovery to sync the standby in 30 minutes.
7) Move other database files from the corrupted original diskgroup
DETAILS STEPS TO CREATE STANDBY USING NEW DISKGROUP
PRIMARY DATABASE SERVER :cto2s072n1/n2
STANDBY DATABASE SERVER : cto2s073n1/n2
STEP1: CREATE BACKUP to NEW DISKGROUP +BACKUP_DG ( 120 mins)
set environment for ctopcdat database
ctopcdat_new.rcv run { allocate channel t1 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t2 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t3 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t4 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t5 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t6 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t7 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t8 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t9 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t10 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t11 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; allocate channel t12 type disk format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t'; backup incremental level 1 for recover of copy with tag ctopcdat_73 format '+BACKUP_DG/ctopcdat/lvl_1/%d_LVL1_%T_s%s_t%t' database skip inaccessible; recover copy of database with tag 'ctopcdat_73'; allocate channel ch1 type disk; copy current controlfile to '+BACKUP_DG/ctopcdat/ctopcdat2_stby_Aug2013.ctl'; release channel ch1; release channel t1; release channel t2; release channel t3; release channel t4; release channel t5; release channel t6; release channel t7; release channel t8; release channel t9; release channel t10; release channel t11; release channel t12; }
a.Validate the logs for error. b.count the files backed up to diskgroup and with original datafile count.
STEP 3: .Cancel the Media recovery and shutdown the database(10 mins)
STEP 4:.Take the controlfile backup to safe location.(10 mins)
STEP5.Mount the database on one instance(5 mins)
STEP 6:.Connect to recovery catalog and switch the database to copy.(30 mins) Command: switch database to copy; STEP 7: Start the media recovery and verify the sync.(30 mins)
STEP 8: Move other database files out of +DATA(corrupted diskgroup).(30 mins)
Verify the datafile
Select name from v$datafile; - verify all the datafiles pointed to files in new diskgroup.
Verify the controlfile Currently we have one copy of controlfile location in _+DATA we need to move that to new diskgroup.
Make sure we do not have duplicate copy of controlfile in DATA diskgroup.
select *from v$controlfile;
Verify the redologfiles Currently we have one member of each redo log group pointing to +DATA. Need to drop and recreate in new diskgroup. select *from v$logfile. need to be clean
NOTE : Need to repeat the above steps to move back to +DATA digkroup after recreating +DATA
DOCUMENTATION Complete Instructions On How To Reset The Retention Level On Existing Backup Images Using The Bpexpdate Command With The Recalculate Flag Including How To Find The Backup ID.