A. Create guaranteed restore point in testqa database.
Database name : TESTQA,
Instances: TESTQA1,TESTQA2
SQL>create restore point RESTORE_TESTQA guarantee flashback database;
B. Restore database using GRP.
- srvctl stop database -d testqa -o immediate
- srvctl start database -d testqa -o mount
- SQL>flashback database to restore point RESTORE_TESTQA; --using sqlplus
- If error about missing redo logs, restore archivelogs using RMAN
- srvctl stop database -d testqa
- srvctl start instance -d testqa -i testqa1 -o mount
- SQL> alter database open resetlogs; --using sqlplus
- srvctl start instance -d testqa -i testqa2
- srvctl stop database -d testqa -o immediate
- srvctl start database -d testqa
- SQL> drop restore point RESTORE_TESTQA; --using sqlplus