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
Thanks
Hi,
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
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? -
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 -
Like to take rman backup files into some other machine
Dear all
I like to take Rman backup into some other machine rather than its default storage location $oracle_home/dbs in to some other machine..
While i ran database backup in rman it stores the file sets into default location $ORACLE_HOME/dbs ... I relocated in to some other drivers in same machine also.. I got work ... But due to space issue i would like to take backup into some other machine so its possible ? how to configure it...
Regards
GopinathGopiKrishna wrote:
Dear all
I like to take Rman backup into some other machine rather than its default storage location $oracle_home/dbs in to some other machine..
While i ran database backup in rman it stores the file sets into default location $ORACLE_HOME/dbs ... I relocated in to some other drivers in same machine also.. I got work ... But due to space issue i would like to take backup into some other machine so its possible ? how to configure it...
Regards
GopinathYou need to mount the second machine and take backup to that mount point
Kamran Agayev A.
Oracle ACE
My Oracle Video Tutorials - http://kamranagayev.com/oracle-video-tutorials/
My ebook - http://kamranagayev.com/2011/10/19/step-by-step-oracle-installation-all-in-one-e-book/ -
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 -
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 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 from remote pc !
Dear Friends ,
In my database Linux server I have no enough space to take RMAN backup since my database size around 90 GB .
So in this moment I want to take the rman backup form remote machine(From windows or Linux), where all the datafile backup of my Linux database server also goes to the remote machine . is it possible to do ?
Or is there any way to take RMAN backup(datafile,controlfile,spfile backup from server to client) from remote machine without increasing the HDD space of the Local server ?
Waiting for your kind reply ... ...In my database Linux server I have no enough space to take RMAN backup since my database size around 90 GB .
So in this moment I want to take the rman backup form remote machine(From windows or Linux), where all the datafile backup of my Linux database server also goes to the remote machine . is it possible to do ?
Or is there any way to take RMAN backup(datafile,controlfile,spfile backup from server to client) from remote machine without increasing the HDD space of the Local server ?You can't make RMAN backup remotely.
Use third party tools like data-protector or use Oracle secure backup to make backups other than local server. -
How can i do a RMAN backup of my database from the network ?
i'm using oracle 8i.1.7.3 with win server 2003
i want to know how can i do a RMAN backup of my database (sever machine A) from the network.
i'd like to save the backup in another machine (the same LAN, the same OS ).
to do that i've mapped a logical device in my comptur (z):
when i run rman command i got this error:
channel ORA_DISK_1: starting piece 1 at .......
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command ON ORA_DISK_1 channel at .......
00
ORA-19504: failed TO CREATE file "\\remote\save\"
ORA-27040: skgfrcre: create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 123) The filename, directory name, or volume label syntax is inco
rrect.Hi,
ORA-19504: failed TO CREATE file "\\remote\save\"make sure you have created this directory and change it's ownership (chown command)to oracle.
also make sure that oracle user has permission to write to this direcotry (chmod command)
hope this helps
cheers, walrus -
Dear All
We are running Oracle 10g(10.2.0.4) on Solaris 10
I want to gzip up my rman backups, which are to disk.
How do I add the command to my script so after end of backup it starts gzipping it.
Please find the script below
export ORACLE_BASE=/app/oradataerp/oraprod
export ORACLE_HOME=/app/oradataerp/oraprod/db/tech_st/10.2.0
export ORACLE_SID=PROD
export LD_LIBRARY_PATH=${ORACLE_HOME}/lib
export PATH=${ORACLE_HOME}/bin:${ORACLE_HOME}/lib:${PATH}
export DATE=`/usr/bin/date +%Y%m%d`
rman target sys/***** nocatalog msglog /nfs-bkp-erp/PROD-ERP/PROD-DB/RMAN.${DATE}.log <<EOF
crosscheck archivelog all;
#backup database format '/nfs-bkp-erp/PROD-ERP/PROD-DB/PROD_t%t_s%s_p%p%c';
#backup current controlfile format '/nfs-bkp-erp/PROD-ERP/PROD-DB/PROD_cntrl_t%t_s%s_p%p%c';
#delete noprompt archivelog All complEted before 'SYSDATE-10';
crosscheck backup;
#delete expired archivelog all;
delete obsolete;
crosscheck backup;
EXIT
EOF;
Regards
MusaddaqWhen using compression, you will need to actually test to see which backup compression gives you the best compression/performance. Higher compression = slower performance, Lower compression ratio = more performance.
To make your life a lot easier when trying to do backups, make sure you do rman backup to disk, then sweep these backups to tape. The restore would then be much faster. -
RMAN Backups residing remotely
Oracle Version: 11.2.0.3 x64
OS: Win 2008 server x64
Hi Experts.
We need to replicate a database on one of our boxes, with very limited space on disk. The database size is roughly 200gb, free space on disk is 250gb, and the RMAN backups are roughly 80gb.
The RMAN backup pieces have been cataloged with the following path:
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'd:\rman\%d\bkup_%d_%U';So, if we attempt a restore/replication on the local server, RMAN would look for backups on the local D drive, under D:\rman\<db_name>\
In the past we used to copy the RMAN backups on the local server where the replication is required, and perform the replication locally without any issues; however, with a very limited space that won't fit both the replicated instance and the RMAN copies, we're not quite sure how further proceed!?
Can we instruct the RMAN replication session to look for backups in a remote server?
We do keep 3 weeks of RMAN backups on disk, hence the 80GB RMAN backups size. As far as I remember a full backup has been performed last Sun. Can we only bring over Sun full backup (and any subsequent incremental backups)? or do we need to copy the whole thing across to the local server?
Any ideas please?
ThanksI've been trying the duplicate command with the "from active database" clause but we're getting some permissions errors that I'm not sure about:
C:\Users\oracle>rman target sys/xxx@vssrp auxiliary sys/password@vssrl
Recovery Manager: Release 11.2.0.3.0 - Production on Sat Sep 1 16:28:25 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: vssrp (DBID=1391811405)
connected to auxiliary database: vssrl (not mounted)
RMAN> run {
2> allocate channel c1 type disk;
3> allocate auxiliary channel DUP type disk;
4> duplicate target database to vssrl from active database;
5> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=1252 device type=DISK
allocated channel: DUP
channel DUP: SID=673 device type=DISK
Starting Duplicate Db at 01-SEP-12
contents of Memory Script:
sql clone "create spfile from memory";
executing Memory Script
sql statement: create spfile from memory
contents of Memory Script:
shutdown clone immediate;
startup clone nomount;
executing Memory Script
Oracle instance shut down
connected to auxiliary database (not started)
Oracle instance started
Total System Global Area 3140026368 bytes
Fixed Size 2259312 bytes
Variable Size 788530832 bytes
Database Buffers 2315255808 bytes
Redo Buffers 33980416 bytes
allocated channel: DUP
channel DUP: SID=578 device type=DISK
contents of Memory Script:
sql clone "alter system set db_name =
''vssrp'' comment=
''Modified by RMAN duplicate'' scope=spfile";
sql clone "alter system set db_unique_name =
''vssrl'' comment=
''Modified by RMAN duplicate'' scope=spfile";
shutdown clone immediate;
startup clone force nomount
backup as copy current controlfile auxiliary format 'C:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL01.CTL';
restore clone controlfile to 'D:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL02.CTL' from
'C:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL01.CTL';
restore clone controlfile to 'D:\ORACLE\ORADATA\vssrl\CONTROL03.CTL' from
'C:\ORACLE\ORADATA\CONTROLFILE\vssrl\CONTROL01.CTL';
alter clone database mount;
executing Memory Script
sql statement: alter system set db_name = ''vssrp'' comment= ''Modified by RMAN duplicate'' scope=spfile
sql statement: alter system set db_unique_name = ''vssrl'' comment= ''Modified by RMAN duplicate'' scope=spfile
Oracle instance shut down
Oracle instance started
Total System Global Area 3140026368 bytes
Fixed Size 2259312 bytes
Variable Size 788530832 bytes
Database Buffers 2315255808 bytes
Redo Buffers 33980416 bytes
allocated channel: DUP
channel DUP: SID=578 device type=DISK
Starting backup at 01-SEP-12
channel c1: starting datafile copy
copying current control file
released channel: c1
released channel: DUP
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/01/2012 16:29:14
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on c1 channel at 09/01/2012 16:29:14
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01031: insufficient privileges
ORA-17629: Cannot connect to the remote database serverAs you can see from the above, we're logging in to both databases (target and aux) as sys; also the local OS oracle user is a member of administrators and can write files on to disks.
Any idea please?
Thanks -
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
we have schedule rman backup using veritas a third party mml , we have policy for daily,weely , monthly full database backup.
daily and weekly backup are working fine only monthly backup is getting failed with the following messages.
released channel: ch00
allocated channel: ch00
channel ch00: sid=172 devtype=SBT_TAPE
channel ch00: VERITAS NetBackup for Oracle - Release 6.0 (2005090703)
Starting backup at 26-JUN-08
channel ch00: starting full datafile backupset
channel ch00: specifying datafile(s) in backupset
including current controlfile in backupset
channel ch00: starting piece 1 at 26-JUN-08
released channel: ch00
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of backup command on ch00 channel at 06/26/2008 22:32:32
ORA-19506: failed to create sequential file, name="cntrl_1893_1_658449136", parms=""
ORA-27028: skgfqcre: sbtbackup returned error
ORA-19511: Error received from media manager layer, error text:
VxBSACreateObject: Failed with error:
Server Status: the specified client does not exist in an active policy within the configuration database
RMAN>
Recovery Manager complete.
Script /prod_ora/proddb/9.2.0/rman/hot_database_backup.sh
==== ended in error on Thu Jun 26 22:32:33 AST 2008 ====
RegardsThis is a NetBackup configuration issue. The client doesn't have a policy for your monthly job/schedule. I would recommend comparing the setup of the daily/weekly vs. the monthly job.
Thanks,
Brian -
Problem in recovery from RMAN backup in case of disk failure
Hi
I have Oracle 9.2.0.1.0 on Windows. Full Hot RMAN backup of database is scheduled on daily basis. I am taking backup on disks. And then i do manually copy them on tapes. If any disk failure occurs than can i recover database completely in this scenario. If tried restoing that backup on different machine as given below
set ORACLE_SID=<name>
rman target sys/<pwd>@ORACLE_SID nocatalog
startup nomount
restore spfile
create pfile from spfile
startup nomount pfile
alter database mount
restore database
Everything worked fine till above steps. Now i will execute last step.
recover database
Here it gives error:-RMAN-06054: media recovery requesting unknown log: thread 1 scn 264750
Still i typed
alter database open resetlogs
Now i can open my database, But is it recovered completely? Or there is loss of some data? Why it is giving this error?
Thanks in advance. Waiting for reply.I can understand the confusion with this whole concept.
What I meant by all archivelogs is all the archivelogs that were backed up with the backup itself. Again, it is essential to ensure that you archive the current redo log AFTER the backup is performed and then back those archivelogs too. Good thing is, RMAN will take care of this for you if you backup the archivelogs with the BACKUP DATABASE command and/or backup the archivelogs AFTER you run the BACKUP DATABASE command.
Once you've mounted the controlfile and CATALOG the archivelogs, you can go into SQL*Plus and issue the following query:
select SEQUENCE#, FIRST_CHANGE#, NEXT_CHANGE# from v$archived_log
order by FIRST_TIME;This will tell you what archivelog is the latest. Logs generated during the backup may also provide the necessary information. Performing Disaster Recovery should help to understand the full process.
The ONLINELOG directory in FRA is only populated if you've configured your redo logs to be stored there. However, you are on 9i...right? If so 9i doesn't utilize a FRA.
HTH
Edited by: ebrian on Oct 3, 2008 1:08 PM
Maybe you are looking for
-
How can i unlock my iphone from a Japanese carrier???
I have bought an iphone 5s from Japan and it worked fine until i went to my service provider to check why my 3G wasnt working. My service provider then told me that my sim card wasnt being read by the phone anymore after she reset my network settings
-
Datafile issues in manual standby database
Hi all, oracle - 10gR2 OS - RHEL 2.6 We have primary and standby database setup using manual methods('rsync') to send archive logs from primary to standby database and they are applied there. Today I have created a new datafile in primary and seen th
-
Hi Our requirement in creating a report is as follows : We have "Sales Officer" , "Serial No" , "Revenue" , "Year" columns . The relationship between Sales Officer and Serial No is that : "A Sales Officer can have any number of Serial No's under him
-
Slow starup of Java application - best practices for fine tuning JVM?
We are having problems with a java application, which takes a long time to startup. In order to understand our question we better start with some background info. You will find the question(s) after that. Background: The setup is as follows: In a cli
-
My Mastercard was working effectively
My Mastercard was working effectively, suddenly it stopped ! it says my payment method is not accepted ! why I have money in my card but still cann't use it