Solved

Syncing RMAN catalog and Veritas Netbackup

Posted on 2008-10-21
6
1,961 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
one-way data "masking" MD5 sql 26 145
sql query 5 67
Concat multi row values of a field in oracle 6 51
PL SQL Search Across Columns 4 17
Article by: Swadhin
From the Oracle SQL Reference (http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/queries006.htm) we are told that a join is a query that combines rows from two or more tables, views, or materialized views. This article provides a glimps…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

947 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

23 Experts available now in Live!

Get 1:1 Help Now