CREATE GUARANTEED RESTORE POINT:
- Stop redo transport and redo apply
a)If broker is not configured:
On primary database:
SQL> alter system set log_archive_dest_state_2=’defer’;
On standby database:
SQL> alter database recover managed standby database cancel;
b)If broker is in place:
DGMGRL> edit database db set state = ‘TRANSPORT-OFF’;
DGMGRL> edit database db01 set state = ‘APPLY-OFF’; - Set Restore Point in standby database
On standby database:
SQL> CREATE RESTORE POINT restore_dg GUARANTEE FLASHBACK DATABASE; - Set Restore Point in primary database
On primary database:
SQL> CREATE RESTORE POINT restore_dg GUARANTEE FLASHBACK DATABASE; - Enable redo transport and redo apply
a)If broker is not configured:
On primary database:
SQL> alter system set log_archive_dest_state_2=’enable’;
On standby database:
SQL> alter database recover managed standby database disconnect from session;
b)If broker is in place:
DGMGRL> edit database db set state = ‘TRANSPORT-ON’;
DGMGRL> edit database db01 set state = ‘APPLY-ON’;
FLASHBACK DATABASE TO GUARANTEED RESTORE POINT
- Stop redo transport and redo apply
a)If broker is not configured:
On primary database:
SQL> alter system set log_archive_dest_state_2=’defer’;
On standby database:
SQL> alter database recover managed standby database cancel;
b)If broker is in place:
DGMGRL> edit database db set state = ‘TRANSPORT-OFF’;
DGMGRL> edit database db01 set state = ‘APPLY-OFF’; - Shutdown Primary Database and start in mount state
- Flashback primary database to restore point
On primary database:
SQL> flashback database to RESTORE POINT restore_dg;
SQL> alter database open resetlogs; - Shutdown Standby database and start in mount state
- Flashback standby database
On standby database:
SQL> flashback database to RESTORE POINT restore_dg; - Enable redo transport and redo apply
a)If broker is not configured:
On primary database:
SQL> alter system set log_archive_dest_state_2=’enable’;
On standby database:
SQL> alter database recover managed standby database disconnect from session;
b)If broker is in place:
DGMGRL> edit database db set state = ‘TRANSPORT-ON’;
DGMGRL> edit database db01 set state = ‘APPLY-ON’;
DROP GUARANTEED RESTORE POINT
- Stop redo transport and redo apply
a)If broker is not configured:
On primary database:
SQL> alter system set log_archive_dest_state_2=’defer’;
On standby database:
SQL> alter database recover managed standby database cancel;
b)If broker is in place:
DGMGRL> edit database db set state = ‘TRANSPORT-OFF’;
DGMGRL> edit database db01 set state = ‘APPLY-OFF’; - Drop Restore Point in primary database
On primary database:
SQL> drop RESTORE POINT restore_dg; - Drop Restore Point in standby database
Ensure the standby database is in mount state and drop
GUARANTEED RESTORE POINT :
SQL> drop restore point restore_dg;
If Active Data Guard is used, open read only the standby database after dropping the Guaranteed restore point. - Enable redo transport and redo apply
a)If broker is not configured:
On primary database:
SQL> alter system set log_archive_dest_state_2=’enable’;
On standby database:
SQL> alter database recover managed standby database disconnect from session;
b)If broker is in place:
DGMGRL> edit database db set state = ‘TRANSPORT-ON’;
DGMGRL> edit database db01 set state = ‘APPLY-ON’;
Pingback: Guaranteed Point - 5.2 Using Normal And Guaranteed Restore Points