DEAR FRIENDS,
I HAVE TAKEN A RMAN BACKUP OF MY DATABASE WHILE IT WAS OPEN BY WRITING THE CODE
run
{
allocate channel c1 type disk;
backup database format 'db_%u_%d_%s';
release channel c1;
}
BUT WHILE I AM TRYING TO RESTORE AND RECOVER THE DATABASE WHILE IT IS OPEN USING RMAN IT IS GETTING FAILED.THE DATABASE IS IN ARCHIVE LOG MODE.
PLEASE HELP.WHAT SHOULD I DO?
The generic steps for media recovery using RMAN are as follows:
Place the database in the appropriate state: mounted or open. For example, mount the database when performing whole database recovery, or open the database when performing online tablespace recovery.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
In gneral, it can be open as long as you don't need to recover the system tablespace. You need to offline the affected tablespace before you can restore / recover it though. That error indicates that the tablespace being restored is still online.
However, for a general restore / recover, it can't be open.
Bookmarks