Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Dave.

Asked: October 29, 2017 - 11:26 am UTC

Last updated: October 31, 2017 - 1:46 am UTC

Version: 12

Viewed 1000+ times

You Asked

Hi team. We have an Oracle instance, which I think is using ASM on SAN LUNs. The SAN is multi-path, multi-fabric with the LUNs are provisioned from a high quality H/A storage array. At the moment the DBAs use RMAN to push backups via MML directly up to a third party backup application. The backup platform we have is not H/A, and is essentially a tier 4 storage application, and so we don't want our Oracle instance to be utterly reliant upon the availability of the backup platform. We want to provide the DBAs with a lot more SAN disk space from different storage pools, three or four times what they have already, so that they can backup to SAN storage and effectively keep multiple warm copies - and then we want the DBAs to also push these local-ish backups directly up to the backup application.
Is it possible for Oracle RMAN to do this, i.e: Oracle -> RMAN -> disk (three day retention) -> RMAN -> tape (several weeks/months retention), and for Oracle to still know about all of the backups, i.e. the three local copies and also all of the several more copies effectively copied up on the MML platform.
We're being told by the DBAs that they don't want to do this because at the moment they can see all of their backups in the backup platform, and they say that if they RMAN to disk for a three/four day retention then they loose visibility of the older backups - i.e. they seem to think that the second stage of the backup process will have to be a file-system type backup which takes a backup of the RMAN files on disk. Of course we don't want our DBAs to loose visibility of their older backups from within Oracle itself. So, we're wondering if we can use RMAN in two stages?
Thanks in advance. Dave.

and Connor said...

They're wrong. There various ways you could implement this:

1) backup of backups. RMAN supports a "backup of backups". From

https://docs.oracle.com/database/122/RCMRF/BACKUP.htm#RCMRF107

Example 2-21 Backing Up Disk-Based Backup Sets to Tape

Assume your goal is to keep recent backup sets on disk and older backup sets on tape. Also, you want to avoid keeping copies of the same backup set on disk and tape simultaneously. This example backs up backup sets created more than two weeks ago to tape and then deletes the backup pieces from disk.

BACKUP
DEVICE TYPE sbt
BACKUPSET
COMPLETED BEFORE 'SYSDATE-14'
DELETE INPUT;


2) Do an rman-only-to-disk strategy, and use OS commands to copy them to tape, but then use the CATALOG command to let RMAN know about the existence of the files on the tape library.

But (1) sounds like a sensible way forward to me.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

thank you

Dave R, November 07, 2017 - 9:40 am UTC

Thank you so much for taking the time to answer.
We're wanting to take a fast daily full backup via RMAN to SAN disk, bring the database on-line and then immediately push that RMAN backup via RMAN again up to NetBackup. We want to keep a rotating set of three recent backups on SAN disk, plus all interleaving transaction logs such that there is sufficient backups and logs to restore and play forward to any point since the oldest retained full backup on disk, i.e. two days minimum to just under three days maximum - all without having to rely on NetBackup platform. But then also to retain all recent full backups in NetBackup for two weeks (i.e. 14 days) - and then to retain one additional from each week for a further 6 weeks (i.e. a total of 8 weekly full). I'm good with the NetBackup config, it was just the actual feasibility of dual stage RMAN that I was confused with. Thank you very much for clearing that up for me. Appreciate it. ttfn.

More to Explore

Backup/Recovery

Check out the complete guide to all of the Backup & Recovery techniques in the Oracle Database.