How to catalog backup located on TAPE in RMAN?
August 31, 2012 2 Comments
If you are using Symantec Netbackup as a backup server, the following command will be useful for you:
1. To list available files located on tape taken by some client, run the following:
# /usr/openv/netbackup/bin/bplist -C r2n1 -t 4 -l -R /
where,
-C client name
-t is a policy type , where 4 means Oracle
-l shows more details info
-R recursively
/ root directory
–output
-rw-rw---- oracle oinstall 18939648K Aug 11 04:48 /al_dMEDIA_s3941_p1_t791009326_T20120811
2. In my case this backuppiece is taken by r2n1 client and now I am cataloging it on orcl client. That’s why I need to pass additional parameters to channel. If these clients are the same , parameters are not necessary. (If you have some problem, like orcl can’t see r2n1’s backups see my post about alternate client)
RMAN> CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' PARMS 'ENV=(NB_ORA_CLIENT=r2n1,NB_ORA_SERV=JUS-BACKUP01)'; RMAN> catalog device type 'SBT_TAPE' backuppiece 'al_dMEDIA_s3941_p1_t791009326_T20120811';
3. If you want to clear your configuration do the following,or skip this step.
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' CLEAR;
That’s all, good luck!