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 PM
Sorted 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.
Similar Messages
-
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 -
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 -
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,
AmyHave 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). -
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? -
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!!!!! -
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; -
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.
-
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] -
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? -
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 -
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.
-
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 -
Error when I configure snapshot controlfile RMAN
Dear Experts,
I have Oracle 11g R2 DB Primary and Standby in Two Machines
I have Window Server 2008
I am new for RMAN tools
I am doing RMAN configuration on Primary Side
I did OS Maping for one drive on Primary Side
Now I am doing RMAN configuration as below:
configure default device type to disk;
configure device type disk parallelism 4 backup type to backupset;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'Z:\RmanControlFileBackup\cf%F';
configure controlfile autobackup on;
configure controlfile autobackup format for device type disk to '+FRA';
configure controlfile autobackup format for device type sbt to 'backup_%d_controlfile_%F';
configure retention policy to redundancy 4;
configure archivelog deletion policy to NONE;
configure snapshot controlfile name to 'Z:\RMANCONTROLFILEBACKUP\SNAPSHOT_EPPROD1_CF.CTL';
Then I get the following error.... I don't know how can I clear it I did my search on line I found this link
http://pavelermakov.wordpress.com/2011/11/08/ora-01580-error-creating-control-backup-file/
EXECUTE SYS.DBMS_BACKUP_RESTORE.CFILESETSNAPSHOTNAME('/u01/app/oracle/product/11.2/db/dbs/snapcf_db1.f');
I could not implemented on my setup becuase I don't have file snapcf_db1.f ... Please any help will be appreciated.
any body have any solution .
I need to clear last configureation ...configure snapshot controlfile name to 'Z:\RMANCONTROLFILEBACKUP\SNAPSHOT_EPPROD1_CF.CTL'; which make this error.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of configure command at 12/19/2013 08:44:57
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 12/19/2013 08:44:57
ORA-01580: error creating control backup file Z:\RMANCONTROLFILEBACKUP\SNAPSHOT_EPPROD1_CF.CTL
ORA-27040: file create error, unable to create file
OSD-04002: unable to open file
O/S-Error: (OS 3) The system cannot find the path specified.Hi,
>RMAN-03002: failure of configure command at 12/19/2013 08:44:57
>RMAN-03014: implicit resync of recovery catalog failed
>RMAN-03009: failure of full resync command on default channel at 12/19/2013 08:44:57
"DO NOT CONNECT TO THE CATALOG "
Thank you -
Why can't I restore the controlfile from autobackup?
Running 10GR2
Something that I have always had a problem with is the restore controlfile from autobackup command. RMAN is configured to run autobackyps of the controlfiles.
I have setup a restore test and moved the backups over to the test machine. I have restored the spfile and modified the necessary init parameters. When I startup nomount and try to restore the controlfile from autobackup RMAN says it cannot find an autobackup controlfile.
I have always gotten around this by explicitly naming the controlfile to restore but am wondering what is possibly incorrect in my config such that RMAN doesn't know where to find the controlfile autbackups.
ThanksDo you have such a configuration?
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
You must not specify any other format,only '%F'.
FRA structure should like <db_recovery_file_dest>/<SID>/AUTOBACKUP/<date>/<controlfile_backup>. Only when both is true, RMAN will find the autobackup, otherwise it searches in the OS dependent default location.
Werner
Maybe you are looking for
-
My line doesn't work with BT HH3 but does with BT ...
Hi folks, To cut a long story short, I've had a selection of BT HomeHubs over the years and my HH2 packed up 3-4 months ago, not sure what went wrong but the orange light just kept flashing and it would not connect, despite resets and reboots. I thin
-
Update to Mac OS X 10.4.6
I've tried using the automatic updater and the standalone and everytime I try to update it will get as far as 16% writing files and then stops due to errors. How do I get around this to update my software? I'm new to Mac so not very knowledgeable. Pl
-
Acrobat 9.1 standard loupe tool
I have a user whose loupe tool is misbehaving. She chooses the loupe tool, and when she clicks on her document, it creates the blue box but never pops up the loupe dialog box with the scroller. Is this a config I am missing somewhere? Thanks!
-
Hi, How to change the vendor Name in SAP after saving the PO. Please help me on this. Regards S.Prasad
-
Problem meet when call exe in java.
hi all, in my java project, i call an external exe . now the problem is that sometimes the exe is not fully finished. How could i confirm that the exe is finished before i start to use the output of this exe. i use following code to call the external