Netbackup Rman Database restores
Windows 2008r2 master and media servers
Netbackup 7.5.0.4
Hello,
We've run into an emergency restore issue with older Oracle database data backed up using Rman. A Netbackup policy exists, and is simply set up with an open schedule to let the DBA's send the Rman job through to the needed tape library at whatever time they need. The issue is that I've recalled the tapes and loaded them, but the DBA's are seeing that the Rman catalog has no record of the media ID, so they cannot find it to start any restore processes. But, I can see the media ID's in the Netbackup catalog. They may have purged the Rman catalog or something...not sure. Anyway, I believe that it is expected that netbackup cannot view these files in the BAR GUI, as it could for file shares, server backups, etc.
When I run a tape report for 'images on tape', it does show me the client server name that backed up the data, policy names, file sizes, etc.
When I run a tape report for 'tape contents', it does show me the Backup ID, expiration data, creation data, etc.
What they are ultimately needing is to be able to view the actual Oracle database files written to the tape. Is Netbackup truly only a middle-man or a tool Rman uses when sending its data to the tape drives (as I've read and been told), or is Netbackup capable of viewing these files via some command or something, using the Netbackup backup ID to translate?
Thank you.
Todd
To view the backedup files frm NBU....u can try below command:
<install files/.....netbackup/bin
bpflist -C <clientname> -t 4 -S <masterservername> -s mm/dd/yyyy hh:mm:ss -e mm/dd/yyyy hh:mm:ss -l -b -R /
(I have nt tried till now for oracle...I tried for windows/ndmp and it worked)
Please try and lemme know..
- Check backup piece handle by bplist
root# bplist -t 4 -l -s <start_time> -e <end_time> -R /
- Restore SPFILE
dba$ rman target / nocatalog
RMAN> SET DBID=<DBID>
RMAN> STARTUP FORCE NOMOUNT
RMAN> RUN {
2> ALLOCATE CHANNEL t1 TYPE sbt_tape;
3> RESTORE SPFILE FROM '<handle_of_backup_piece_that_contains_SPFILE_backup>';
4> RELEASE CHANNEL t1;
5> }
RMAN> STARTUP FORCE
SPFILE backup may be included in last piece of DB file backup by default.
IN last step, you may see an error related to control file, but it is expected. Ignore it.
- Restore control file
RMAN> RUN {
2> ALLOCATE CHANNEL t1 TYPE sbt_tape;
3> RESTORE CONTROL FILE FROM '<handle_of_controlfile_backup>';
4> RELEASE CHANNEL t1;
5> }
RMAN> ALTER DATABASE MOUNT;
- Restore and recover DB
RMAN> RUN {
2> ALLOCATE CHANNEL t1 TYPE sbt_tape;
3> RESTORE DATABASE;
4> RECOVER DATABASE;
5> RELEASE CHANNEL t1;
6> }
RMAN> ALTER DATABASE OPEN RESETLOGS;
You may see an error related to archive logs, but it is expeced. Ignore it, or ask your Oracle DBA. Once controlfile is restored, DBA can check RMAN recovery catalog and they may determine sufficient option to RESTORE and RECOVER command from catalog information.
- Check backup piece handle by bplist