RMAN Backup to Tape
Friends,
I have got single instance non-RAC database with datafiles stored in ASM Diskgroup. the RMAN hotbackups are stored in ASM diskgroup on daily basis.
Just wants to know how I can move old backups (previous night) to TAPE every night before kicking off today's backup.
We are using veritas netbackup for tape backups.
Any inputs are appreciated.
KS
The following command backs up to tape all backup sets that do not already exist on device type sbt:
RMAN> BACKUP DEVICE TYPE sbt BACKUPSET ALL;
Similar Messages
-
How to perform RMAN backup in tape.
Regards
ImanThe information you require is depending on the MML you are using or planning to use, so without further info from your side answers can not be provided.
Also alanm already posted a documentation link. Did you read that?
Sybrand Bakker
Senior Oracle DBA -
Steps to restore RMAN backups from tape to disk
Hi All,
using Netbackup Veritas Volume
DB:10.2.0.3.0
OS:AIX 64 bit
Could nayone please share the steps to - restore RMAN backups from tape to disk.
An early reply would be appreciated!!
Thanks for your time!
Regards,Hi,
I went through as per your action plan it is giving below error I found a solution on meta doc id 559190.1 but i am not able to understant how to start observiced as it is mentioned in the doc id.
allocated channel: t1
channel t1: sid=2386 devtype=SBT_TAPE
channel t1: Data Protection for Oracle: version 5.4.1.0
Starting restore at 09-MAY-10
channel t1: looking for autobackup on day: 20100509
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/09/2010 11:57:01
ORA-27191: sbtinfo2 returned error
Additional information: 2
RMAN>
Thanks, -
Rman Backup to tape in sun solaris 8.0
Hi all,
We have a tape drvie that is being cnfigured on /dev/rmt/0I want to know how to take rman backup using tape as we having less disk space on the sun box.
please suggest me......
below script is correct or not.....
RMAN> run {
2> allocate channel c1 type 'sbt_tape'
3> parms="ENV=(BACKUP_DIR=/dev/rmt/0m)";
4> backup tablespace system;
5> }Hemant.....
According to the link which you have provided explains that
there must be a file libobk.so, ext might differ, but in my sun box there is no such file and
$ ls libo*
libocci.so libocijdbcst9.a libolapapi9.so libordim9.so
libocci.so.9.0 libocr.so liboraawt.so libordimt9.a
libocci9.a libocrbackend.so liboraioser.so libordsdo9.a
libocijdbc9.so libodm9.so liboraolap9.a libowm2.so
libocijdbc9_g.so libodmd9.so libordim9.a
$another thing is that
what is NSR_GROUP,NSR_SERVER >
$ echo $NSR_SERVER
$ echo $NSR_GROUP
it is not dispalying anything in the oracle env -
I have to restore the RMAN full backup from tape to new host to a previous date say March 1st. My target database RMAN retention period is 28 days, today is 11th May.
Is it possible to restore the obsolete database from tape backup to new host as of May 1st. If not possible, I would like to restore the available backup say as 15th April from tape to new host.
Can you please provide me the steps to restore the tape old backup to new host.
Thanks,
MahiCan't read documentation? You also seem to be unable to mark questions as answered
Mahi
Newbie
Handle: Mahi
Status Level: Newbie
Registered: Nov 24, 2010
Total Posts: 24
Total Questions: 15 (13 unresolved)
Sybrand Bakker
Senior Oracle DBA -
Hi All,
This's my scenario.
I am using oracle 10gR2 on solaris 10. I configured Rman for my database. I ran the backup command on monday and again tuesday and again today also.
All backups are stored in tape not disk. now I have a problem, so I want to restore the Monday backup from tape.
How to tell these to Rman. If I simply mentioned the restore command, hope Rman will restore the latest backup. But I want to restore the Monday Backup.
Could you anyone help me on this..
Many Thanks
Senthilwhen ever you are recovering the database to certain time,certain scn then it is a incomplete recovery only.
after completing the recovery by specifying until time or until SCN oracle will not allow you to open the database.
It will ask you to open the database in resetlog mode.
The step which admin given is correct one but after that you have to open the db in resetlog mode
Edited by: PrafullaNath on May 19, 2010 4:28 PM -
Hi
We have R12.0.6 with 10.2.0.4 database.
The RMAN backup is daily we are taking to tapes.
Now how can i restore the backup from tapes? to create a duplicate database.
Thanks
ShaikWe have R12.0.6 with 10.2.0.4 database.
The RMAN backup is daily we are taking to tapes.
Now how can i restore the backup from tapes? to create a duplicate database.Creation Of Rman Duplicate Without Target And Recovery Catalog Connection. [ID 1113713.1]
Backup and Recovery
http://www.oracle.com/pls/db102/portal.portal_db?selected=3
Thanks,
Hussein -
Incremental RMAN Backup to tape.
Hi,
We have 2.2 TByte Oracle Dataware House. At weekends, we would like to take inceremental level 0 backup to tape and then incemental level 1 to disk daily.
So that we expect to reduce disk space for backup. We also handle the cover risk of direct path load by mains of incremental level backup.
But, I would like to know that, taking incremental level 0 to tape causes performance problems. Rman try to discover changes between the incemental level 0 on the tape and incemental level 1 on the disk.
Should we take both incremental level 0 and incremental level 1 to disk or tape?
I need your recomendations.
Thank you.Thank you Satish Kandi for your reply,
As far as understand accourding to document that you refer,
if we configure well adjustment for channel of disk and tape io buffers,
and multiplexing, then we can take backup incemental level 0 to tape.
We don't want to use encryption and compression in order not to consume CPU resources.
In fact, we should try and obsorve the performance.
Thank you. -
Restoring RMAN backup from tape beyond retention policy ??
Hello Friends,
I just stuck in some basic finding. Need your help to resolve the questions.
How we can use RMAN backup to restore oracle database when the RMAN backup pushed to tape already and being a OLD backup ( before retention policy date).
Just to elaborate a more.. Say my retention policy is 3 days. I want to restore from a old backup like 30 days old.
So surely the requesting backup is behind retention date and has been pushed to tape.
Please suggest.
Thanks in advance.
Regards
Sinha.dba.arnab wrote:
Hello Friends,
I just stuck in some basic finding. Need your help to resolve the questions.
How we can use RMAN backup to restore oracle database when the RMAN backup pushed to tape already and being a OLD backup ( before retention policy date).
Just to elaborate a more.. Say my retention policy is 3 days. I want to restore from a old backup like 30 days old.
So surely the requesting backup is behind retention date and has been pushed to tape.
Please suggest.
Thanks in advance.
Regards
Sinha.
Assuming the actual backup files still exist (the only thing actually deleted is the record of them in the catalog), you can make those files available and use the rman 'catalog' command to re-catalog them. -
Hi,
how do we move the backup of the database that has taken by rman to the tap.
Ex:
I have a database and backup has taken by rman by connecting in no catalog mode. like $rman target /
so backup are generated and stored on the disk only.
Now if i want to move these backup file to tap, how we can move these files.
Please let me know
Thank you!See Backups of Backups in the Backup and Recovery doc
http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmcncpt.htm
>
Backups of Backup Sets
The RMAN BACKUP BACKUPSET command backs up backup sets that were created on disk. The command is a useful way to spread backups among multiple media.
If RMAN discovers that one copy of a backup set is corrupted or missing, then it searches for other copies of the same backup set. This behavior is similar to the behavior of RMAN when backing up archived redo logs that exist in multiple archiving destinations.
Example 7-2 shows how you might run the BACKUP command weekly as part of the production backup schedule. In this way, you ensure that all your backups exist on both disk and tape.
Example 7-2 Backing Up Backup Sets to Tape
BACKUP DEVICE TYPE DISK AS BACKUPSET
DATABASE PLUS ARCHIVELOG;
BACKUP
DEVICE TYPE sbt
BACKUPSET ALL; # copies backup sets on disk to tape
>
Also this link may suggest other ways
http://franck-mosse.blogspot.com/2011/11/oracle11g-backuping-backups-with-rman.html -
How to move rman backups on tap from disk
Hi,
I have rman backup files on the disk, now how we can move these files to tap. is there any rman command or is there any script to move.
Thank you!Do you use FRA (Flash recovery area)?
If you use FRA then configure RMAN to take backup to tape. And backup fra to tape.
RUN
ALLOCATE CHANNEL ch0 TYPE ‘SBT_TAPE’;
BACKUP RECOVERY AREA;
RELEASE CHANNEL ch0;
If you don't use FRA then you can backup your backupsets which are on the disk to tape.
RMAN> BACKUP DEVICE TYPE SBT BACKUPSET ALL;
Talip Hakan Ozturk
http://taliphakanozturken.wordpress.com/ -
How to check the size of rman backups to tape
instead of asking tsm person to check, how do I check how big is a rman backup sent to tape?
query to find the backupset sizes
SQL> select ctime "Date"
2 , decode(backup_type, 'L', 'Archive Log', 'D', 'Full', 'Incremental') backup_type
3 , bsize "Size MB"
4 from (select trunc(bp.completion_time) ctime
5 , backup_type
6 , round(sum(bp.bytes/1024/1024),2) bsize
7 from v$backup_set bs, v$backup_piece bp
8 where bs.set_stamp = bp.set_stamp
9 and bs.set_count = bp.set_count
10 and bp.status = 'A'
11 group by trunc(bp.completion_time), backup_type)
12 order by 1, 2;
Date BACKUP_TYPE Size MB
03-JUL-10 Archive Log 7.31
03-JUL-10 Full 29.81
03-JUL-10 Incremental 2853.85
04-JUL-10 Archive Log 3.59
04-JUL-10 Full 7.45
04-JUL-10 Incremental 3.05 -
How to distribute RMAN backup among tape volumes in OSB
Hi Guys,
I would like to ask some information about OSB. I have finally set up our Oracle Secure Backup 10.3.0.3.0 and initial OSB backup to tape is good using our test environment.
Now, our production servers has the following details:
Serv01
- Oracle Database 11.1.0.7
- Windows Server 2003 R2
- Current RMAN backup to disk full (level 0) is at 2TB.
Serv02
- this is our media server for OSB and we manage from here all other servers that we would like OSB to be implemented.
-Windows Server 2003 R2
- We have IBM tape library here with four drives
- Our tape volumes are 480GB each (compressed) we about 50 of them.
-Each tape volume has barcodes and our library has barcode reader
How can I group certain tapes (as a media family?) and use them for our level 0 backup. As you know, one tape cannot hold our level 0 backup so we need at least 5 tape volumes to hold our level 0 backup. Is there a step by step process of doing this? Or does anyone know how to do this?
Thanks and I would really appreciate your thoughts about this.Yes, media families (like tape pools) are used to group backups on tape. Using a database backup storage selector, you set-up media policy so OSB will automatically select appropriate storage when for the backup per your settings. You may want to refer to this white paper which discusses media management:
http://www.oracle.com/technetwork/database/secure-backup/learnmore/osb-103-twp-166804.pdf
Donna -
RMAN Backup to tape using Oracle Secure Backup
I am trying to take 11g R2 (11.2.0.3) database backup using RMAN. I am using Oracle Secure Backup for configuring virtual tape library and virtual tape drive.
Whenever, I am running the RMAN backup script it simply hangs. While checking the backup job status from Oracle Secure Backup web interface, the job status are displaying 'pending resource availability'.
On, furthur investigating the job, the following error message are displayed,
" Dispatching job to run on oradb. Drive or volume on which mount attempted is unusable".
Library and Tape Creation:
mkdev -t library -o -S 4 -a oradb:/vlib -v vlib
mkdev -t tape -o -a ora11:/vt -v -l vlib -d 1 vt
Not able to fix this error. Need help
Message was edited by: 799814There is a VTL: http://mhvtl-linux-virtual-tape-library-community-forums.966029.n3.nabble.com/
really work well with OSB 10.3.0.3 64bit, the version of it, fully tested by me , is 1.2
The installation guide of it here:
mh virtual tape & library system.
Instructions assume reader is familiar with the kernel build process.
There are two sections of code to build.
- The kernel module
- The user-space daemons.
Kernel module mhvtl:
==================
1) Make sure the kernel-devel package to match your running kernel is installed.
e.g.
RedHat AS 4 & 5:
# rpm -qa|grep kernel
kernel-2.6.9-34.0.1.EL
kernel-devel-2.6.9-34.0.1.EL
kernel-2.6.9-5.EL
kernel-devel-2.6.9-5.EL
kernel-utils-2.4-13.1.80
SLES 9 & 10:
# rpm -qa|grep kernel
2) Extract the mhvtl source code.
# tar xvfz mhvtl-2012-04-04.tgz
3) Change directory into the kernel driver source.
# cd mhvtl-1.2/kernel/
# make
# make install
User space daemons:
===================
Pre-req for a running mhvtl
- sg3_utils (http://sg.danny.cz/sg/sg3_utils.html)
Pre-req to build/compile userspace:
- zlib-devel
* To build an RPM
===============
cp mhvtl-YYYY-MM-DD.tar.gz /usr/src/packages/SOURCE/
cd /usr/src/packages/SOURCE
rpmbuild -tb mhvtl-YYYY-MM-DD.tar.gz
<wait for rpm build to complete>
rpm -Uvh /usr/src/packages/RPMS/<cpu type>/mhvtl-1.2-z.<cpu type>.rpm
(The rpm install will create system group & accounts vtl)
- Note: For RedHat, replace 'packages' with 'redhat'
* To build from tar archive (Debian / Ubuntu):
============================================
apt-get install lsscsi
apt-get install sg3_utils
To limit damage that may occur by wayward daemons, I highly recommend creating
a group and user called 'vtl'
# /usr/sbin/groupadd --system vtl
# /usr/sbin/useradd --system -c "Vitrual Tape Library" -d /opt/vtl -g vtl -m vtl
Now build user space daemons:
From the parent directory where you extracted the source.
# cd mhvtl-1.2
Build the binaries
# make
Install the rc script into /etc/init.d/ and binaries to /usr/local/bin/
# make install
Start daemons:
/etc/init.d/mhvtl start
Test:
Note: Make sure the 'mtx' & 'lsscsi' utilities are installed
The virtual devices are attached to HBA #5 in this example.
e.g.
# lsscsi -g
[0:0:0:0] disk ATA WDC WD1200BEVS-0 02.0 /dev/sda /dev/sg0
[3:0:0:0] cd/dvd Optiarc DVD RW AD-7910A 1.D1 /dev/sr0 /dev/sg1
[5:0:0:0] mediumx SPECTRA PYTHON 5500 /dev/sch0 /dev/sg6
[5:0:1:0] tape QUANTUM SDLT600 5500 /dev/st0 /dev/sg2
[5:0:2:0] tape QUANTUM SDLT600 5500 /dev/st1 /dev/sg3
[5:0:3:0] tape IBM ULT3580-TD4 5500 /dev/st2 /dev/sg4
[5:0:4:0] tape IBM ULT3580-TD4 5500 /dev/st3 /dev/sg5
# mtx -f /dev/sg6 status
Storage Changer /dev/sg6:4 Drives, 37 Slots ( 4 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Storage Element 1:Full :VolumeTag=SDLT01S3
Storage Element 2:Full :VolumeTag=SDLT02S3
Storage Element 3:Full :VolumeTag=SDLT03S3
Storage Element 4:Full :VolumeTag=SDLT04S3
Storage Element 5:Full :VolumeTag=SDLT05S3
Storage Element 6:Full :VolumeTag=SDLT06S3
Storage Element 7:Full :VolumeTag=SDLT07S3
Storage Element 8:Full :VolumeTag=SDLT08S3
Storage Element 9:Full :VolumeTag=SDLT09S3
Storage Element 10:Empty
Storage Element 11:Full :VolumeTag=ULT001L1
Storage Element 12:Full :VolumeTag=ULT002L2
Storage Element 13:Full :VolumeTag=ULT003L3
Storage Element 14:Full :VolumeTag=ULT004L4
Storage Element 15:Full :VolumeTag=ULT005L1
Storage Element 16:Full :VolumeTag=ULT006L2
Storage Element 17:Full :VolumeTag=ULT007L3
Storage Element 18:Full :VolumeTag=ULT008L4
Storage Element 19:Full :VolumeTag=ULT009L1
Storage Element 20:Empty
Storage Element 21:Full :VolumeTag=8MM001X4
Storage Element 22:Full :VolumeTag=8MM002X4
Storage Element 23:Full :VolumeTag=8MM003X4
Storage Element 24:Full :VolumeTag=8MM004X4
Storage Element 25:Empty
Storage Element 26:Empty
Storage Element 27:Empty
Storage Element 28:Empty
Storage Element 29:Empty
Storage Element 30:Empty
Storage Element 31:Full :VolumeTag=CLN001L1
Storage Element 32:Full :VolumeTag=CLN002L1
Storage Element 33:Full :VolumeTag=CLN003L1
Storage Element 34 IMPORT/EXPORT:Empty
Storage Element 35 IMPORT/EXPORT:Empty
Storage Element 36 IMPORT/EXPORT:Empty
Storage Element 37 IMPORT/EXPORT:Empty
Enjoy.
Please feel free in letting me know if this works for you.
Bug fixes and suggestions always welcome.
[email protected]
[email protected] -
OSB 10.1.0.0 on AIX crashes the entire system during an rman backup to tape
Hi,
I have here two AIX 5.3-07 systems with Oracle 10.2.0.2 and 10.2.0.3 on it. After installing Oracle Secure Backup for AIX I tried an online backup with rman. During the rman backup the entire AIX system crashes and reboots.
I can reproduce this on both AIX machines. If I'm using only obtar to backup some files it works out of the box. On the 10.2.0.2 system I've initial installed a 10.2.0.1 database. With this installation I was able to make online backups without any crashes.
Just before I open a tar I want to ask if someone has any hints?
MfG
J. KrauseFile an SR to further investigate this.
Maybe you are looking for
-
How do I sync my MacBook Pro with my iMac?
Hey everyone, I have the following situation: I have an iMac, a Macbook Pro, iTunes Match and a Time Capsule. I produce music and I DJ and I want my two computers in sync, so that I have the music projects I do on my iMac on my Macbook to work on the
-
There was a bug in iOS6 where rejecting an invite would cancel the event. Has anyone seen the same problem in iCal (5.0.3 on OS 10.7.5)? Here's the iOS 6 link. http://zahirshahblog.com/2012/10/07/apple-iphone-ios-6-bug-for-exchange-server-m eeting-i
-
Dynamic Forms reverting to Static on Saving
Hi, I have set up several forms as Dynamic, however when I save them while working, Designer saves them as Static. I keep having to remember to do a "File / Save As" to force the Dynamic format. I have looked through the help file and I have set the
-
Hi All, I am working on Sales Excise Invoice PLD, where the client wants the Tax amounts ( BED, Cess, HScess) to be displayed in words. How to do this.
-
Creating photo thumbnails?
I hate to use the "F" word, but in FrontPage I could use Ctrl-T to change a photo on a page to a thumbnail, and it created the link to the original. How do I do this in DW CS3? I did Commands/Create Web Photo Album, but that wants Fireworks. I can't