• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2169
  • Last Modified:

Syncing RMAN catalog and Veritas Netbackup

I'm looking for a way to sync the RMAN catalog with Veritas Netbackup records.

In our environment, entries in the RMAN catalog go back for several years even though the backups have long expired in Netbackup.

If I do a 'delete obsolete' in RMAN, Netbackup will be out of whack.

What is the best way to keep them in sync?

Thank you.
0
doberboy
Asked:
doberboy
  • 3
1 Solution
 
peter991Commented:
Hi!
I guess you have to work with your retention-policies.
I'm not sure there is a NB-command that crosscheck RMAN catalogue and Netbackup and delete the records on tape.

"A couple of things to note. I only have 1 NetBackup policy of Oracle type assigned to this server by my Veritas NetBackup admin. Also, that policy is set to infinite retention so that RMAN controls when it wants to delete expired / obsolete backups by allocating a channel "for maintenance device type SBT_TAPE. A good practice is working with your NetBackup admin in order to configure your policy. You could also define multiple policies so he can more easily identify which backups to send offsite. The only problem with this approach, and its very minor at that, is that you will have to explicitly define your Oracle type NetBackup Policy when you do your backups."

http://www.oraclerant.com/?p=29

I have only worked with Netbackup 4.5 and lower.
Normal rutin was to scratch old tapes that contained old obsolete data and make them writable again.
What RMAN needs and Netbackup saves on tape are two different things.
As long as you are not running out of tapes, does it really matter if you got older data than RMAN needs saved on tape?

I hope I could be at help.

Regards
0
 
doberboyAuthor Commented:
Thank you for your suggestion.

I want to clean up the catalog because we have data going back to 2005. For example, if I do a 'CROSSCHECK ARCHIVELOG ALL' on of our database running PeopleSoft, it returns 180,000 archivelog objects. If I try to do a 'LIST BACKUP OF ARCHIVELOG ALL', I'll never get a result. I've let it run all night and have not received any results.

0
 
peter991Commented:
Hi!
You can be more narrow in your search.

list backup of database;     # lists backups of all files in database
list copy of datafile '/oracle/dbs/tbs_1.f'; # lists copy of specified datafile
list backup of tablespace SYSTEM; # lists all backups of SYSTEM tablespace
list copy of archivelog all;  # lists all archived redo logs and copies of logs
list backup of controlfile; # lists all control file backups

You can also restrict your search by specifying a combination of tag,
device type, filename pattern, or time options. For example, enter:
list backup tag 'weekly_full_db_backup';    # by tag
list copy of datafile '/oracle/dbs/tbs_1.f' type 'sbt_tape';   # by type
list backup like '/oracle/backup/tbs_4%';    # by filename pattern
list backup of archivelog until time 'SYSDATE-30';   # by time
list copy of datafile 2 completed between '10-DEC-1999' and '17-DEC-1999'; # by time  
list backup COMPLETED BETWEEN '11-MAY-07' and '12-MAY-07';

If your backup policy is to save backups for let's say one year why not remove the entries older than that from RMAN catalogue?

Regards
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now