Solved

Syncing RMAN catalog and Veritas Netbackup

Posted on 2008-10-21
6
1,952 Views
Last Modified: 2012-05-05
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
Comment
Question by:doberboy
  • 3
6 Comments
 
LVL 6

Expert Comment

by:peter991
ID: 22774993
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
 

Author Comment

by:doberboy
ID: 22779314
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
 
LVL 6

Accepted Solution

by:
peter991 earned 500 total points
ID: 22783505
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
 
LVL 6

Expert Comment

by:peter991
ID: 22783531
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows how to recover a database from a user managed backup
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now