You are on page 1of 2

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;
}

Nohup rman target / cmdfile=ctopcdat_new.rcv logfile=ctopcdat_new.log &

STEP 2: Validate the backup.(15 mins)

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

You might also like