RMAN backup to disk vs tape
AIX R 2
Oracle: 10.2.0.4
I have been testing rman backup strategies on a db in noarchivelog (development) using the following command:
(*) note: if db is in noarchivelog then you must do a cold backup - have the db mounted but not opened.
rman> backup database format '/a010/d01/bck/%U'
I have found that rman will backup to disk about 2GB per minute. Now I want to test this to tape to compare metrics.
Question: What configurations does RMAN need to write directly to tape?
What are the backup steps to write to tape? Do I need to specify both the tape channel and also where the format output gets written?
Thanks all.
OK
You need to install the Oracle driver for Tivoli (optionally sold with Tivoli) and install that in your Oracle software tree.
Then you can configure your channels to write to tape (this is documented).
For the rest there is no difference, although there are no directory names.
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Rman backup to disk 2 Minutes; Backup to tape hours
Solaris 10
Oracle 10gR2
MML Netbackup 6.0
I have the following scenario
Rman backup to disk < 2 Minutes; Backup to tape takes hours
and occassionaly fails with a media manager layer error.
Any suggestions to speed up the backup to tape?A backup of under 2 minutes . . . not very big.
A backup to tape of hours?
I don't think that is your problem . . . I think you need to check and see if your tapes are valid. If Oracle fails at the end of a backup to tape, it sounds like the tapes are 'bad'.
If the tapes are good: Then look at why it is so slow - I would 'guess' network backup.
Can you backup to disk and then send them to tape?
Solaris 10
Oracle 10gR2
MML Netbackup 6.0
I have the following scenario
Rman backup to disk < 2 Minutes; Backup to tape takes
hours
and occassionaly fails with a media manager layer
error.
Any suggestions to speed up the backup to tape? -
RMAN backup to write on tape and disk in the same time
Hi all,
I want to take backup using RMAN and to have the backup file in a tape and a disk, i know i can allocate channel for tape, or disk. My question is can i use the both disk and tape in an rman backup one time. I mean i want to have rman writing backup file in a local disk and a tape in the same time to have redoundant backup at a tape and local disk.
If some scripts is there, it will be welcome.
Thanks
RaitsarevoSee Duplexing backup sets.
-
Looking to convert our RMAN Tape backups to Disk using incr merge.
RUN {
RECOVER COPY OF DATABASE WITH TAG 'incr_update';
BACKUP INCREMENTAL LEVEL 1 FOR RECOVER OF COPY WITH TAG 'incr_update'
DATABASE;
Then we want to backup all backupsets to tape for archive. So questions are
1) How do you tell RMAN to only backup backupset that have not been backup up to tape already?
2) Once a week, we would want to backup the full image copy "TAG 'incr_update'" to tape as well.
Thanks...Thanks for the info... As a follow up question... I see some samples for IMB out there like so:
run {
recover copy of database with tag 'incremental_merge_backup';
backup incremental level 1 cumulative copies=1 for recover of copy with tag 'incremental_merge_backup' database;
What is the COPIES=1 for? Can't seem to find any docs on how it affect a IMB.
Thanks.. -
Oracle RMAN backup to disk on vbox4.2 shared folders
[https://forums.virtualbox.org/viewtopic.php?f=7&t=53683]
Cross posting a virtualbox forum post in case someone has this working.
[posting snippet]
Anyone successfully using Oracle 10.2/11.2 RMAN to backup to mounted vbox guest shared folder? I'm thinking there may be some special configuration requirement like there is with NFS share mount options.
RMAN> backup incremental level = 0 database include current controlfile plus archivelog delete input;
[lengthy output clipped]
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup plus archivelog command at 01/18/2013 00:03:14
ORA-19504: failed to create file "/media/sf_backup/vux099/oracle/vux099db/dataS217_P1_T804988992"
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 22: Invalid argument
Additional information: 2
RMAN>
Recovery Manager complete.
oracle@vux099:vux099db1 [app/oracle]
$ touch /media/sf_backup/vux099/oracle/vux099db/myfile; ls -l /media/sf_backup/vux099/oracle/vux099db/myfile
-rw-r--r-- 1 oracle oinstall 0 Jan 18 00:04 /media/sf_backup/vux099/oracle/vux099db/myfile
oracle@vux099:vux099db1 [app/oracle]
$ touch /media/sf_backup/vux099/oracle/vux099db/myfile;
oracle@vux099:vux099db1 [app/oracle]
$ mount | grep sf_backup
backup on /media/sf_backup type vboxsf (uid=51115,gid=51116,rw)
oracle@vux099:vux099db1 [app/oracle/base/admin/vux099db1/bin]
$ getent passwd 51115; getent group 51116
oracle:*:51115:51116:Oracle Administrator:/app/oracle:/bin/bash
oinstall:*:51116:grid,oracle
oracle@vux099:vux099db1 [app/oracle/base/admin/vux099db1/bin]
$ printf "show all;\nexit\n" | rman nocatalog target / | grep DISK
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/media/sf_backup/vux099/oracle/vux099db/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO COMPRESSED BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/media/sf_backup/vux099/oracle/vux099db/dataS%s_P%p_T%t';
oracle@vux099:vux099db1 [app/oracle/base/admin/vux099db1/bin]
$
[end]
Edited by: user12130856 on Jan 18, 2013 8:08 PMHi,
never tried it, but I know that the shared folders in vbox don't work like normal filesystems.
I would rather setup an NFS server on the host and mount an NFS share in the guest.
Regards
Sebastian -
CAN WE MULTIPLEX THE BACKUPSET OF RMAN BACKUP ON DISK
CAN WE MULTIPLEX THE BACKUPSET OF RMAN BACKUP ON DISK
Hi
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
Regards -
Hello,
In Oracle 8.17 on Sun using RMan with a FULL DATABASE backup to Disk can someone please explain:
1. How to specify a tablespace(s) to NOT backup?
2. How to compress the RMan file during the backup (I am low on diskspace).
3. How to break the backup into two pieces and specify a different location for both?
I am not sure if the above are possible. Thanks for you help.
Thanks very much for your advice,
Michael42Re your 2nd question :-
I've looked into RMAN and on the fly compression ( unix/linux).
It looks like it can't be done well not easily, ( check AskTom or dbForumns if you like).
Several others have tried and RMAN defeats you each time, the problem is that RMAN can't be made to write to STDOUT or STDERR or STD<anything> and thus any "on the fly" compression tools ie:gzip|bzip2| compress just doesn't get a chance at it.
If you are prepared to do some heavy scripting you can use a named pipe into a fixed file name and apply compression through the pipe, but it's a hell of a lot of work and there's a lot that can go wrong.
Re: Your 3rd question :-
Not sure that this will help you 100%, but it may give you an idea or 2.
I splice the DB backup like so; database on one volume and archivelogs on another as follows ...
run {
allocate channel ch1 type disk format '/backupdir1/b_%u_%s_%p.db';
allocate channel ch2 type disk format '/backupdir2/b_%u_%s_%p.arch';
sql 'alter system switch logfile';
set limit channel ch1 kbytes 1024000;
backup (database include current controlfile channel ch1);
set limit channel ch2 kbytes 1024000;
backup (archivelog all delete input channel ch2);
I also limit the size of the pieces.
Hope you get your problems sorted. -
Rman backup with archivelog from tape
Hi,
We are doing a level 0 backup on sunday and then level1 backup on all the weekdays.
The archive logs generated are 1GB each and are more in number.
IF we include archivelog in level1 backup , its taking around 12hrs to complete.
So we are thinking of not including the archivelog in level 1 backup,but then we can daily move the archive logs to another location .
So archivelogs will not be in the rman backup.
So in case of restore, how can we apply the archive logs required? rman will not identify the archive logs...how can we manually apply the required archive logs
Please helpInformation about ArchiveLogs is available in the controlfile as I outlined in my response post in the thread How to find out which archived logs needed to recover a hot backup?
However, if your CONTROLFILE_RECORD_KEEP_TIME is 7 days and you are attempting a restore of a backup 14 days or 28 days or 35 days old ... you may be out of luck.
You'd need to maintain a listing of ArchiveLogs in some manner (e.g. a log file outside the database that you periodically update with information about ArchiveLogs).
It is much better to also backup the ArchiveLogs using RMAN. Don't forget to ensure that controlfile backups or autobackups are also taken and retained.
Hemant K Chitale -
RMAN backup archive logs on tape that has not been backuped yet...
We are using RMAN with catalog on Legato. Oracle 10gR2.
Our archive log backup is taking every 2 hours with scriipt:
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=hitbackup.hit.hypohr,NSR_CLIENT=a22ff020.hit.hypobck)';
# 0.0840278 = 121 minutes!
backup archivelog FROM TIME = 'sysdate-0.0840278' filesperset 50 format '/arch1_%d_%u/';
release channel t1;
release channel t2;
}In the night we take everyday full backup where we delete all 9 days old archive log which has been backuped on tape at least once. The script is following:
run {
allocate channel t1 type 'SBT_TAPE';
allocate channel t2 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=hitbackup.hit.hypohr,NSR_CLIENT=a22ff020.hit.hypobck)';
backup full database filesperset 2 format '/full_%d_%U/';
release channel t1;
release channel t2;
allocate channel d2 type disk;
delete archivelog until time 'trunc(sysdate)-9'
backed up 1 times to device type SBT_TAPE;
release channel d2;
}Problem is that sometimes archive log backup is not performed (Legato head is busy with other backups or some restore that happened in the time when backup is scheduled and later 2hours frame is missing those logs) and then we backup them with some manual script.
We'd like to know how to backup to tape all archive logs in last 5 days that has not been backuped once to tape. I.E:
backup archivelog FROM TIME = 'sysdate-7' filesperset 50 format '/arch1_%d_%u/'
backed up 0 times to device type SBT_TAPE;This part will be included in daily job...which should recollect all missing archive logs from last seven days.
THXYou could try to use the NOT BACKED UP x TIMES clause from BACKUP command.
-
RMAN Backup to Disk in a RAC cluster...?
We have a two-node RAC cluster, using Linux and ASM. Pretty typical setup.
We are backing up to disk via RMAN. Right now, that filesystem is mounted on node #1. It's a SAN volume but is not presently clustered.
My questions...
(1) Is it best practice that only one node out of the cluster performs the backups?
(2) Or is there a config where all nodes participate in the backup?
My concerns are what happens when node #1 fails (presumably we'd have to mount the volume on node #2), and also the asymmetrical load during backups.
Thank you!Hello;
Managing backup and recovery for RAC databases is no different from managing those for single-instance databases.
RMAN backs up the database not the individual instance.
This may help :
http://www.databasejournal.com/features/oracle/article.php/3665211/Oracle-RAC-Administration--Backing-up-your-RAC-with-RMAN.htm
Instance Recovery in Oracle RAC
http://docs.oracle.com/cd/E11882_01/rac.112/e16795/backup.htm#i492578
Best Regards
mseberg -
RMAN backup to disk on third machine
Hi,
How to take backup of oracle database running on machine M1 to the hard disk of other machine M2 using RMAN
ThanksHi,
never tried it, but I know that the shared folders in vbox don't work like normal filesystems.
I would rather setup an NFS server on the host and mount an NFS share in the guest.
Regards
Sebastian -
Disk V$ Tape Drive for Rman
Hi,
Os : Aix,Red hat 4.2
Db : 10
We taking rman backup which stores in Tape Drive.(It took 11 hours, incremental 0 level).due to ORA-27030 & ORA-19511,we couldn't use Tape drive temporarliy.
So we used disk for rman backup.(It took 4 hours to complete).
Which is best storage(ie fastest) for rman backup /restoration whether DISK or TAPE?
What are the factors determine it?
Thanks & regards,
VNWhat is more important to you, then choose. It's simple: tape is more reliable and faster drives. At a cost of not very high volumes, they are about the same per megabyte. It - http://www.allbackup.ru/articles/article6.html - is more less actually.
Edited by: 900355 on 02.12.2011 2:49
Edited by: 900355 on 02.12.2011 2:49 -
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 -
Hi All,
Oracle 10gR2. Usual RMAN backups are taken to tapes using HP Data Protector.
Want to create a RMAN secondary backup (daily full backups) on the same SAN storage.
So that we can restore very fast.
What options do I have to take the backups.Hi,
With backup as copy feature;
in a case of failure, you can benefit the following example cases:
RMAN> SWITCH DATABASE TO COPY;
RMAN> sql 'alter tablespace users offline';
RMAN> switch datafile 4 to copy;
RMAN> recover datafile 4;
RMAN> sql 'alter tablespace users online';
What i understood is you have a production database which you backup to tape with HP data protector now.
And i offer you forget direct backup to tape and, backup it to disk (FRA) first , then from FRA to tape.
But you mention about primary database in your second post, do ypu backup from standby or something else? -
Error while run rman backu plus archivelog to tape
hi all,
am trying to run rman backup plus archivelog TO tape disk
my rman configuration settings are as seen below
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 2;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COPY PARALLELISM 1;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/dev/nst0/%u';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/Ora10R2/Orahome/dbs/snapcf_dse.f
'; # default
get the following error when i do this,
RMAN-03009: failure of backup command on C3 channel at 01/03/2013 11:33:45
ORA-00600: internal error code, arguments: [ksfdfetch1], [], [], [], [], [], [],
Can any one tell why am getting this error?
ThanksHi,
ora-600s are very strange errors, and most times difficult to understand.
there are however some useful notes.
ORA-600/ORA-7445/ORA-700 Error Look-up Tool [Article ID 153788.1]
Master Note for Diagnosing ORA-600 [Article ID 1092832.1]
besides that, you could inform us of the platform, OS, DB version that you are using.
br,
jpinela.
Maybe you are looking for
-
Hi I have photoshop cs5 which I have installed on a new laptop, I use a canon 550d camera and take shots in Raw, I get an error message when trying to open a raw file, I understand that I need a plug in or update that will make my canon 550d raw file
-
Problems creating basic forms in DW CS3
Hey I'm having some real headaches here getting my form to work in DW CS3. Take a look at www.investix.co.uk/booking-form.html....as you can see I've got my form all set up with all the text fields and buttons that I need ready to go and process the
-
Hello all, A little back story: I used a 160gb G-Drive Mini with my 15 Al Powerbook G4 (w/OSX 10.4.11) extensively for a couple years with a firewire 400 cable. One day the drive's firewire port crapped out, and since the machine doesnt have the powe
-
Question in subject
-
• fbl_impressive Core 10074 - Error 0xc1900107 Cannot upgrade to the FAST track latest install. Keep getting this error code? Anne