In the following post, we’ll see how to perform database level recovery but get an error during restore command as one of the tablespace was READ-ONLY.
In such a case when we want to recover the whole database, restore command gives error that the datafiles associated with read-only tablespace were not restored. By default, the restore command skips datafiles associated with read-only tablespaces. hence below are the recovery steps for this case:-
- RMAN> connect target /
- RMAN> startup mount;
- RMAN> restore database check readonly;
- RMAN> recover database;
- RMAN> alter database open;
I hope this post would be helpful in scenarios when you know the recovery process but as there is lot of stress on DBAs during recovery scenarios even googling at that time for the syntax is an overhead, hence the idea is to make a repository that cover all possibile recovery scenarios step by step with syntax of commands at a single destination. I would try to cover all the scenarios in my subsequent posts. Please comment if any of the curious readers are interested to know the internals of the recovery process like which process does that, what information is in redo that is applied to the datafiles to recover them to point in time and etc.
PLEASE COMMENT IF YOU FACE ANY ERRORS WHEN PERFORMING THIS RECOVERY SO THAT WE CAN WORK ON THOSE AND ENHANCE THIS REPOSITORY FOR OTHER READERS.