Turn CONTROLFILE AUTOBACKUP ON;
Hi everyone,
I turned cotrolfile autobackup on... but I cannot find any controlfile backup format like '%F.bck' in "/backup/db/backup/RMAN"?
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/db/backup/RMAN/%F.bck';
Please advice,
Amy
Have you run a BACKUP DATABASE since after setting the controlfile autobackup on ?
The autobackup is created when a database backup is executed or a change to the database physical structure is executed (eg additional of a tablespace and/or datafile).
Similar Messages
-
Regarding Controlfile Autobackups
Hi Expert !!
From Oracle Documentation (Oracle Database Backup and Recovery Advanced Users's Guide 10g Release 2):
Page: 2-29
"By default, control file autobackups are turned off, and no control file autobackups are performed. If CONFIGURE CONTROLFILE AUTOBACKUP is ON, then RMAN
automatically backs up the control file and the current server parameter file (if used to start up the database) in one of two circumstances: when a successful backup must be recorded in the RMAN repository, and when a structural change to the database affects the contents of the control file which therefore must be backed up."
Page 2-30
"The control file is also automatically backed up after database structural changes such as adding a new tablespace, altering the state of a tablespace or datafile (for example, bringing it online), adding a new online redo log, renaming a file, adding a new redo thread, and so on. Losing this information would compromise your ability to recover the database. This backup is performed by the server process itself, rather than one of the RMAN channels. This type of autobackup, unlike autobackups that occur after a successful backup, is always created on disk."
I have configured my RMAN enviroment as below (truncated the output to only non-default values for clarity):
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/u10/test%F';According to the documentation, when I create or drop a tablespace, server process should backup controlfile to "/u10" location but its not happening in my case. Neither a backup piece is created in $ORACLE_HOME/dbs location.
Could anybody tell me where am I making a mistake?
Thanks once againThanks for the reply.
This kind of autobackup is done successfully?No, I am not doing any RMAN backup. I am simply creating a new tablespace (from SQL*Plus), so the server process should automatically backup my controlfile.
Am I not correct? -
What's the difference between "controlfile autobackup" and "snapshot contro
Hi All,
What's the difference between "controlfile autobackup" and "snapshot controlfile" in RMAN configure ? Both are controlfile backups, what the difference between the controlfiles they backup ? Why there are two of these options ?
thanksRMAN creates a control file snapshot to perform catalog resync operations. Control file autobackup will automatically create a backup of the control file whenever there are database structure changes.
-
No controlfile autobackups in 10gR2. Bug?
I'm using 10.2.0.4 enterprise edition and have no flash recovery area set up. In rman I have controlfile autobackup = on but I am not getting any controlfile backups when I make structural changes to the database.
Here's a snipped version of my RMAN config.
<tt>
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
</tt>
Now I go to sqlplus to show that there is no FRA, and create a tablespace.
<tt>
SQL> show parameter recov
NAME TYPE VALUE
db_recovery_file_dest string
db_recovery_file_dest_size big integer 0
SQL> create tablespace dummy datafile '/export/home/oracle/dummy01.dbf' size 2m;
Tablespace created.
</tt>
Now I check the dbs directory for backup controlfiles. None are created
<tt>
$ pwd
/oracle2/app/oracle/product/10.2.0.4/dbs
$ ls -l c-*
c-*: No such file or directory
So what am I doing wrong? This works fine in 10.1 and 9.2. Did something change in 10.2? Do I have to create a flash recovery area for controlfile autobackups to work in 10.2?Did you try to test it ?
[oracle@lx01 ~]$ rman target /
Recovery Manager: Release 10.2.0.4.0 - Production on Fri Mar 25 21:46:47 2011
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: DB102 (DBID=831971560)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/tmp/%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
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 '/u01/app/oracle/product/10.2.0/EE/dbs/snapcf_DB102.f'; # default
RMAN> exit
Recovery Manager complete.
[oracle@lx01 ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4.0 - Production on Fri Mar 25 21:39:15 2011
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> host ls -al /tmp
total 36
drwxrwxrwt 6 root root 4096 Mar 25 21:41 .
drwxr-xr-x 30 root root 4096 Mar 25 21:14 ..
drwxrwxrwt 2 root root 4096 Mar 25 21:16 .font-unix
drwxrwxrwt 2 root root 4096 Mar 25 21:14 .ICE-unix
drwx------ 2 root root 4096 May 24 2010 keyring-RqLT3M
drwx------ 2 root root 4096 Jan 20 2010 keyring-uxZ8jN
srwxr-xr-x 1 root root 0 May 24 2010 mapping-root
-rw-r--r-- 1 oracle oinstall 0 Mar 7 10:10 tes
-rwsr-s--x 1 oracle oinstall 0 Mar 7 10:14 test
SQL> create tablespace test datafile '/tmp/test.dbf' size 10m;
Tablespace created.
SQL> host ls -al /tmp
total 17256
drwxrwxrwt 6 root root 4096 Mar 25 21:45 .
drwxr-xr-x 30 root root 4096 Mar 25 21:14 ..
-rw-r----- 1 oracle oinstall 7110656 Mar 25 21:45 c-831971560-20110325-02
drwxrwxrwt 2 root root 4096 Mar 25 21:16 .font-unix
drwxrwxrwt 2 root root 4096 Mar 25 21:14 .ICE-unix
drwx------ 2 root root 4096 May 24 2010 keyring-RqLT3M
drwx------ 2 root root 4096 Jan 20 2010 keyring-uxZ8jN
srwxr-xr-x 1 root root 0 May 24 2010 mapping-root
-rw-r--r-- 1 oracle oinstall 0 Mar 7 10:10 tes
-rwsr-s--x 1 oracle oinstall 0 Mar 7 10:14 test
-rw-r----- 1 oracle oinstall 10493952 Mar 25 21:45 test.dbf
SQL>and in instance alert log you have:
[oracle@lx01 ~]$ tail -f /u01/app/oracle/admin/DB102/bdump/alert_DB102.log
Starting background process QMNC
Completed: alter database open
QMNC started with pid=18, OS id=6198
Fri Mar 25 21:45:29 2011
create tablespace test datafile '/tmp/test.dbf' size 10m
Fri Mar 25 21:45:30 2011
Starting control autobackup
Control autobackup written to DISK device
handle '/tmp/c-831971560-20110325-02'
Completed: create tablespace test datafile '/tmp/test.dbf' size 10mEdited by: P. Forstmann on 25 mars 2011 21:49 -
Default device type configuration of controlfile autobackup ?
1. configure controlfile autobackup format for device type disk to 'E:\oracle\oradata\oid\bk\%F';
2. backup current controlfile;
rman first use default device type ORA_DISK_1 and backup the file at "E:\ORACLE\ORA92\DATABASE\0AEU5OQL_1_1" (windows 2000)
then backup file at "E:\ORACLE\ORADATA\OID\BK\C-804947643-20030807-00"
when i backup database , rman can backup the controlfile at "E:\ORACLE\ORADATA\OID\BK\"
when i backup controlfile manully , why rman first backup it at the default device ??
thanks:)One more cogent point for auto backup on will always get automized backup whenever you made any physical structural change in yours database ,whenver you make any physical structural changes in yours database it goes to be highlight in control file,auto backup on will take this new highlighted control file backup at the spot,needn't to take control file backup after any structural changes It will be backed up itself in yours FRA (Flash recovery area).
Khurram -
RMAN-06497: controlfile is not current, controlfile autobackup skipped
Hi,
I am doing backup of the standby database. However I encountered error "RMAN-06497: WARNING: controlfile is not current, controlfile autobackup skipped"
Why is the control file not current and backup skipped? Please guide me.
Regards,
Eye GEeHi,
It is backed up.
>
SQL> select controlfile_type from v$database;
CONTROL
STANDBY
SQL> disc
Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> exit
bash-3.00$ rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Fri Aug 20 12:27:19 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: YHASHMI (DBID=1454390871, not open)
RMAN> backup datafile 1 tag "standby_dat1";
Starting backup at 20-AUG-10
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=152 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00001 name=/u/oracle/oradata/dyhashmi/system01.dbf
channel ORA_DISK_1: starting piece 1 at 20-AUG-10
channel ORA_DISK_1: finished piece 1 at 20-AUG-10
piece handle=/u1/flash_recovery_area/DYHASHMI/backupset/2010_08_20/o1_mf_nnndf_STANDBY_DAT1_66w9vbc5_.bkp tag=STANDBY_DAT1 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:25
Finished backup at 20-AUG-10
Starting Control File and SPFILE Autobackup at 20-AUG-10
piece handle=/u1/flash_recovery_area/DYHASHMI/autobackup/2010_08_20/o1_mf_s_727448768_66w9w3qr_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 20-AUG-10
Did you check the standby alert log? -
Dear All,
Please comment the scenario below.
I have the following configuration:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'd:\oracke\backup\%F';
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
Then I perform:
BACKUP DATABASE;
The automatic backup of the controlfile is created after creating the database backup. It's Ok!
BUT!!!
If I run command
REPORT OBSOLETE;
It shows me that recent autobackuo of the control file is obsolete!!! And corespondenly
DELETE OBSOLETE;
delets this controlfile autobackup. It seems wrong for me or I am missing something!
Since if configure autobackup controlfile is on, BACKUP DATABASE as default does not perform controlfile backup, then if I run DELETE OBSOLETE after perfoming fresh backup to purge unnecessary backups and to manage disk space and immeadiatly after this real controlfile crashes, I won't be able to recover.
Thank you in advance for any explanation why recent controlfile autobackup is reported is obsolete.
RegardsDear Artem,
Well there surely seems to be a problem with Oracle 9i R2 and the Rention Policy based on Recovery WIndow. As far as 9i R1 was concerned I have never had this problem.
But now in 9i R2 just delete obsolete and COFIGURE the parameter again for Retention policy, it works fine as it should and does not mark the backup as obsolete!!!!! -
Meaning of 'controlfile autobackup on' in rman ?
Hello,
i wanted to ask whats the use of "controlfile autobackup on" when using rman. The reason why i'm asking is, because even i leave the default setting "off", during executing "backup database" rman writes on the screen that it's including the controlfile in the backup.
so whats the advantage of using the "autobackup on" setting ?
kind regardsOne more cogent point for auto backup on will always get automized backup whenever you made any physical structural change in yours database ,whenver you make any physical structural changes in yours database it goes to be highlight in control file,auto backup on will take this new highlighted control file backup at the spot,needn't to take control file backup after any structural changes It will be backed up itself in yours FRA (Flash recovery area).
Khurram -
Configure controlfile autobackup
Hi.
Trying to sort an RMAN issue for a local company and found that someone has set configure controlfile autobackup format for device type disk to 'D:\stupid_path\CF_%F' no kidding; no wonder these guys are having issues. How do I get it back to it's default value, or find out what the default value was.
Rob.
Edited by: Rob,B on Oct 14, 2011 2:21 PM
Edited by: Rob,B on Oct 14, 2011 2:29 PMSorted it
configure controlfile autobackup format for device type disk clear;
Now to have a quiet word in someone's ear before I chop his fingers off!
Rob. -
RMAN controlfile autobackup to tape
Hi,
How can i configure controlfile autobackup to tape ,
we have tivoli DP for oracle.
I have configured as below, but still disk is getting allocated.
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE 'SBT_TAPE' TO '%F';
Thanks,
Kumar.Hi,
Try with this
CONFIGURE DEFAULT DEVICE TYPE TO SBT; -
when we configure rman controlfiel autobackup on
then whenever any structural change is there , control file's backup is taken automatically...
but can you please tell me that after how much time this file is backed up and what are the parameters to change the time of backup...920273 wrote:
when we configure rman controlfiel autobackup on
then whenever any structural change is there , control file's backup is taken automatically...
but can you please tell me that after how much time this file is backed up and what are the parameters to change the time of backup... I got to know from that from 11gR2 creation of automatic controlfile backup is deferred as compared to previous releases. This is to increase performance.
So from 11gR2 onwards whenever there are multiple structure changes only then (after few minutes) controlfie autoback will take place. Unless like in previous release you had every controlfile backup created after every DDL command. But in 11gR2 its not. MUltiple DDL are batched and only 1 confile backup is created after few minutes.
This is also possible then no information is written to alert.log for autoback file, but you have to check SID__m000_<OS_PID>.trc file after you made several structre changes to 11gR2 to make sure backup of confile took place
Further ->RMAN CONTROLFILE AUTOBACKUP NOT CREATED DURING DB STRUCTURE CHANGE [ID 1068182.1] -
Duplicating controlfile autobackup
hello
i can use following command in RMAN for duplicating backup set
BACKUP DEVICE TYPE DISK COPIES 2 DATAFILE 7 FORMAT '/tmp/%U','/oradata/%U'
but how i can duplicate controlfile autobackup?
thanksAutobackup of controlfiles are never multiplexed.
-
Oracle 10g express edition recovery catalog
whether oracle 10g express edition spoort recovery catalog?
Yes you can; the answer is in the manual.
>
In general, the rules of RMAN compatibility are as follows:
<li>You can create 8.X or 9.X RMAN catalog schema in any Oracle database release 8.1.X (or higher) and Release 10g RMAN catalog schema in any Oracle database release 9.0.1 (or higher).</li>
<li>The recovery catalog schema version must be greater than or equal to the RMAN client version.</li>
<li>Ideally, the versions of the RMAN client and the target database should be the same (although there are other legal combinations, listed in Table B-1).</li>
<li>While backing up a Release 10g database using the 9.X RMAN client, you cannot include a controlfile that was created using compatible=10.0.0 in a datafile backupset. The workaround is to turn controlfile autobackup ON.</li>
>
http://download.oracle.com/docs/cd/B12037_01/server.101/b10770/compat.htm
http://download.oracle.com/docs/cd/B25329_01/doc/admin.102/b25107/backrest.htm#i1004902
XE questions are best answered here {forum:id=251}
Regards,
Phiri
Edited by: phiri on 02-Apr-2010 01:36 -
Restore controlfile from tape backup without autobackup setting on
I am testing a scenraio of restoring control file if we loose all control files.
My RMAN settings for CONTROLFILE AUTOBACKUP is OFF. But, I have taken a backup of controlfile using 'BACKUP CURRENT CONTROL FILE' .
When I tried to restore control file. I am receiving following error:
RMAN> run {
2> allocate channel c101 type sbt_tape;
3> restore controlfile ;
4> }
allocated channel: c101
channel c101: sid=153 devtype=SBT_TAPE
channel c101: VERITAS NetBackup for Oracle - Release 6.0 (2006110304)
Starting restore at 24-MAY-2007 13:44:59
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/24/2007 13:44:59
RMAN-06563: control file or SPFILE must be restored using FROM AUTOBACKUP
My question is, How can I restore control file from tape backup without CONTROLFILE AUTOBACKUP setting ON.
It sounds like, There is no way we can restore control file from tape backup if you've not set the CONTROLFILE AUTOBACKUP is ON.
Please adviceWhen all controlfiles are lost and a recovery catalog is NOT used, RMAN has no information , where to find the controlfile backup. It's not enough to specify the channel, such a channel could hold many different backups from many different databases. You have tell , which database and which backupset. Modify your run block:
SET DBID <DBID of the database,for which you want to restore the controlfile>;
RESTORE CONTROLFILE FROM <name_of_backupiece_which_contains_the_controlfile backup>';
Werner -
Recovering controlfile from autobackup
Hi to everyone,
I am practisisng RMAN backup and recovery in oracle 10g xe . My database is in noarchivelog mode. And I want to recover from loss of controlfile. I am performing following steps:
RMAN> STARTUP
$ mv ~/oradata/XE/control.dbf cc.bak
RMAN>SHUTDOWN ABORT
RMAN>STARTUP NOMOUNT
RMAN> RESTORE CONTROLFILE FROM AUTOBACKUP;
RMAN> ALTER DATABASE MOUNT;
RMAN> RESTORE DATABASE;
RMAN>RECOVER DATABASE NOREDO;
RMAN>ALTER DATABASE open RESETLOGS;
and database recovered successfully. But I read oracle docs that says before restoring controlfile autobackup, we need to set dbid first. How can above steps that I perform also a success.
Edited by: sonidba on Feb 25, 2011 7:46 PMRMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION ON;
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
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 '/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/dbs/snapcf_XE.f'; # default
Maybe you are looking for
-
When I try either to close this "hanging" site/window or to return to the previous page/site, a second, pop-up window appears and asks whether I'm sure that I "want to navigate away from this page"; however, no yes-or-no option/buttons are visible (m
-
I have a MacBook Pro 13 inch and it randomly crashed on me recently while I was looking at a Word document. Here is the log from the console: 7/21/10 7:38:20 PM [0x0-0xf00f].com.google.Chrome[126] [0721/193820:WARNING:/b/slave/chrome-official-mac/bui
-
Access control in workflow tasks
I want to filter which users should have access to a certain workflow task. If looking in the help file there should be some way to filter the users which should be granted access. But this functionality seems to be switched off. Can anybody tell me
-
STACK/GROUP PHOTOS BY LIGHT CONDITION
Is there any method to group/stack the photos by the light condition? I thought something about grouping by histogram similarities... what I want is a way to put together bright photos, and the dark ones... in a way I can just adjust one and sync. TH
-
Please help me! I'm desperate!
I have a ton of homework and a job designing a menu that is dependant on Indesign working for me. All my other adobe programs are working smoothly but Indesign is running incredibly slowly. When I try to move something it takes forever- every little