- First Database in Archivelog Mode.
- Take Rman Backup.
Rman > Backup Database;
- Take a current scn no first time.
Sql > Select timestamp_to_scn(current_timestamp) from dual;
- Create parag to parag9 tables and switch log file after 3 tables.
- Take a current scn no Second time
Sql > Select timestamp_to_scn(current_timestamp) from dual;
- Drop table parag5.
- Create parag10 to parag13 tables and switch log file after 3 tables.
- After some time I want to these drop parag5 table back this is the important table;
- These table backup and archivelog is not available that time incomplete recovery is doing.
- Go to Rman window Rman >
- Run these command
Rman> run { Shutdown Immediate Startup Mount Set Until Scn < Scn_No >; Restore Database; Recover Database; Alter Database Open Resetlogs; }
- Check table parag5 is back but after the second scn no table or data is lost permanently. These data is no recover or back.
Monday, 25 December 2017
Perform Incomplete Recovery Until Scn No.Using Rman in 10g and 11g
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment