Snapshot controlfile
Hi folks,
what is the difference between snapshot control file and backup control file ?
Thanks & regards.
Hi,,
For example:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ‘/oracle/ora10g/dbs/snapcf_test11g.f’
RMAN needs a snapshot control file when resynchronizing with the recovery catalog or taking a backup of the current control file. The default location is platform specific and depends on the Oracle home of each target database. In Linux environment it locates in $ORACLE_HOME/dbs directory. You can change its location with this configuration.
For example:
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘%F’
By default, RMAN automatically names control file backups and saves them into FRA. To configure RMAN to write control file backups to the specific directory: %F will generate a unique filename likes c-‘IIIIIIIIII- YYYYMMDD-QQ’ . Here ‘IIIIIIIIII’ is DBID, ‘YYYYMMDD’ is date and ‘QQ’ is hexadecimal id. You can also backup controlfile to specific location.
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘ora_home/oradata/cf_%F’;
Thank you
Similar Messages
-
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 -
Determine location of snapshot controlfile
Hi,
Do you know how to determine the location of the snapshot controlfile, whatever your rman version is?
In 9i and 10g, I can do RMAN> show snapshot controlfile name;I wonder if this is possible in RMAN8i, since the show command does not exist.
I found out the X$ table where it is stored, x$kccfn and an internal query done by Oracle, select fnnam from x$kccdi di ,x$kccfn fn where ((di.disfp=fn.fnnum and bitand(di.diflg,8192)=8192) and fn.fntyp=0);, which provides the correct answer.
But it is not too much easy :-( Is there a recommended way to check it in 8i?
Regards + Thanks
Laurent
Regestmaybe dbms_backup_restore.GETPARM(0) ...
-
Doubt regarding internal activity about snapshot controlfile
We knows that to maintain Read consistency, RMAN create a duplicate read consistent version of current control file known as snapshot control file. Now from docs, it has been mentioned that “RMAN needs a snapshot control file only when resynchronizing with the recovery catalog or when making a backup of the current control file”. I have a RMAN backup script where after allocating channels it is first taking whole database backup and then archivelog backup is taken once whole database backup is complete. In the end, it is taking current control file backup, now two doubts here:
1) We know that at the start of backup rman needs to resysnc recovery catalog with current control file - so a snapshot control is created before initiating full backup of the database?
2) Now in the end once when the whole database backup & archivelog backup is complete , while taking current controlfile backup as per written script, does it again create a new snapshot controlfile or just the snapshot controlfile is accessed and does the snapshot controlfile remains in locked state(read only) during entire backup operation ?
Any explanation behind these internals will be highly appreciated.
Edited by: 918868 on May 14, 2013 9:27 AMHi,
1) We know that at the start of backup rman needs to resysnc recovery catalog with current control file - so a snapshot control is created before initiating full backup of the database?
I think snapshot controlfile is not created before initiating the backup because RMAN synchronize the recovery catalog with controlfile at the end of backup operation so that latest backup information also gets update to the recovery catalog.
2) Now in the end once when the whole database backup & archivelog backup is complete , while taking current controlfile backup as per written script, does it again create a new snapshot controlfile or just the snapshot controlfile is accessed and does the snapshot controlfile remains in locked state(read only) during entire backup operation ?
Yes snapshot controlfile is created while taking controlfile backup.
Thanks -
Change Snapshot controlfile name
We are using RAC.
When I try to chage the location of snapshot controlfile location,connecting to both catalog and target database(as sys) to a locaton shared by all the instance using
RMAN> configure snapshot controlfile name to '/oracle/test_flash/ASYST/backupset/p1/snapcf_ASYST.f';
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of configure command at 09/01/2013 02:23:12
RMAN-03014: implicit resync of recovery catalog failed
RMAN-03009: failure of full resync command on default channel at 09/01/2013 02:23:12
ORA-01580: error creating control backup file /f37back/oradata/flash_recovery_area/EDBT/backupset/p1/snapcf_EDBT.f
ORA-27040: file create error, unable to create file
Linux-x86_64 Error: 2: No such file or directory
But when I connect to the target database as sys and execute the below, the location of the controlfile chaged
SYS@ASYST1 > EXECUTE SYS.DBMS_BACKUP_RESTORE.CFILESETSNAPSHOTNAME('/oracle/test_flash/ASYST/backupset/p1/snapcf_ASYST.f');
PL/SQL procedure successfully completed.
What is the difference between the two ?It seems that the *supported* method of the RMAN command line attempts to create the snapshot controlfile while the *unsupported* method of the PLSQL API doesn't attempt to do so.
Which would you rather use, one that is supported or one that is not documented, not supported ?
Hemant K Chitale -
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.
-
Controlfile on ASM performance question
Seeing Controlfile Enqueue performance spikes, consideration are to move control file to separater diskgroup(need outage) ? or add some disk(from different luns,( i prefer this approach) in the same disk group , seems like slow disk is casing this issue...
2nd question :can snapshot controlfile be placed on ASM storage?Following points may help:
- Separating the control file to another diskgroup may make things even worse in case that the total number of disks are insufficient in the new disk group.
- Those control file contention issues are usually nothing to do with the storage throughput you have but the number of operations requiring different levels of exclusion on the control files.
- Since multiple copies of controlfiles are updated concurrently a possible, sometimes, problem is that the secondary copy of controlfile is slower than the other. Please check that this is not the issue (different tiers of storage may cause such problems)
Regards,
Husnu Sensoy -
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 -
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 -
Tape backups "stuck" in controlfile
At one point, there was a tape backup device configured and working. This tape device has since been removed, but there are still backups that were done to tape that are in the controlfile. These backups are quite old and rman knows they are obsolete, but it can't delete them, since the tape device (and channel) no longer exists.
I have tried many ways of trying to delete them, but I consistently end up with the same result of:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 09/11/2007 13:10:06
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
I am able to allocate a channel type of disk, but not sbt because it is not there, so I am having trouble getting rid of these entries. Any help is appreciated. Here is my configuration:
RMAN> show all;
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF;
CONFIGURE DEFAULT DEVICE TYPE TO DISK;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK BACKUP TYPE TO COMPRESSED BACKUPSET PARALLELISM 4;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT '/backup1/oracle/%U';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT '/backup1/oracle/%U';
CONFIGURE CHANNEL 3 DEVICE TYPE DISK FORMAT '/backup1/oracle/%U';
CONFIGURE CHANNEL 4 DEVICE TYPE DISK FORMAT '/backup1/oracle/%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/app/oracle/product/10.2.0.2/dbs/snapcf_test1.f'; # defaultI was encountering the same:
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=149 devtype=DISK
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
Backup Set 1385 17-DEC-09
Backup Piece 1385 17-DEC-09 BE_bcl15skg_1_1
Backup Set 1386 17-DEC-09
Backup Piece 1386 17-DEC-09 BE_bdl15sog_1_1
Backup Set 1387 17-DEC-09
Backup Piece 1387 17-DEC-09 BE_bel15t6o_1_1
Backup Set 1570 08-FEB-10
Backup Piece 1570 08-FEB-10 BE_h5l5hl8f_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 02/18/2010 16:12:29
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
RMAN> list backup summary;
List of Backups
===============
Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
1387 B 0 U SBT_TAPE 17-DEC-09 1 1 NO TAG20091217T230904
1390 B A U SBT_TAPE 18-DEC-09 1 1 NO TAG20091218T230709
1392 B 0 U SBT_TAPE 18-DEC-09 1 1 NO TAG20091218T231024
1393 B A U SBT_TAPE 18-DEC-09 1 1 NO TAG20091218T231803
1395 B A U SBT_TAPE 21-DEC-09 1 1 NO TAG20091221T230506
1397 B 0 U SBT_TAPE 21-DEC-09 1 1 NO TAG20091221T230700
1398 B A U SBT_TAPE 21-DEC-09 1 1 NO TAG20091221T231439
1564 B A U SBT_TAPE 05-FEB-10 1 1 NO TAG20100205T232055
1565 B F U SBT_TAPE 05-FEB-10 1 1 NO TAG20100205T232057
1566 B A U SBT_TAPE 08-FEB-10 1 1 NO TAG20100208T230856
1569 B A U SBT_TAPE 08-FEB-10 1 1 NO TAG20100208T231941
1570 B F U SBT_TAPE 08-FEB-10 1 1 NO TAG20100208T231943
RMAN> change backuppiece tag 'TAG20091217T230904' uncatalog;
uncataloged backuppiece
backup piece handle=BE_bel15t6o_1_1 recid=1387 stamp=705885402
uncataloged backuppiece
backup piece handle=BE_bdl15sog_1_1 recid=1386 stamp=705884946
Uncataloged 2 objects
RMAN> change backuppiece tag 'TAG20091218T230709' uncatalog;
uncataloged backuppiece
backup piece handle=BE_bhl18h1g_1_1 recid=1390 stamp=705971249
Uncataloged 1 objects
RMAN> change backuppiece tag 'TAG20100208T231943' uncatalog;
uncataloged backuppiece
backup piece handle=BE_h5l5hl8f_1_1 recid=1570 stamp=710464784
Uncataloged 1 objects
RMAN> list backup summary;
RMAN> list backup;
RMAN> list backupset;
RMAN> delete obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
Backup Set 1385 17-DEC-09
Backup Piece 1385 17-DEC-09 BE_bcl15skg_1_1
Backup Set 1388 17-DEC-09
Backup Piece 1388 17-DEC-09 BE_bfl15t70_1_1
Backup Set 1389 17-DEC-09
Backup Piece 1389 17-DEC-09 BE_bgl15t75_1_1
Backup Set 1394 18-DEC-09
Backup Piece 1394 18-DEC-09 BE_bll18hle_1_1
Backup Set 1399 21-DEC-09
Backup Piece 1399 21-DEC-09 BE_bql1gej1_1_1
Backup Set 1404 22-DEC-09
Backup Piece 1404 22-DEC-09 BE_bvl1j2ra_1_1
Backup Set 1409 23-DEC-09
Backup Piece 1409 23-DEC-09 BE_c4l1lnak_1_1
Backup Set 1414 24-DEC-09
Backup Piece 1414 24-DEC-09 BE_c9l1obqf_1_1
Backup Set 1419 25-DEC-09
Backup Piece 1419 25-DEC-09 BE_cel1r0a2_1_1
Backup Set 1424 28-DEC-09
Backup Piece 1424 28-DEC-09 BE_cjl22t64_1_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of delete command at 02/18/2010 16:15:05
RMAN-06091: no channel allocated for maintenance (of an appropriate type)
RMAN> change backuppiece 'BE_bcl15skg_1_1' unavailable;
changed backup piece unavailable
backup piece handle=BE_bcl15skg_1_1 recid=1385 stamp=705884819
Changed 1 objects to UNAVAILABLE status
RMAN> change backuppiece 'BE_bcl15skg_1_1' unavailable;
changed backup piece unavailable
backup piece handle=BE_bcl15skg_1_1 recid=1385 stamp=705884819
Changed 1 objects to UNAVAILABLE status
RMAN> change backuppiece 'BE_bcl15skg_1_1' uncatalog;
uncataloged backuppiece
backup piece handle=BE_bcl15skg_1_1 recid=1385 stamp=705884819
Uncataloged 1 objects
RMAN> change backuppiece 'BE_bfl15t70_1_1' uncatalog;
uncataloged backuppiece
backup piece handle=BE_bfl15t70_1_1 recid=1388 stamp=705885409
Uncataloged 1 objects
RMAN> delete obsolete ;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
no obsolete backups found
FINALLY FIXED!!! -
Restore controlfile without RMAN Command
Hii..!! RMAN Experts ..
I have a RMAN Backup of my production database , Accidentally controlfile, datafiles, and redolog filies are lost .
Important thing is : I want to Restore Controlfile Without RMAN Commands ...
Is this possible,? If Yes How ??
Please get me out of this Doubt., & provide me detail steps
Will be very much thankful to you...937382 wrote:
Hii..!! RMAN Experts ..
I have a RMAN Backup of my production database , Accidentally controlfile, datafiles, and redolog filies are lost .
Important thing is : I want to Restore Controlfile Without RMAN Commands ...
Is this possible,? If Yes How ??
Please get me out of this Doubt., & provide me detail steps
Will be very much thankful to you...In an emergency situation, you can try using the SNAPSHOT CONTROLFILE.
Oracle is very clear on this point and says that this file should not be used for any purpose, but breaking this rule, we can have success and bring a consistent controlfile.
The snapshot control file is a copy of a database control file created in an operating system-specific location by RMAN. RMAN creates the snapshot control file so that it has a consistent version of a control file to use when either resynchronizing the recovery catalog or backing up the control file.
The Default Location of SNAPSHOT CONTROLFILE is $ORACLE_HOME/dbs/snapcf_<DB_NAME>.f
If we recently used RMAN most recent controlfile will be my SNAPSHOT CONTROLFILE.
See this example:
SQL> create pfile='/home/oracle/spfile.txt' from spfile;
SQL> !
oracle@aix:/home/oracle> cp /u01/app/oracle/product/11.2.0/dbhome_11203/dbs/snapcf_dbtst.f /home/oracle/control.ora
oracle@aix:/home/oracle> vi spfile.txt
"spfile.txt" 27 lines, 957 characters
*.control_files='/home/oracle/control.ora' ## Change this line
SQL> startup mount pfile ='/home/oracle/spfile.txt'
ORACLE instance started.
Total System Global Area 768294912 bytes
Fixed Size 2225448 bytes
Variable Size 293604056 bytes
Database Buffers 465567744 bytes
Redo Buffers 6897664 bytes
Database mounted.
SQL> alter database open;
alter database open
ERROR at line 1:
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
### We can open reseting log if you have all datafiles restored.
### Or you can use RMAN command to restore your database from Controlfile Catalog.
### Also you can generate a command to create a new controlfile
SQL> alter database backup controlfile to trace;Regards,
Levi Pereira -
Need of configure snapshot ctl file ???
why i need to Configure snapshot controlfile ??
this is a temporary file used by rman for read consistenacy.
<As Per oracle DOC>
RMAN needs to resynchronize from a read-consistent version of the control file, it creates a temporary snapshot control file.
Thanks
Kuljeet Pal Singh -
Restoring Control file from snapshot
Hi,
As in RMAN the following configuration will create snapshot of control file.
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'product/10.2.0/dbs/snapcf_PROD.f'; # default
My question is how to restore control file from this snapshot to another location.
Regards
KrishnaCopy RMAN backup files including archive log backup files to the target server
Copy the SNAPSHOT CONTROL FILE or backed up control file from source server to target server.
Source Server:
RMAN> connect target /;
connected to target database: HRDMO (DBID=209403493034)
RMAN> show SNAPSHOT CONTROLFILE NAME;
using target database control file instead of recovery catalog
RMAN configuration parameters are:
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/opt/oracle/10g/dbs/snapcf_HRDMO.f'; # default
Target Server:
Export ORACLE_SID=HRDMO
RMAN
RMAN>startup nomount;
RMAN> set DBID=209403493034;
executing command: SET DBID
RMAN> restore controlfile from '/opt/oracle/standby/dbs/snapcf_crmprod.f'; # The location where you have it in target srvr.
RMAN>alter database mount;
RMAN> run
2> {
3> sql 'alter session set NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"';
4> set until time '2008-01-31 01:00:00';
5> restore database;
6> recover database;
7> }
RMAN>alter database open resetlogs;
You have the copy of instance in the target server.
Edited by: rajeysh on Jun 23, 2010 3:34 PM -
Unable to restore and recover my Database from RMAN Backup
Dear All,
Iam practicing RMAN in Windows environment.
My configurations are
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION ON; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON; # default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'F:\Backup\%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 'E:\ORACLE\DATABASE\SNCFORCL.ORA';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT 'F:\Backup\%U.bak';
Then i took the RMAN backup, now iam shutdown my DB and removed one logfile..
then i tried to startup the DB but it is saying
ORA-00313: open failed for members of log group 3 of thread 1
ORA-00312: online log 3 thread 1: 'E:\ORADATA\ORCL\REDO03.LOG'
So i tried to restore the Database with my rman backup
RMAN> restore database;
But i am unable to restore my logfile in the Datafiles location where as all other datafiles are restored but redo logfiles are not restored.
So, i am unable to recover my DB
Please tell me whether i am doing any mistake, what is the solution for my problem.
Thanks in advance
MahiAll you restored was your datafiles.
Now issue recover database and that will apply the archive logs.
This is in the oracle documentation.
"You must restore backups of these archived logs for recovery to proceed. You can restore either to the default or nondefault location. If you do not have backups, then you must performing incomplete recovery up to an SCN before the first missing redo log and open RESETLOGS."
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/osrecvry.htm
In this case after issuing restore database in RMAN, then issue this.
"Recover database"
It will then be an incomplete recovery. They should have been multiplexed. Did you restore your controlfile with this backup? You may have to issue an "Alter database open resetlogs;" -
I am having issue with RMAN
I have Oracle 11gR2 database on HP-UX. when I issue any command in RMAN prompt, its displaying the information but it's not returning to RMAN prompt, I have to hit CTRL+C to come out. But I have 2 more database on the same home, and I don't have this problem on that database.
oracle@hublhp10:/home/oracle$ rman target /
Recovery Manager: Release 11.2.0.1.0 - Production on Mon Mar 19 15:00:53 2012
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: IMGPROD (DBID=2867365220)
RMAN> show all;
using target database control file instead of recovery catalog
RMAN configuration parameters for database with db_unique_name IMGPROD 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 '/imgback/RMAN/cf-IMGPROD-%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 COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/imgback/RMAN/snapcf_imgprod.f';
RMAN>
RMAN> report obsolete;
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
Archive Log 1 19-MAR-12 /imgarch/ORACLE/imgprod/al_imgprod_1_283_777982948.dbfI traced the session, see the following
WAIT #2: nam='control file sequential read' ela= 143 file#=0 block#=17 blocks=1 obj#=-1 tim=11750515395399
WAIT #2: nam='control file sequential read' ela= 143 file#=0 block#=1 blocks=1 obj#=-1 tim=11750515395853
WAIT #2: nam='control file sequential read' ela= 144 file#=0 block#=15 blocks=1 obj#=-1 tim=11750515396024
WAIT #2: nam='control file sequential read' ela= 145 file#=0 block#=17 blocks=1 obj#=-1 tim=11750515396192
WAIT #2: nam='control file sequential read' ela= 206 file#=0 block#=1 blocks=1 obj#=-1 tim=11750515396719
WAIT #2: nam='control file sequential read' ela= 142 file#=0 block#=15 blocks=1 obj#=-1 tim=11750515396909
WAIT #2: nam='control file sequential read' ela= 168 file#=0 block#=17 blocks=1 obj#=-1 tim=11750515397102
FETCH #2:c=0,e=16905,p=0,cr=0,cu=0,mis=0,r=1,dep=0,og=1,plh=818693323,tim=11750515397527
WAIT #2: nam='SQL*Net message from client' ela= 450 driver id=1650815232 #bytes=1 p3=0 obj#=-1 tim=11750515398178
CLOSE #2:c=0,e=27,dep=0,type=3,tim=11750515398262
=====================
PARSING IN CURSOR #4 len=205 dep=0 uid=0 oct=3 lid=0 tim=11750515399507 hv=1796820951 ad='c0000004fe449f88' sqlid='gq4u3dppjkmyr'
select /*+ rule */ round(sum(MBYTES_PROCESSED)), round(sum(INPUT_BYTES)), round(sum(OUTPUT_BYTES)) from V$RMAN_STATUS START WITH RECID = :row_id and STAMP = :row_stamp CONNECT BY PRIOR RECID = parent_recid
END OF STMT
PARSE #4:c=0,e=556,p=0,cr=0,cu=0,mis=1,r=0,dep=0,og=1,plh=0,tim=11750515399506
Maybe you are looking for
-
Inventory Report for Statutory
Good Evening Experts, Please help me in writing the query for the following format. Opening Stock In Stock Stock Transfer Goods Issue Closing Stock
-
I sprayed it a year ago i really like the keyboard and i really need it can it be recovered??? My apple wireless keyboard got wet a year ago i sprayed the cleaning spray on it some of the keys are working but some of the keys aren"t working. it got s
-
What is the latest on the EP migration tools?
I am still looking for the tools for migration from EP 6.0 SP2 to the NW version of EP. Someone mentioned earlier they were planned for release on 2/16/2005 but there is nothing on the service marketplace yet. Can anyone provide any info here? Than
-
Hi All, Could you plz tell me, In R/3 also Master data is available. Why we are using MDM( For Master Data ) seperately ? In R/3 Master tables are there (MARA, KNA1, VBAK), Then Why we are Designing seperate Repositories in MDM for store the data ?
-
hi all, curently I'm copying standard SAP form into Z* form then try to modify. Hopefully I face the problem can not add new window in new form. can any body have me how to solve it? regard, Hengky