03-21-2011 03:06 PM
I am backing up a couple of Oracle databases to a disk storage unit and then I have the backup job duplicate to tape using disk staging.
So my question is: In the event of a total disaster where I loose everything except my offsite tapes and I have to rebuild my NBU environment from the catalog backup, how do you go about recovering from the duplicated tapes? Should I be able to recover the duplicated data from the tape back to disk?
I have tried using Backup, Archive and Recover to find a way to recover the duplicated data from the tape copies to disk with no such luck.
Thanks!
Solved! Go to Solution.
03-21-2011 03:50 PM
So you make a copy to disk
then dup that to tape
then you try to see if you can restore from that tape from the same master that made the disk and tape backup, and you cannot find it .... do I have this correct?
Your disk copy is your primary - then you dup it to tape which is your second copy.
When you try to do a restore (and in this case your master server is working and knows about both copies) it will always try to restore from the primary copy - in this case the disk copy.
To restore from this same master from the tape copy you would need to promote the tape to primary copy.
If the disk copy expires, the tape copy automatically becomes the primary.
If you lose your disk drive and you rebuild your database - if you don't have the disk backups any more - you may have to "clean" your database of those images because your database thinks they are still valid (that is more into catalog recovery stuff)
But it just comes down to - promote your tape to primary copy - or if you have to rebuild from scratch you can import the tapes, and it would be the only copy and would restore from the tape too.
03-21-2011 03:50 PM
So you make a copy to disk
then dup that to tape
then you try to see if you can restore from that tape from the same master that made the disk and tape backup, and you cannot find it .... do I have this correct?
Your disk copy is your primary - then you dup it to tape which is your second copy.
When you try to do a restore (and in this case your master server is working and knows about both copies) it will always try to restore from the primary copy - in this case the disk copy.
To restore from this same master from the tape copy you would need to promote the tape to primary copy.
If the disk copy expires, the tape copy automatically becomes the primary.
If you lose your disk drive and you rebuild your database - if you don't have the disk backups any more - you may have to "clean" your database of those images because your database thinks they are still valid (that is more into catalog recovery stuff)
But it just comes down to - promote your tape to primary copy - or if you have to rebuild from scratch you can import the tapes, and it would be the only copy and would restore from the tape too.
03-24-2011 02:22 PM
I think you have answered my question.
In working out my disaster plan I am simply trying to put together the peices it would take to recover my Oracle data in the event that my entire infrastucture is destroyed and all that I have left are these duplicated tapes that are stored off site.
So this is how I am understanding it. After complete and utter destruction that I have somehow managed to escape, I am delt the task of having to recover this Oracle database from this one duplicated tape during the resulting chaos.
High level:
1. build up a new NBU server, naming it exactly as the utterly destroyed one
2. restore my NBU database from the Recovery File that I email to an offsite account each night and from my offsite tapes that contain the catalog backups.
3. build up a new linux box and install a base Oracle install with a blank database and install and configure the NBU client to this new server.
4.add this new Oracle server as a client in NBU
5. configure NBU and the Oracle piece to allow for a redirected restore to the new blank Oracle database.
6. Gather the duplicated tape and then within NBU make the duplicated tape the primary copy as there is no longer a disk copy.
7. Now have my database admin perform the restore and the duplicated tape copy will be used.
OR
1. build a new NBU machine, DONT recover the NBU catalog/database
2. Simply import the duplicated tape
3. then restore to the new oracle box
03-24-2011 02:28 PM
How to restore from a different copy of the backup
http://www.symantec.com/business/support/index?page=content&id=TECH64592
When trying to restore from a backup that has multiple copies, NetBackup will request the Primary Copy. Unfortunately sometimes that media will not be available (possibly the tape is off site, or damaged). It can therefore be necessary to restore from a tape that is not the Primary Copy.
5. Once the restore is complete then move or rename the ALT_RESTORE_COPY_NUMBER file so the primary copy will be used for all future restores.
03-24-2011 02:34 PM
Do you have an RMAN Recovery catalog? If so, You will need to provide protection for this catalog as well (e.g. do cold NBU backup) and restore the recovery catalog before doing Oracle database restores.
Please mark JH's post as Solution...
03-24-2011 03:25 PM
AHh, I am not sure. How can I check to verify if I am using the RMAN recovery catalog? And once I verify whether or not RMAN recovery catalog is used, how do I back this up?
thanks! I can start a new thread for this if necessary
03-24-2011 09:43 PM
Check rman script. Recovery catalog is used if a line like is present:
connect rcvcat ..........
Please start a new thread if this is the case - it should be an interesting discussion. I will have to 'dig' as well - I remember reading something long time ago....