Solved

Syncing RMAN catalog and Veritas Netbackup

Posted on 2008-10-21
6
2,024 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
migration MS SQL database to Oracle 30 81
Error querying database link from Oracle 10g to Postgresql 7 137
oracle collections 2 41
Oracle database T-1 Setup 7 44
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
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 how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
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…

739 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