Sie sind auf Seite 1von 4

DR Testing Timeline 07 October 2011 (Friday) 9.30PM stop replication create flashback point 10 October 2011 (Saturday) 1.

00PM restore flashback start replication Checklist Ensure previous flashback are drop Primary and DR in sync before stop replication Contact Number (Involved person) Liew - 012 371 8201 Ryan - 012 212 1079 Cyrus - 019 215 7041 Raj - 012 212 6503 REMARK CIMBMX3A DR Bring up as Read-Only (Thursday) ALTER DATABASE OPEN READ ONLY;

Procedure Activate Standby Database for Testing Standby DB SQL> select * from v$restore_point Primary DB comment cronjob /u01/scripts/run_mv_arch.ksh /u01/scripts/run_gzip_arch.ksh /u01/scripts/run_purge_arch.ksh /u01/scripts/check_archived_log_applied/run_check_archived_log_applied.ksh SQL> alter system switch logfile (x3 times) SQL> select max(sequence#) from v$log_history** Standby DB comment cronjob /u01/scripts/run_mv_arch.ksh /u01/scripts/run_gzip_arch.ksh /u01/scripts/run_purge_arch.ksh SQL> select max(sequence#) from v$log_history** SQL> alter database recover managed standby database (wait for 5 minutes) SQL> alter database recover managed standby database cancel Primary DB SQL> alter system switch logfile (x3 times) SQL> show parameter log_archive_dest_state_2 SQL> alter system set log_archive_dest_state_2='DEFER' SQL> show parameter log_archive_dest_state_2 Standby DB SQL> shutdown immediate SQL> startup mount SQL> create restore point before_app_test guarantee flashback database SQL> alter database activate standby database SQL> shutdown immediate SQL> startup mount SQL> alter system set log_archive_dest_state_2='DEFER' SQL> alter database open **upon shutdown any DR, please issue following command on primary and standby database to ensure the archive SCN number is in sync. SQL> select max(sequence#) from v$log_history **during DR testing, please check restore point size SQL> select * from v$flash_recovery_area_usage

FlashBack standby Database Standby DB SQL> shutdown immediate SQL> startup mount SQL> !date (begin flashback time) SQL> flashback database to restore point before_app_test *** SQL> !date (end flashback time) SQL> alter database convert to physical standby (must check successfully) SQL> shutdown immediate SQL> startup mount SQL> drop restore point before_app_test (after 3-4days) SQL> alter database recover managed standby database disconnect from session; *** compare SCN, still got how many SCN need to flashback SQL> select * from v$restore_point SQL> select CHECKPOINT_CHANGE# from v$datafile_header Primary DB SQL> alter system set log_archive_dest_state_2='enable' SQL> show parameter log_archive_dest_state_2 SQL> alter system switch logfile SQL> select max(sequence#) from v$log_history **Please ensure the archive transfer from primary to standby database and also sequence# is same for both database

Primary DB sftp transfer all files to Standby DB Standby DB To apply all archive files manually SQL> recover database standby database;

SQL> alter database recover managed standby database cancel

xxxx

Das könnte Ihnen auch gefallen