Recovering Read-Only Tablespaces


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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.