RMAN backup on local filesystem
Hi Experts,
I have an RMAN script and i want to use this script to backup my database on my local filesystem.How can i do it ? What changes i need to make in the script?How can i sepcify the path where i want to backup it ?
Actually this script was taken for doing it on tape drive .
Please help me.
connect target rman/rman@RMAN;
run
{ allocate channel t1 type 'SBT_TAPE' parms
'ENV=(NSR_SERVER=,NSR_DATA_VOLUME_POOL=,NSR_CLIENT=)'
format '/%d_%u_%s_%p/';
backup incremental level 0 ( database filesperset 8 include current controlfile );
sql 'alter system archive log current';
backup archivelog all delete input filesperset 10;
THanks & Regards,
MB
as per oracle best practices, use default channels where possible, these makes management easy !
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman_backup/%F';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rman_backup/d_%d_s_%s_p_%p_t_%t' MAXPIECESIZE 2048 M;
CONFIGURE CHANNEL DEVICE TYPE 'SBT_TAPE' MAXPIECESIZE 1536 M PARMS "ENV=(NB_ORA_CLIENT=topdb1,NB_ORA_SERV=ilsdb2)" FORMAT 'd_%d_s_%s_p_%p_t_%t';
in the following example using default settings, parrallelism is set to 4 using veritas backup
first I take a backup to tape, see how channels get allocated, then to disk, old channels are released and new allocated to disk, this kind of backup policy makes things easy to manage and run, as reccomended by oracle.
RMAN> backup device type sbt current controlfile;
Starting backup at 11-JUN-07
allocated channel: ORA_SBT_TAPE_1
channel ORA_SBT_TAPE_1: sid=273 devtype=SBT_TAPE
channel ORA_SBT_TAPE_1: VERITAS NetBackup for Oracle - Release 6.0 (2005090703)
allocated channel: ORA_SBT_TAPE_2
channel ORA_SBT_TAPE_2: sid=224 devtype=SBT_TAPE
channel ORA_SBT_TAPE_2: VERITAS NetBackup for Oracle - Release 6.0 (2005090703)
allocated channel: ORA_SBT_TAPE_3
channel ORA_SBT_TAPE_3: sid=293 devtype=SBT_TAPE
channel ORA_SBT_TAPE_3: VERITAS NetBackup for Oracle - Release 6.0 (2005090703)
allocated channel: ORA_SBT_TAPE_4
channel ORA_SBT_TAPE_4: sid=219 devtype=SBT_TAPE
channel ORA_SBT_TAPE_4: VERITAS NetBackup for Oracle - Release 6.0 (2005090703)
channel ORA_SBT_TAPE_1: starting full datafile backupset
channel ORA_SBT_TAPE_1: specifying datafile(s) in backupset
including current controlfile in backupset
channel ORA_SBT_TAPE_1: starting piece 1 at 11-JUN-07
channel ORA_SBT_TAPE_1: finished piece 1 at 11-JUN-07
piece handle=d_TOPAZ_s_12304_p_1_t_624967342 comment=API Version 2.0,MMS Version 5.0.0.0
channel ORA_SBT_TAPE_1: backup set complete, elapsed time: 00:02:37
Finished backup at 11-JUN-07
Starting Control File and SPFILE Autobackup at 11-JUN-07
piece handle=c-3348250252-20070611-05_TAPE_CONTROLFILE comment=API Version 2.0,MMS Version 5.0.0.0
Finished Control File and SPFILE Autobackup at 11-JUN-07
RMAN> backup device type disk current controlfile;
Starting backup at 11-JUN-07
released channel: ORA_SBT_TAPE_1
released channel: ORA_SBT_TAPE_2
released channel: ORA_SBT_TAPE_3
released channel: ORA_SBT_TAPE_4
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=273 devtype=DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: sid=224 devtype=DISK
allocated channel: ORA_DISK_3
channel ORA_DISK_3: sid=293 devtype=DISK
allocated channel: ORA_DISK_4
channel ORA_DISK_4: sid=219 devtype=DISK
allocated channel: ORA_DISK_5
channel ORA_DISK_5: sid=283 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
channel ORA_DISK_1: starting piece 1 at 11-JUN-07
channel ORA_DISK_1: finished piece 1 at 11-JUN-07
piece handle=/rman_backup/d_TOPAZ_s_12306_p_1_t_624967822 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
Finished backup at 11-JUN-07
Starting Control File and SPFILE Autobackup at 11-JUN-07
piece handle=/rman_backup/c-3348250252-20070611-06 comment=NONE
Finished Control File and SPFILE Autobackup at 11-JUN-07
RMAN>
Similar Messages
-
RMAN backup goes to filesystem and not to ASM diskgroup
Hi,
DB: 11.2.0.1
OS: Linux
Parameter configured in database:
SQL> show parameter db_recovery_file_dest
NAME TYPE VALUE
db_recovery_file_dest string +BACKUP
db_recovery_file_dest_size big integer 10184M
If i execute the command " RMAN> backup database; " , then the backup ( backup pieces) is going to +BACKUP destination and this is as expected.
But, if i execute the same command using script, then the backup pieces are going to filesystem(default location $ORACLE_HOME/dbs ).
Could you suggest me(if i understood wrongly), why the backup pieces are going to the location of filesystem , and not to the ASM diskgroup ?.
I want to take the backup to ASM diskgroup, because of less space at filesystem.
The script i used is this:
[oracle@rac1 rmanscripts]$ more online.sh
export ORACLE_SID=test;
export NLS_DATE_FORMAT='dd/mm/yy hh24:mi:ss';
umask 022
date
rman target / cmdfile online.rcv msglog online.log
[oracle@rac1 rmanscripts]$ more online.rcv
run {
backup
full
tag b_db_full_test
filesperset 2
format 'df_%d_%t_%s_%p'
database include current controlfile;
Thanks in advance,
Regards,Hi mseberg,
Thanks for your reply and the thing is that the controlfile autobackup is going to ASM diskgroup ( +BACKUP).
Even after changing the suggested config, no luck to me.
RMAN> show all;
RMAN configuration parameters for database with db_unique_name TEST are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 15 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '+BACKUP';
CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/snapcf_test.f'; # default
Backup piece destination info from log is here:
channel ORA_DISK_2: finished piece 1 at 16/02/13 22:41:22
piece handle=/home/oracle/app/oracle/product/11.2.0/dbhome_2/dbs/df_TEST_807575973_155_1 tag=B_DB_FULL_TEST comment=NONE
channel ORA_DISK_2: backup set complete, elapsed time: 00:01:49
Finished backup at 16/02/13 22:41:22
Starting Control File and SPFILE Autobackup at 16/02/13 22:41:22
piece handle=+BACKUP/test/autobackup/2013_02_16/s_807576082.342.807576083 comment=NONE
Finished Control File and SPFILE Autobackup at 16/02/13 22:41:25
I cannot understand why this is,
Regards, -
RMAN backup to network share and local at the same time ?
Hi all,
is it possible to force rman to backup database into two different locations ? one location would be network drive, another local directory.
I was trying to do it with this script:
run
allocate channel c1 type disk format '\\10.236.196.247\BACKUP\%U' maxpiecesize 2g;
allocate channel c2 type disk format 'F:\data\flashback\db_recovery_area/%U' MAXPIECESIZE 2g;
backup database;
backup current controlfile;
release channel c1;
release channel c2;
what I get is my backup is split between these two locations... unable to recover database from one of them.Hi,
You can check the documentation: Multiple Copies of RMAN Backups ;-)
When backing up datafiles, archived redo log files, server parameter files and control files into backup pieces, RMAN can duplex the backup set, producing up to four identical copies of each backup piece in the backup set on different backup destinations with one BACKUP command. (Note that duplexing is not supported for backup operations that produce image copies.)
There are three ways to specify duplexing of backup sets when using the BACKUP command:
Specify a default level of duplexing with CONFIGURE... BACKUP COPIESAll backup commands that back up data into backup sets will be affected if you use this option, unless you specify different duplexing options for a command using SET BACKUP COPIES or provide a COPIES option for the BACKUP command.
Use SET BACKUP COPIES in a RUN block All commands in the RUN block will be affected, overriding any CONFIGURE... BACKUPCOPIES setting, except those where you provide a COPIES option as part of the BACKUP command.
Provide a COPIES option to the BACKUP command For this specific BACKUP command, files will be duplexed to produce the number of copies you specify.
Cheers
Legatti -
Hi,
DB=10.2.0.4 OS=RHL (RAC with 2 nodes db01,db02). Following are the types of automated RMAN backups taken on db01.
- OCR
- Voting Disk
- Talespaces Snapshot
- Archivelog (every hour)
- Backup Incremental level 0 (SUNDAY)
-- backup incrementa level 1 (Mon-SAT)
- Autobackup of Control file and SPFILE (CONTROLFILE AUTOBACKUP ON)
Two main questions please. First, are these backups/backup types are enough FOR FULL RESTORE when talking about RMAN backup on RAC environment with 2 nodes? If not please suggest what else I need to backup?
Secondly, backup home location is /rman which I can see on db01 ONLY. This /rman directory I cannot see on db02. My question is that In case of db02 failure can I restore from this /rman directory? or do I need to automate backup schedules also on db02 separately?
[root@db01~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.9G 2.9G 814M 79% /
/dev/sda3 190M 34M 147M 19% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/VolGroup00-LogVol05
3.9G 137M 3.6G 4% /home
/dev/mapper/VolGroup00-LogVol03
3.9G 225M 3.5G 6% /tmp
/dev/mapper/VolGroup00-LogVol02
7.8G 3.7G 3.8G 50% /usr
/dev/mapper/VolGroup00-LogVol04
3.9G 379M 3.4G 11% /var
/dev/mapper/VolGroup00-ORACLE_BASE
12G 8.7G 2.6G 78% /oracle
10.10.28.140:/vol/px4cinconso
40G 1.4G 39G 4% /inconso_px
/dev/mapper/36001ec9000d5ea810000061349015d98
1.3T 551G 665G 46% /rman
[root@db02~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
3.9G 887M 2.9G 24% /
/dev/sda3 190M 34M 147M 19% /boot
tmpfs 16G 0 16G 0% /dev/shm
/dev/mapper/VolGroup00-LogVol05
3.9G 137M 3.6G 4% /home
/dev/mapper/VolGroup00-LogVol03
3.9G 261M 3.5G 7% /tmp
/dev/mapper/VolGroup00-LogVol02
7.8G 3.7G 3.8G 50% /usr
/dev/mapper/VolGroup00-LogVol04
3.9G 355M 3.4G 10% /var
/dev/mapper/VolGroup00-ORACLE_BASE
12G 6.5G 4.8G 58% /oracle
10.10.28.140:/vol/px4cinconso
40G 1.4G 39G 4% /inconso_px
[oracle@db01~]$ rman target /
Recovery Manager: Release 10.2.0.5.0 - Production on Fri Feb 24 11:49:59 2012
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: F1 (DBID=1245145263)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 28 DAYS;
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/rman/f1/fullbackup/%F';
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET 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 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/product/10.2.0/db/dbs/snapcf_f11.f'; # default
# Script for backup
level0 ()
run {
allocate channel c1 type disk maxpiecesize 2000M format '/rman/$ORACLE_SID/fullbackup/$ORACLE_SID-data-%U-%t';
allocate channel c2 type disk maxpiecesize 2000M format '/rman/$ORACLE_SID/archive/$ORACLE_SID-arch-%U-%t';
backup incremental level 0 tag = weeklyfull database channel c1
plus archivelog tag = ARCH_$TODAY delete all input channel c2;
release channel c1;
release channel c2;
run {
allocate channel c1 type disk;
delete noprompt obsolete;
release channel c1;
}Bundle of thanks.
Regards,
Edited by: 910385 on Feb 24, 2012 3:00 AMHi,
THanks alot for your feedback. Makes my life easier :) . But actually I started studying this all subject because of the following error message in the log file. I found out about this error that doesn't seem to harm. Just wait for the job to finish or it will sort out automatically. Here are the lines from the log file.
Fehler in Backuplogs gefunden:/oracle/log/fcp11-backup-2300.log: RMAN-00571:
===========================================================brRMAN-00569: ===============
ERROR MESSAGE STACK FOLLOWS ===============brRMAN-00571:
===========================================================brRMAN-03009: failure of
Control File and SPFILE Autobackup command on c1 channel at 02/08/2012
06:10:41brORA-00230: operation disallowed: snapshot control file enqueue unavailableI studied few important lines from one of my book, Oracle 11g RMAN backup and recovery (Roberg G Freeman) that I am going to write after the following MAIN ISSUE:
Node 1
RMAN> show all;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/product/10.2.0/db/dbs/snapcf_fp11.f'; # default
Node 2
RMAN> show all;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/oracle/product/10.2.0/db/dbs/snapcf_fp12.f'; # default
Thing which I just noticed regarding the above RMAN error is that snapcf_fp11.f can be seen on the Node 1 on todays date but snapcf_fp12.f was only on 10th jan.
[oracle@db01dbs]$ ls -lrth
-rw-r----- 1 oracle oinstall 20M Feb 27 15:10 snapcf_fcp11.f
[oracle@db02dbs]$ ls -lrth
-rw-r----- 1 oracle oinstall 20M Jan 10 13:28 snapcf_fcp12.fTHe few lines from the book which I mentioned above are: (Though you might not need to read those lines):
"You need to move the snapshot control file to a shared location if you plan to run backups from more than one node. If you do not move the snapshot control file to a shared file system such as OCFS or an ASM disk group, then you must make sure that the local destination is identical on all nodes."
My question is of course, how to sort out the above log file error. Becuse in our case, backups are run only from one node, and snaphost control file is not being moved to ASM disk groups. Local destination is also same on both the Nodes, isn't it (with different names). Why on Node 2 last snapshot was taken on 10th jan while on Node 1 it is todays date which seems fine.
Control file and SPFILE which I noticed are stored on ASM disk groups also, so being shared between the two Nodes.
(Sanme names/same location for control file and SPFILE on Node 1 and Node 2)
Control file:
+REDO1/fp1/controlfile/current.256.652803827
+DATA1/fp1/controlfile/current.441.652869697
SPFILE:
+DATA1/fp1/spfilefcp1.oraPlease suggest.
Thank you.
Regards,
Edited by: 910385 on Feb 27, 2012 7:43 AM -
Can RMAN Backup to multiple destinations on disk?
Hello -
Does RMAN have the ability to backup to multiple destinations?
For example, local filesystem, as well as a remote location?
Thanks in advance!user11340104 wrote:
Hello -
Does RMAN have the ability to backup to multiple destinations?Yes with duplexed backup sets: http://download.oracle.com/docs/cd/E11882_01/backup.112/e10642/rcmcncpt.htm#BRADV89491.
For example, local filesystem, as well as a remote location?
Not on another machine but on tape yes. -
When the archive disk group and RMAN backup location is full
11.2.0.2 on Solaris 10
2-Node RAC
Sometimes I am faced with a situation where the disk group meant for storing archivelogs is full and the Disk based
RMAN backup location is full as well. What would you do in such a situation ?
This usually happens with our QA/UAT DBs during apps testing of certain type which causes huge amount of redo is generated.
We don't directly backup to tape. The disk based backups are moved to tape every two weeks by our SysAdmin.Thank you Hemant, Tsharma, Asahideo
If I have free space left in my local filesystem in any of the nodes in my 2-node RAC, I can run something like
-- Untested
BACKUP AS COMPRESSED BACKUPSET ARCHIVELOG ALL DELETE INPUT format '/localNode_pATH/ora_Arch%t_s%s_s%p';and later when the space is freed up in the original RMAN backup location , I can move it there and use CATALOG command to catalog this backup . Right ? -
Need Advice on RMAN backup script
Hi;
Can any one advice if any error or guide to make RMAN backup proper :
Backup Policy are:
1. 0 level backup
2. current log file is arvhived before backing up
3. backup whole database (datafiles)
4. backup separate control file
5. backup is done on disk
6. control file auto backup ON
7. only 7 days archive log are need to be preserve ; old need to be deleted
### one time paramters seting
RMAN> CONFIGURE DEFAULT DEVICE TYPE TO DISK;
RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 2;
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'O:\rman\backup\Auto_Ctrl_weekly_%F';
RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
### Command for weekly 0 level backup
run {
allocate channel c1 type disk;
sql 'alter system archive log current';
backup incremental level 0 tag = weekly_database format 'o:\rman\backup\full_weekly_%d_%s_%p_%t'(database);
release channel c1;
configure controlfile autobackup format for device type disk to 'o:\rman\backup\auto_ctrl_weekly_%f';
allocate channel c1 type disk;
backup tag = weekly_arch archivelog until time 'sysdate-7' format 'o:\rman\backup\archive_weekly_%d_%s_%p_%t';
delete archivelog until time 'sysdate-7';
release channel c1;
Regards
SmithDear Pierre F.;
Actually, I just added in my backup plan to have daily backup through RMAN, instead of COLD backup.
I have planned to take cold backup once a week. here is the side of data:
*** datafile 410
*** size of database : 86 GM
*** relog files size : 250MB
*** daily archive logs are : 250MB * 4(number of files) = 1GM aprox.
yes, time constraint is there; just because of the size of database. and we r going for 24/7
Is this script going to run only one per week ?
Ans: no I this was level 0 backup; i will take level 1 incremental backup with same script daily too.
Do you have any other RMAN script ?
ANS: no, I will modify same script for incremental.
after local copy of backup all backup files (RMAN) will be copy over network to backup server or we can install LTO tape device to copy directly from database server.
kindly advise me I am new in RMAN.
regards;
SMITH -
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 -
Full (Level 0) backup to local/NFS disk
I am new to SAP's BR*Tools, and need advice in configuring it to use RMAN.
1. My backups are to be written to a staging area on our SAN.
2. What specific parameters do I need to configure in the initSID.sap file to achive Full (Level 0) backup to local/NFS disk - preferably using RMAN?
3. I have successfully performed a Full (Level 0) backup without RMAN to local disk. Also, I have successfully done an incremental (Level 1) backup using BRTools with RMAN. I want to get BRTools + RMAN based Full (Level 0) backup to local/NFS disk.
--VJYou need to set the values for the following.
tape_address
archive_copy_dir
tape_size =
backup_mode =
backup_dev_type =
backup_type =
backup_root_dir
volume_archive
volume_backup
tape_pos_cmd
Cheers
Shaji -
Related to Unused compression in RMAN backup for 10.2.0.4 database
Hi
I recently read through one of the document related to Unused compression in RMAN backup for 10.2.0.4 database. According to this
Unused Block Compression is done, if all of the following conditions apply:
+ The COMPATIBLE initialization parameter is set to 10.2
+ There are currently no guaranteed restore points defined for the database
+ The datafile is locally managed
+ The datafile is being backed up to a backup set as part of a full backup or a level 0 incremental backup
+ The backup set is being created on disk.
I have two queries
1) What is meant by "uaranteed restore points defined for the database"
2) If backup is being directly taken to tape, this feature would not be used
Rgds
Harvinder1. Normal and Garanteed Restore Points
2. No -
Oracle 9i RMAN backup intrigation with OSB 10.3
Hi expertise,
I want to add rman backup process(script) to OSB scheduling as like filesystem backup.
Admin Svr: Windows 2003
Media & Client: Solaris 10
DB: oracle 9i
thanks advanceHi expertise,
I want to add rman backup process(script) to OSB scheduling as like filesystem backup.
Admin Svr: Windows 2003
Media & Client: Solaris 10
DB: oracle 9i
thanks advance -
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.
-
Create a database from 32bit rman backup with NEW name on a 64bit system
Hello,
i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
How can i rename the datafiles before restoring the backup from scatch?
I found this: set newname for datafile 1 to '<filesystem based filename>';
Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
Or could RMAN convert anyhow used to realize the whole thing?
Thank you very much for your support!
Regards
DanielHello,
i'm more programmer than database admin but i need to set up a 10gR2 apex development server based on our productive instance in a short time.
For that i want to use a rman backup of the productive machine (SLES 10 32bit, DB10GR2+ASM, APEX 3.1).
Because of the less time i got, i want to use an existing machine (SLES 11 64bit, DB10GR2+ASM) as destination.
On this machine i want to create a new instance from the backup i took. I Already read note 881395.1 but i'm quite unsure about 2 things
a) It's VERY IMPORTANT that the development instance has another name than the productive instance.
When i follow 881395.1 and set the enviromental variable ORACLE_SID to another new name. Will this be all? Or will there be problems using another SID because of references in the controlfile or sth. like that?
b) It's VERY IMPORTANT that the datafiles aren't stored in the same path and with the same names as the productive instance. It is another server but there is already a copy of the database (our dba tried to set up a standby solution on this machine) and i don't want to bother this!
How can i rename the datafiles before restoring the backup from scatch?
I found this: set newname for datafile 1 to '<filesystem based filename>';
Will this help? Do i need to rename every single file? Or is it possible to set a path in which all datafiles will be restored?
c) What about the 32bit to 64 bit thing? Will this work? Or do i need to convert the database? How? RMAN Convert?
Or could RMAN convert anyhow used to realize the whole thing?
Thank you very much for your support!
Regards
Daniel -
Rman backup with different retention
Hi,
I have to write script on RMAN backup retentions and policies.
My requirement is as below:
Daily backup Name and retentions : db_daily_bkp_sun,db_daily_bkp_mon...with 7 days retension
Weekly backup Name and retentions : db_wkly_bkp_01,db_wkly_bkp_02...with 4 backup retension
Monthly backup Name and retentions : db_mnth_bkp_jan,db_mnth_bkp_feb...with 12 backups
Yearly backup Name and retentions : db_yearly_bkp_2010,db_yearly_bkp_2011,db_yearly_bkp_2012
All backups will be full online. We have to store backups in local disk.
We have created backup locations on disk as below.
Daily : /orabackup/daily
Weekly : /orabackup/weekly
Monthly: /orabackup/monthly
Yearly : /orabackup/yearly
So is it possible to take such backups in RMAN without using any third party software ? If possible then please provide me such script.
With Regards,
Khokhar Murtuja S
Database AdministratorHi,
RMAN will make you have only one retention.
You can have more kind of retention using the option "keep until" in your backup command.
It'll certainly do what you need.
Greets,
Loïc -
Database Refresh From ASM Filesystem to Local Filesystem
Hi ALL,
I am performing a database refresh from production server to a demo server. Our Production database is 11.2.0.1 and it is using ASM filesystem to keep the data, redo and other files in ASM disks.
On the other hand demo server is not having ASM, all the database files are stored in a local filesytem.
I have taken a fresh backup of our production database, but I am not sure to perform the restore part as the demo server is not having ASM.
Can anyone suggest me how to perform this, I mean datafile restore from ASM to local filesystem.
Any usefull links will be helpful.
Regards,
ArijitHello,
You can restore the backup of your Production database which is using ASM to your demo server (using file system).
Make sure that the control_files parameter in the pfile/spfile is pointing to the file system location where you want to have contol files located on the demo server.
Next, before you use the restore command to restore the database, provide the location of the datafile where you need to restore using the "set newname" clause.
run
set newname for datafile 1 to '<file-system-location-on-demo-server>';
set newname for datafile 2 to '<file-system-location-on-demo-server>';
restore database;
switch datafile all;
recover database;
}
Maybe you are looking for
-
How to submit a batch compare job using a unix script and cron?
I understand I can setup a unix script to be used to schedule a database compare job. I'm not sure how to get past the popup log in window tho... When I use the command line and include the -id<myid> the OMS login window pops up requesting login pass
-
I Am unable to do updates or download anything since updating to iOS 7.1. Can anyone help?
-
Move content db within same farm but now wrong schema so can't mount!
This is weird. SharePoint 2010, SP1 (yes, I know, rather out of date). I moved a content db to a different drive on our SQL server. Removed it in SP, detached in SQL Server, moved the mdf and ldf file, and re-attached in SQL server. But when I try
-
I want to restore ipod (1st Clickwheel) but itunes says im not online
I want to restore ipod (1st Clickwheel) but itunes says im not online so it does not let me do it, any suggestions..?
-
Goto the update rules of the cube 0PP_C05 and click on any of the Key Figure -> Time Characteristic tab -> For FISCPER select the calenday day info-object and make sure the "automatic time conversion" option is checked. where i am found & check "auto