Recover DBID
Hello All,
I'm in a situation where I have a complete failure of a server and the only means for recovery is using the backups. The big problem that I have is that I didn't make note of the DBID prior to the disaster. Is there anyway to retrieve/recover the DBID based on full backups sets (archive logs, online logs, and autobackups). This is for an XE database.
I also checked the numbering on my autobackups and they do not reflect the DBID as part of the name :(.
Any assistance will be much appreciated.
Thanks!
-Alan
My autobackup filename is: O1_MF_S_608387137_2QCOG252_.BKP and the 608387137 isn't the DBID. The reason I know this is because I have another XE instance running and confirmed that that number doesn't match it's DBID, not 100% sure why.
Unfortunately, I don't have any control files laying around. All I have are the contents of the flash_recovery folder where the backups were dumped.
That is, the ARCHIVELOG, AUTOBACKUP, BACKUPSET and ONLINELOG folders. I did have a copy of the admin folder too for some reason, and I checked the alert log to see if it would be in there but no luck.
Similar Messages
-
Can not recover table from rman backup
For testing I want to recover deleted table from rman backup.
I have make vm of oracle 11g. the following step i have applied but could not recover the table.
rman> backup database ;
On sqlplus create login as scott/tiger
create table scott.emp1(col1 varchar2(10));
insert into emp1(col1) value('Yasir ') ;
commit ;
select * from emp1 ;
it shows me one row successfully.
Now i have login the sys as sysdba
sqlplus> alter system switch logfile ;
after this i have drop the table .
Now to recover the table i have restored database on same vm.
rman>restore database ;
rman> recover database ;
rman> alter database open ;
on sqlplus i have issued
sqlplus> select * from scott.emp1 ;
table or view does not exist.
any help how to recover the deleted table from rman backupHi,
Check this test case
SQL> create table TEST2 as select * from emp;
Table created.
SQL> select count(*) from TEST2;
COUNT(*)
15
SQL> select TO_CHAR(SYSDATE,'DD-MON-YYYY HH24:MI:SS') from dual;
TO_CHAR(SYSDATE,'DD-
10-SEP-2013 10:57:05
SQL> alter system switch logfile;
System altered.
SQL> drop table TEST2 purge;
Table dropped.
SQL> shu immediate
[oracle@vnode MYSHELL]$ rman target /
Recovery Manager: Release 11.2.0.2.0 - Production on Tue Sep 10 10:58:39 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: DDTEST (DBID=1667776968, not open)
RMAN> run{
set until time "to_date('2013 Sep 10 10:57','yyyy mon dd hh24:mi')";
restore database;
recover database;
alter database open resetlogs;
}2> 3> 4> 5> 6>
media recovery complete, elapsed time: 00:00:02
Finished recover at 10-SEP-13
database opened
RMAN> exit
SQL> set lin 200 pages 100
SQL> select count(*) from test2;
COUNT(*)
15
HTH -
How can I recover data from a USERS01.DBF file?
So I had a Hard Drive die and that took out the OS and the Oracle RDBMS Installation (Oracle9i Enterprise Edition, 9.2.0.6.0 on WinXP). Fortunately most of the data in the database (9.5GB worth) was in the USERS01.DBF file which was on another drive and unharmed. I was also able to salvage the CONTROL01.CTL file, but everything else from the database is corrupted and irretrievable.
I've just setup a new machine with the same version of Oracle and I created a brand new database with the same SID as before. I then tried to do:
SQL> alter tablespace users offline temporary;
Tablespace altered.
(then I swapped the USERS01.DBF file with the original one and then tried to recover it)
SQL> recover tablespace users;
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 9: 'F:\ORAHOME\ORADATA\MYDB\USERS01.DBF'
ORA-01122: database file 9 failed verification check
ORA-01110: data file 9: 'F:\ORAHOME\ORADATA\MYDB\USERS01.DBF'
ORA-01206: file is not part of this database - wrong database id
Is it even possible to do what I'm trying to? I had no backup of the USERS01.DBF file, but there should be some way to get at the data that is inside it...
any help or a pointer in the right direction is much appreciated.
thanks
-jeffWhilst this isn't a direct answer, running any form of "recovery" will require archive logs, and it doesn't appear that you have archive logs related to this data file.
If you had your system.dbf file in addition to a control file and data file, I'd imagine might have enough to bring a database online using a "cold backup" type restore.
The specific error you show references the DBID in your data file does not reference the DBID in your control file. You don't appear to have restored your control file backup. This would make your existing .dbf files now not load, though a number of them can be rebuilt, not all of them can. -
Recovering lost data from a very old backup (disaster recovery)
Hi all,
I am trying to restore and recover data from an old DAT-72 cassette. All I know is the date when the backup was taken, that is back in November 2006. I do not know the DBID or anything else except for the date.
To recover this, I bought an internal SCSI HP c7438a DAT-72 tape drive on eBay and installed it on a machine running Windows 2003 Server SP2. I made a fresh Oracle 11g Enterprise Edition installation. HP tape drivers have been installed and Windows sees the tape drive without problem. To act as a Media Manager, I have installed Oracle Secure Backup. Oracle Secure Backup sees the HP tape drive without problems as well.
I have to admit my information about Oracle is not very in-depth. I read quite a lot of documents, but the more I read the more confused I become. The closest thing I can find to my situation is the following guide about disaster recovery:
http://download.oracle.com/docs/cd/B10500_01/server.920/a96566/rcmrecov.htm#1007948
I tried the suggestions in this document without success (details below).
My questions are:
1. Is it possible to retrieve data without knowing the DBID?
2. If not, is it possible to figure out the DBID from the tape? I tried to use dd in cygwin, also booted with Knoppix/Debian and Ubuntu CDs to dump the contents of the tape with dd but all of them failed to see the tape device. If there is any way to dump the raw contents of the tape on Windows, I would also welcome input.
3. Is there any way at all to recover this data from the tape given all the unknowns?
Thanks very much in advance,
C:\Program Files>rman target orcl
Recovery Manager: Release 11.2.0.1.0 - Production on Sat Mar 19 15:01:28 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
target database Password:
connected to target database: ORCL (not mounted)
RMAN> SET DBID 676549873;
executing command: SET DBID
RMAN> STARTUP FORCE NOMOUNT; # rman starts instance with dummy parameter file
Oracle instance started
Total System Global Area 778387456 bytes
Fixed Size 1374808 bytes
Variable Size 268436904 bytes
Database Buffers 503316480 bytes
Redo Buffers 5259264 bytes
RMAN> RUN
2> {
3> ALLOCATE CHANNEL t1 DEVICE TYPE sbt;
4> RESTORE SPFILE TO 'C:\SPFILE.TMP' FROM AUTOBACKUP MAXDAYS 7 UNTIL TIME 'SYS
DATE-1575';
5> }
using target database control file instead of recovery catalog
allocated channel: t1
channel t1: SID=63 device type=SBT_TAPE
channel t1: Oracle Secure Backup
Starting restore at 19-MAR-11
channel t1: looking for AUTOBACKUP on day: 20061125
channel t1: looking for AUTOBACKUP on day: 20061124
channel t1: looking for AUTOBACKUP on day: 20061123
channel t1: looking for AUTOBACKUP on day: 20061122
channel t1: looking for AUTOBACKUP on day: 20061121
channel t1: looking for AUTOBACKUP on day: 20061120
channel t1: looking for AUTOBACKUP on day: 20061119
channel t1: no AUTOBACKUP in 7 days found
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/19/2011 15:03:26
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
RMAN>
RMAN> RUN
2> {
3> ALLOCATE CHANNEL t1 DEVICE TYPE sbt
4> PARMS 'SBT_LIBRARY=C:\WINDOWS\SYSTEM32\ORASBT.DLL';
5> RESTORE SPFILE TO 'C:\SPFILE.TMP' FROM AUTOBACKUP MAXDAYS 7 UNTIL TIME 'SYS
DATE-1575';
6> }
allocated channel: t1
channel t1: SID=63 device type=SBT_TAPE
channel t1: Oracle Secure Backup
Starting restore at 19-MAR-11
channel t1: looking for AUTOBACKUP on day: 20061125
channel t1: looking for AUTOBACKUP on day: 20061124
channel t1: looking for AUTOBACKUP on day: 20061123
channel t1: looking for AUTOBACKUP on day: 20061122
channel t1: looking for AUTOBACKUP on day: 20061121
channel t1: looking for AUTOBACKUP on day: 20061120
channel t1: looking for AUTOBACKUP on day: 20061119
channel t1: no AUTOBACKUP in 7 days found
released channel: t1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 03/19/2011 15:04:56
RMAN-06172: no AUTOBACKUP found or specified handle is not a valid copy or piece
RMAN>
-----------------------------------Hi 845725,
If the backups were created with OSB might be you can query the tape with obtool.
http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14236/obref_oba.htmTo list pieces you could use <lspiece> within obtool.
http://www.stanford.edu/dept/itss/docs/oracle/10gR2/backup.102/b14236/obref_oba.htm#BHBBIFFEIf this works you should be able to identify the controlfile autobackup if it has the standard naming < c-dbid-date-xx > and you than know the DBID or you are able to restore a controlfile from a backup piece in the output list.
Might be you have to install 9i or 10g rdbms software as 11g was released a year later in 2007.
Anyway goodluck.
Regards,
Tycho -
Recover database on the other host
I have to recover my database on the other host.
In my source machine(redhat5,x86_64) I installed oracle 10g (10.2.0.1), sid=orapro, archive_mode=on, flash_area_recovery=default.
RMAN - AUTOBACKUP=ON, CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
In new host (zlinux) I install oracle 10g (10.2.0.2.0). I has used DBCA and create a new database, with the same SID=orapro, archive_mode=on, flash_area_recovery=default.
RMAN - AUTOBACKUP=ON, CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F';
Backup:
RMAN> show all;
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 '%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 '/dados/db/oracle/product/10.2.0/db_1/dbs/snapcf_orapro.f'; # default
RMAN> backup database;
BS Key Type LV Size Device Type Elapsed Time Completion Time
6 Full 522.79M DISK 00:00:06 10-JUN-08
BP Key: 6 Status: AVAILABLE Compressed: NO Tag: TAG20080610T112043
Piece Name: /dados/db/oracle/flash_recovery_area/ORAPRO/backupset/2008_06_10/o1_mf_nnndf_TAG20080610T112043_44x6ycvx_.bkp
List of Datafiles in backup set 6
File LV Type Ckp SCN Ckp Time Name
1 Full 608723 10-JUN-08 /dados/oradata/orapro/system01.dbf
2 Full 608723 10-JUN-08 /dados/oradata/orapro/undotbs01.dbf
3 Full 608723 10-JUN-08 /dados/oradata/orapro/sysaux01.dbf
4 Full 608723 10-JUN-08 /dados/oradata/orapro/users01.dbf
5 Full 608723 10-JUN-08 /dados/oradata/orapro/rman_ts
BS Key Type LV Size Device Type Elapsed Time Completion Time
7 Full 6.80M DISK 00:00:01 10-JUN-08
BP Key: 7 Status: AVAILABLE Compressed: NO Tag: TAG20080610T112050
Piece Name: /dados/db/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_10/o1_mf_s_657026450_44x6ylyd_.bkp
Control File Included: Ckp SCN: 608730 Ckp time: 10-JUN-08
SPFILE Included: Modification time: 10-JUN-08
I sent the backupset and autobackup files from source machine to new host.
And alter the name of server parameter file 'spfileorapro.ora' on new host for 'spfileorapro-1.ora'.
Recover:
$rman target /
RMAN> set dbid 'dbid_source_machine'
RMAN> startup nomount
LRM-00109: could not open parameter file '/dados/u01/app/oracle/product/10.2.0/db_1/dbs/initorapro.ora'
RMAN> restore spfile to pfile '/dados/u01/app/oracle/product/10.2.0/db_1/dbs/initorapro.ora' from '/dados/u01/app/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_10/o1_mf_s_657026450_44x6ylyd_.bkp';
Starting restore at 11-JUN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=36 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/11/2008 09:10:01
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
I get the error above.
Can anybody help me?
Thanks!I try now:
RMAN> run{
2> set controlfile autobackup format for device type disk to
3> '/dados/u01/app/oracle/flash_recovery_area/%F';
4> restore controlfile from autobackup;}
executing command: SET CONTROLFILE AUTOBACKUP FORMAT
Starting restore at 11-JUN-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=156 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/11/2008 15:51:04
ORA-19625: erro ao identificar arquivo /dados/u01/app/oracle/flash_recovery_area/ORAPRO/autobackup/2008_06_11/o1_mf_s_657128589_450bvsnq_.bkp
ORA-27047: UNABLE TO READ THE HEADER BLOCK OF FILE
Additional information: 2
Corrupt file? Version problem?
Source machine 10.2.0.1 and new host 10.2.0.2.
Compatibility?
Marcos -
Is there a way to recover the spfile if I remove the spfile?
Hi,
Is there a way to recover the spfile if I remove the spfile?
I did a rman full db backup.
thanks.You can user RMAN to recover your spfile, see Note 372996.1 Using RMAN to Restore and Recover a Database When the Repository and Spfile/Init.ora Files Are Also Lost, RMAN is able to startup the instance even when there is no spfile/pfile, then you can recover your spfile from your last backup.
RMAN> startup nomount;
connected to target database (not started)
startup failed: ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/10.2.0/db_1/dbs/initorcl.ora'
starting Oracle instance without parameter file for retrival of spfile
Oracle instance started
Total System Global Area 159383552 bytes
Fixed Size 1266344 bytes
Variable Size 54529368 bytes
Database Buffers 100663296 bytes
Redo Buffers 2924544 bytes
RMAN> set dbid=1176145568;
executing command: SET DBID
RMAN> restore spfile from autobackup recovery area '/u01/app/oracle/flash_recovery_area';
Starting restore at 05/11/2008 10:49:53
using channel ORA_DISK_1
recovery area destination: /u01/app/oracle/flash_recovery_area
database name (or database unique name) used for search: ORCL
channel ORA_DISK_1: autobackup found in the recovery area
channel ORA_DISK_1: autobackup found: /u01/app/oracle/flash_recovery_area/ORCL/autobackup/2008_11_02/o1_mf_s_669748005_4jw93oyk_.bkp
channel ORA_DISK_1: SPFILE restore from autobackup complete
Finished restore at 05/11/2008 10:49:57The non-default parameters you set in your spfile are also listed in the alert.log so you can copy these values and create a pfile, then an spfile.
Starting up ORACLE RDBMS Version: 10.2.0.4.0.
System parameters with non-default values:
processes = 150
nls_territory = AMERICA
sga_target = 205520896
control_files = /u01/app/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/orcl/tempControl.ctl
db_block_size = 8192
compatible = 10.2.0.3.0
log_archive_format = %t_%s_%r.dbf
db_file_multiblock_read_count= 16
db_create_file_dest = /u02/oradata
db_recovery_file_dest = /u01/app/oracle/flash_recovery_area
db_recovery_file_dest_size= 4294967296
undo_management = AUTO
undo_tablespace = UNDOTBS1
remote_login_passwordfile= EXCLUSIVE
db_domain = oracle.com
dispatchers = (PROTOCOL=TCP) (SERVICE=orclXDB)
job_queue_processes = 10
background_dump_dest = /u01/app/oracle/admin/orcl/bdump
user_dump_dest = /u01/app/oracle/admin/orcl/udump
core_dump_dest = /u01/app/oracle/admin/orcl/cdump
audit_file_dest = /u01/app/oracle/admin/orcl/adump
db_name = seeddata
db_unique_name = orcl
open_cursors = 300
pga_aggregate_target = 67108864
PMON started with pid=2, OS id=12906HTH
Enrique
PS. If your problem was solved, consider marking the question as answered -
Recovering primary using standby database
Hi all,
Here we have a dataguard environment with db1(db_unique_name) as primary and db2(db_unique_name) as physical standby database. We configured dataguard in 10g environments and we are not using grid control. And now we want to configure rman for incremental backups.After configuring we successfully took full backup in standby plus archive logs. Then as the test case we dropped one datafile from the primary and tried to recover it. It is showing the following error. Also when i tried 'crosscheck backup' from primary it is showing that all the backups taken in standby are 'expired'. But from RMAN connected to standby the same backups are showing as 'available'. Can anyone help to fix this?
On primary:
[oracle@db1 NIOS]$ sqlplus / as sysdba;
SQL*Plus: Release 10.2.0.3.0 - Production on Thu Sep 6 02:58:11 2012
Copyright (c) 1982, 2006, Oracle. All Rights Reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> alter database datafile 4 offline; (after deleting datafile from system level)
Database altered.
[oracle@db1 NIOS]$ rman target sys/oracle@db1 catalog rman/oracle@appsdb
Recovery Manager: Release 10.2.0.3.0 - Production on Thu Sep 6 02:58:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: NIOS (DBID=1590630518)
connected to recovery catalog database
RMAN> restore datafile 4;
Starting restore at 06-SEP-12
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=107 devtype=DISK
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00004 to /u01/app/oracle/oradata/NIOS/users01.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
ORA-19870: error reading backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp
ORA-19505: failed to identify file "/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp"
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
failover to previous backup
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00004 to /u01/app/oracle/oradata/NIOS/users01.dbf
channel ORA_DISK_1: reading from backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
ORA-19870: error reading backup piece /u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp
ORA-19505: failed to identify file "/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp"
ORA-27037: unable to obtain file status
Linux Error: 2: No such file or directory
Additional information: 3
failover to previous backup
channel ORA_DISK_1: restoring datafile 00004
input datafile copy recid=13 stamp=793208425 filename=/tmp/users01.dbf
destination for restore of datafile 00004: /u01/app/oracle/oradata/NIOS/users01.dbf
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 09/06/2012 02:59:10
ORA-19571: datafilecopy recid 13 stamp 793208425 not found in control file
ORA-19600: input file is datafile-copy 13 ()
ORA-19601: output file is datafile-copy 0 (/u01/app/oracle/oradata/NIOS/users01.dbf)
RMAN> crosscheck backup;
using channel ORA_DISK_1
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid=18 stamp=793212040
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid=19 stamp=793212087
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid=20 stamp=793212132
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid=21 stamp=793212180
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid=22 stamp=793216080
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid=23 stamp=793216082
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid=24 stamp=793216129
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid=5 stamp=793238431
Crosschecked 8 objects
On Stand-by:
[oracle@db2 NIOS]$ rman target sys/oracle@db2 catalog rman/oracle@appsdb
Recovery Manager: Release 10.2.0.3.0 - Production on Wed Sep 5 20:11:58 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: NIOS (DBID=1590630518, not open)
connected to recovery catalog database
RMAN> crosscheck backup;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=91 devtype=DISK
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdsjlw_.bkp recid=18 stamp=793212040
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T164038_84gdtz6p_.bkp recid=19 stamp=793212087
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T164212_84gdwdst_.bkp recid=20 stamp=793212132
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793242038_84gdxw5j_.bkp recid=21 stamp=793212180
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_annnn_TAG20120905T174759_84gjqrtn_.bkp recid=22 stamp=793216080
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/backupset/2012_09_05/o1_mf_nnndf_TAG20120905T174801_84gjqt0n_.bkp recid=23 stamp=793216082
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=/u01/app/oracle/flash_recovery_area/DB2/autobackup/2012_09_05/o1_mf_s_793246288_84gjs9h4_.bkp recid=24 stamp=793216129
crosschecked backup piece: found to be 'EXPIRED'
backup piece handle=/u01/app/oracle/product/10.2.0/db_1/dbs/c-1590630518-20120906-00 recid=5 stamp=793238431
Crosschecked 8 objects
Thanks in advance.Hello;
I would review one of these step by step :
Using RMAN Backup Files from Standby Database to Recover Primary
http://oraganism.files.wordpress.com/2009/04/backup-from-physical-standby.pdf
How to use standby backup to restore primary db
http://alexzeng.wordpress.com/2008/09/13/how-to-use-standby-backup-to-restore-primary-db/
Steps to recover the primary database's datafile using a copy of a standby database's datafile.
http://dbaregistry.blogspot.com/2010/01/steps-to-recover-primary-databases.html
RMAN in a Data Guard Environment
http://oracle.su/docs/11g/backup.112/e10642/rcmarchi.htm#CHDIFGFH
Performing a database clone using a Data Guard physical standby database
http://gavinsoorma.com/2012/04/performing-a-database-clone-using-a-data-guard-physical-standby-database/
Best Regards
mseberg -
Using a Standby Backup to Recover a Primary
Here's one I've been working on and would like input. We backup our standby database nightly due to resource limitation on our primary server. These backups will be used to recovery the primary in case of failure. I've successfully applied these backups to the primary but only under "nice" conditions, i.e. shutdown nicely, restore control file and restore/recover database. Of course we all know that when it hits the fan it's usually not under "nice" conditions. So to simulate a more realistic situation I remove the the two primary control files and delete the system file, in our test environment of course. Now the recovery is much more difficult and I've yet to do a full recovery in this scenario.
My question is, has anybody played with recovering a primary from standby backups?
I do realize that in a real crash of the primary the standby would be promoted to primary so this is more of a lesson in RMAN for me.
Edited by: slas on May 29, 2013 10:18 AMOracle 11.2.0.3.0
Windows 2008 server
Dataguard physical standby
RMAN Catalog
Async
no apply delay
Here's some of the output:
My first unexpected error below was the RMAN-20005: target database name is ambiguous while trying to restore the control file and the need to set the dbid. Maybe someone can elaborate.
O:\>rman target=sys/xxxxx@PRI1 catalog=rcat_user/xxxxx@RCAT
Recovery Manager: Release 11.2.0.3.0 - Production on Thu May 30 09:30:14 2013
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database (not started)
connected to recovery catalog database
RMAN> startup
Oracle instance started
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of startup command at 05/30/2013 09:30:30
ORA-00205: error in identifying control file, check alert log for more info
RMAN> shutdown abort
Oracle instance shut down
RMAN> startup nomount
connected to target database (not started)
Oracle instance started
Total System Global Area 10388832256 bytes
Fixed Size 2264248 bytes
Variable Size 7449084744 bytes
Database Buffers 2919235584 bytes
Redo Buffers 18247680 bytes
RMAN> restore controlfile from 'O:\app\fast_recovery_area\PRI1\BACKUPSET\CF-PRI1-C-3403474807-20130528-00.RBU';
Starting restore at 30-MAY-13
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/30/2013 09:31:22
RMAN-12010: automatic channel allocation initialization failed
RMAN-06004: ORACLE error from recovery catalog database: RMAN-20005: target database name is ambiguousI was able to catalog the new backup pieces but then ran into this trying to restore. I've played with resetting the incarnation also but get the same results. If I do a RMAN LIST FAILURE it gives:
System datafile 1 is missing (yes, I deleted it)
Control file needs media recovery (this one's not clear to me since we restored it)
One or more datafiles need recovery (yes, obviously)
RMAN> set dbid=3403474807
executing command: SET DBID
database name is "PRI1" and DBID is 3403474807
RMAN> restore controlfile from 'O:\app\fast_recovery_area\PRI1\BACKUPSET\CF-PRI1-C-3403474807-20130528-00.RBU';
Starting restore at 30-MAY-13
using channel ORA_DISK_1
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=O:\APP\ORADATA\PRI1\CONTROL01.CTL
output file name=O:\APP\FAST_RECOVERY_AREA\PRI1\CONTROL02.CTL
Finished restore at 30-MAY-13
RMAN>crosscheck backup;
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=O:\APP\FAST_RECOVERY_AREA\PRI1\BACKUPSET\DF_PRI1_1_2123_20130528.RBU RECID=1821 STAMP=816687657
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=O:\APP\FAST_RECOVERY_AREA\PRI1\BACKUPSET\DF_PRI1_1_2124_20130528.RBU RECID=1822 STAMP=816687657
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=O:\APP\FAST_RECOVERY_AREA\PRI1\BACKUPSET\DF_PRI1_1_2125_20130528.RBU RECID=1823 STAMP=816687657
crosschecked backup piece: found to be 'AVAILABLE'
backup piece handle=O:\APP\FAST_RECOVERY_AREA\PRI1\BACKUPSET\DF_PRI1_1_2126_20130528.RBU RECID=1824 STAMP=816687657
RMAN>delete obsolete
Do you really want to delete the above objects (enter YES or NO)? YES
deleted backup piece
backup piece handle=O:\APP\FAST_RECOVERY_AREA\PRI1\BACKUPSET\2013_01_03\O1_MF_ANNNN_TAG20130103T155639_8GCZNR15_.BKP RECID=11 STAMP=803750200
deleted backup piece
backup piece handle=O:\APP\FAST_RECOVERY_AREA\PRI1\BACKUPSET\2013_01_31\O1_MF_ANNNN_TAG20130131T112328_8JOB4JNH_.BKP RECID=12 STAMP=806153008
deleted backup piece
RMAN> alter database mount;
database mounted
released channel: ORA_DISK_1
RMAN> catalog start with 'O:\app\fast_recovery_area';
Starting implicit crosscheck backup at 30-MAY-13
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1546 device type=DISK
Crosschecked 131 objects
Finished implicit crosscheck backup at 30-MAY-13
Starting implicit crosscheck copy at 30-MAY-13
using channel ORA_DISK_1
Finished implicit crosscheck copy at 30-MAY-13
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: O:\APP\FAST_RECOVERY_AREA\PRI1\ARCHIVELOG\2013_05_28\O1_MF_1_12524_8T8GHFY0_.ARC
File Name: O:\APP\FAST_RECOVERY_AREA\PRI1\ARCHIVELOG\2013_05_28\O1_MF_1_12525_8T8HCL5K_.ARC
File Name: O:\APP\FAST_RECOVERY_AREA\PRI1\ARCHIVELOG\2013_05_28\O1_MF_1_12526_8T8J6RBC_.ARC
File Name: O:\APP\FAST_RECOVERY_AREA\PRI1\ARCHIVELOG\2013_05_28\O1_MF_1_12527_8T8K2WP0_.ARC
RMAN> restore database;
Starting restore at 30-MAY-13
using channel ORA_DISK_1
datafile 1 is already restored to file O:\APP\ORADATA\PRI1\SYSTEM01.DBF
datafile 2 is already restored to file O:\APP\ORADATA\PRI1\SYSAUX01.DBF
datafile 3 is already restored to file O:\APP\ORADATA\PRI1\UNDOTBS01.DBF
datafile 4 is already restored to file O:\APP\ORADATA\PRI1\USERS01.DBF
datafile 5 is already restored to file O:\APP\ORADATA\PRI1\CMDS_DATA_01.DBF
datafile 6 is already restored to file O:\APP\ORADATA\PRI1\GEOBASE_CIP_DATA_01.DBF
datafile 7 is already restored to file O:\APP\ORADATA\PRI1\CMDS_ATTACHMENTS_01.DBF
datafile 8 is already restored to file O:\APP\ORADATA\PRI1\QUEST_01.DBF
restore not done; all files read only, offline, or already restored
Finished restore at 30-MAY-13
RMAN> restore database force;
Starting restore at 30-MAY-13
using channel ORA_DISK_1
channel ORA_DISK_1: restoring datafile 00001
input datafile copy RECID=10 STAMP=816009419 file name=O:\APP\ORADATA\PRI1\SYSTEM01.DBF
destination for restore of datafile 00001: O:\APP\ORADATA\PRI1\SYSTEM01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\SYSTEM01.DBF
channel ORA_DISK_1: restoring datafile 00002
input datafile copy RECID=11 STAMP=816009419 file name=O:\APP\ORADATA\PRI1\SYSAUX01.DBF
destination for restore of datafile 00002: O:\APP\ORADATA\PRI1\SYSAUX01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\SYSAUX01.DBF
channel ORA_DISK_1: restoring datafile 00003
input datafile copy RECID=12 STAMP=816009419 file name=O:\APP\ORADATA\PRI1\UNDOTBS01.DBF
destination for restore of datafile 00003: O:\APP\ORADATA\PRI1\UNDOTBS01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\UNDOTBS01.DBF
channel ORA_DISK_1: restoring datafile 00004
input datafile copy RECID=13 STAMP=816009419 file name=O:\APP\ORADATA\PRI1\USERS01.DBF
destination for restore of datafile 00004: O:\APP\ORADATA\PRI1\USERS01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\USERS01.DBF
channel ORA_DISK_1: restoring datafile 00005
input datafile copy RECID=14 STAMP=816009420 file name=O:\APP\ORADATA\PRI1\CMDS_DATA_01.DBF
destination for restore of datafile 00005: O:\APP\ORADATA\PRI1\CMDS_DATA_01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\CMDS_DATA_01.DBF
channel ORA_DISK_1: restoring datafile 00006
input datafile copy RECID=15 STAMP=816009420 file name=O:\APP\ORADATA\PRI1\GEOBASE_CIP_DATA_01.DBF
destination for restore of datafile 00006: O:\APP\ORADATA\PRI1\GEOBASE_CIP_DATA_01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\GEOBASE_CIP_DATA_01.DBF
channel ORA_DISK_1: restoring datafile 00007
input datafile copy RECID=16 STAMP=816009420 file name=O:\APP\ORADATA\PRI1\CMDS_ATTACHMENTS_01.DBF
destination for restore of datafile 00007: O:\APP\ORADATA\PRI1\CMDS_ATTACHMENTS_01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\CMDS_ATTACHMENTS_01.DBF
channel ORA_DISK_1: restoring datafile 00008
input datafile copy RECID=17 STAMP=816009420 file name=O:\APP\ORADATA\PRI1\QUEST_01.DBF
destination for restore of datafile 00008: O:\APP\ORADATA\PRI1\QUEST_01.DBF
backup and output file names are identical: O:\APP\ORADATA\PRI1\QUEST_01.DBF
failover to previous backup
creating datafile file number=1 name=O:\APP\ORADATA\PRI1\SYSTEM01.DBF
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 05/30/2013 09:40:15
ORA-01180: can not create datafile 1
ORA-01110: data file 1: 'O:\APP\ORADATA\PRI1\SYSTEM01.DBF'All input welcome. -
RMAN Recover database error..
Hi All,
We were trying to restore and recover one of our databases. The restore went well but the recover is erroring out. Can someone please let us know what we should do to remedy this and carry on with the recovery.
We got an error when we were trying to restore the controlfile at the begining (details below), but as you can see, it did manage to restore a copy of the controlfile successfully..
Details below.
C:\Users\oracle>rman target system/XXXX catalog rman/XXXX@rmancat
Recovery Manager: Release 11.1.0.7.0 - Production on Thu Dec 2 08:31:03 2010
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: CODP (not mounted)
connected to recovery catalog database
RMAN> set dbid=2399577932
executing command: SET DBID
database name is CODP and DBID is 2399577932
RMAN> RESTORE CONTROLFILE;
Starting restore at 02-DEC-10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=152 device type=DISK
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\CONTROLFILE_BKUP_CODP_C-2399577932-20101201-00
channel ORA_DISK_1: "ORA-19870: error while restoring backup piece D:\RMAN\CODP\CONTROLFILE_BKUP_CODP_C-2399577932-20101201-00"
"ORA-19505: failed to identify file D:\RMAN\CODP\CONTROLFILE_BKUP_CODP_C-2399577932-20101201-00"
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
failover to previous backup
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_DULUG8H9_1_1
channel ORA_DISK_1: "ORA-19870: error while restoring backup piece D:\RMAN\CODP\BKUP_CODP_DULUG8H9_1_1"
"ORA-19505: failed to identify file D:\RMAN\CODP\BKUP_CODP_DULUG8H9_1_1"
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
failover to previous backup
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: restoring control file
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\CONTROLFILE_BKUP_CODP_C-2399577932-20101130-01
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\CONTROLFILE_BKUP_CODP_C-2399577932-20101130-01 tag=TAG20101130T204059
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=C:\ORACLE\ORADATA\CONTROLFILE\CODP\CONTROL01.CTL
output file name=D:\ORACLE\ORADATA\CONTROLFILE\CODP\CONTROL02.CTL
output file name=D:\ORACLE\ORADATA\CODP\CONTROL03.CTL
Finished restore at 02-DEC-10
RMAN> RESTORE SPFILE FROM AUTOBACKUP;
Starting restore at 02-DEC-10
using channel ORA_DISK_1
recovery area destination: D:\oracle\flash_recovery_area\
database name (or database unique name) used for search: CODP
channel ORA_DISK_1: no AUTOBACKUPS found in the recovery area
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101202
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101201
channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101130
channel ORA_DISK_1: AUTOBACKUP found: D:\RMAN\CODP\controlfile_bkup_CODP_c-2399577932-20101130-01
channel ORA_DISK_1: restoring spfile from AUTOBACKUP D:\RMAN\CODP\controlfile_bkup_CODP_c-2399577932-20101130-01
channel ORA_DISK_1: SPFILE restore from AUTOBACKUP complete
Finished restore at 02-DEC-10
RMAN> restore database;
Starting restore at 02-DEC-10
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00020 to D:\ORACLE\ORADATA\CODP\VCLLOAD_T1.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_56LU9C9M_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_56LU9C9M_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:02:45
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00002 to D:\ORACLE\ORADATA\CODP\UNDOTBS01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_57LU9CFQ_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_57LU9CFQ_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:03:25
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00009 to D:\ORACLE\ORADATA\CODP\PROD_T3_NEW_02.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_58LU9CMS_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_58LU9CMS_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:55
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00010 to D:\ORACLE\ORADATA\CODP\PROD_T3_NEW_03.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_59LU9CR4_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_59LU9CR4_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:55
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to D:\ORACLE\ORADATA\CODP\SYSTEM01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5ALU9CV2_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5ALU9CV2_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00005 to D:\ORACLE\ORADATA\CODP\PROD_T1_NEW_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5BLU9D0P_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5BLU9D0P_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00006 to D:\ORACLE\ORADATA\CODP\PROD_T2_NEW_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5CLU9D1J_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5CLU9D1J_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:45
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00007 to D:\ORACLE\ORADATA\CODP\PROD_T3_NEW_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5DLU9D4T_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5DLU9D4T_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00025 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_02.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5ELU9D79_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5ELU9D79_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:36
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00024 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5FLU9DAI_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5FLU9DAI_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00026 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_03.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5GLU9DDI_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5GLU9DDI_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00027 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_04.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5HLU9DGU_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5HLU9DGU_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00011 to D:\ORACLE\ORADATA\CODP\PROD_I3_16K_02.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5ILU9DJT_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5ILU9DJT_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00030 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_07.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5JLU9DN8_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5JLU9DN8_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:46
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00028 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_05.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5KLU9DOV_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5KLU9DOV_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00029 to D:\ORACLE\ORADATA\CODP\PREV_PR_CODP_06.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5LLU9DQO_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5LLU9DQO_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:45
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00003 to D:\ORACLE\ORADATA\CODP\SYSAUX01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5MLU9DSF_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5MLU9DSF_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:25
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00008 to D:\ORACLE\ORADATA\CODP\PROD_I2_16K_03.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5NLU9DT9_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5NLU9DT9_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00032 to D:\ORACLE\ORADATA\CODP\PROD_I2_16K_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5OLU9DUN_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5OLU9DUN_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00033 to D:\ORACLE\ORADATA\CODP\PROD_I2_16K_02.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5PLU9E0P_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5PLU9E0P_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:05
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00034 to D:\ORACLE\ORADATA\CODP\PROD_I3_16K_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_5QLU9E3F_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_5QLU9E3F_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:01:45
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00031 to D:\ORACLE\ORADATA\CODP\PROD_I1_16K_01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_8QLU9ES2_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_8QLU9ES2_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00004 to D:\ORACLE\ORADATA\CODP\USERS01.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_8SLU9ET9_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_8SLU9ET9_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00021 to D:\ORACLE\ORADATA\CODP\VCLLOAD_T2.DBF
channel ORA_DISK_1: reading from backup piece D:\RMAN\CODP\BKUP_CODP_8ULU9ETF_1_1
channel ORA_DISK_1: piece handle=D:\RMAN\CODP\BKUP_CODP_8ULU9ETF_1_1 tag=LEVEL0_TUE
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
Finished restore at 02-DEC-10
RMAN> recover database;
Starting recover at 02-DEC-10
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/02/2010 09:08:05
ORA-00210: cannot open the specified control file
RMAN>ThanksSorry everyone.. My bad.. I forgot to MOUNT the instance before trying to use the RECOVER DATABASE command.
Thanks -
Problem in recovering database
I Have Oracle Database 10g (10.2.0.1.0) on Windows Server 2003
I have taken full hot RMAN backup of database.
I have copied the backup files from flash recovery area.
I have one other Machine having windows server 2003 And Oracle 10g Same version. I have copied the backup files from first machine to Flash Recovery Area folder on second machine.
Now i am trying to restore the database of first machine to second machine.
1. I have created a new instance on second machice with same name as in fiirst machine.
2. I have created one ORA password file as well.
3. SET ORACLE_SID=<name of DB as it was in first machine>
4. RMAN TARGET sys/<password given in newly ORA pwd file>@<DB name> nocatalog
5. SET DBID=<dbid of old database>
6. STARTUP NOMOUNT FORCE
7. RESTORE SPFILE TO PFILE '<path of new pfile>' from '<path where backup files are there>';
8. CREATE UDUMP,BDUMP,CDUMP,PFILE,ORADATA FOLDERS where required;
9. SHUTDOWN IMMEDIATE;
10. STARTUP NOMOUNT PFILE='<path of newly created pfile>';
11 RESTORE CONTROLFILE FROM '<path of backup files>';
12. ALTER DATABASE MOUNT;
Everything work fine till here
Now my next step was
13. RESTORE DATABASE;
Then it gives error like:-
RMAN> restore database;
Starting restore at 20-NOV-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=375 devtype=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 11/20/2008 21:00:54
RMAN-06026: some targets not found - aborting restore
RMAN-06023: no backup or copy of datafile 4 found to restore
RMAN-06023: no backup or copy of datafile 3 found to restore
RMAN-06023: no backup or copy of datafile 2 found to restore
RMAN-06023: no backup or copy of datafile 1 found to restore
Firstly i copied backup files to flash recovery area, then i copied files to 'D:\oracle\product\10.2.0\db_1\database' as well. Because i have done it in 9i, in 9i i copied the backup files to this backup folder then while doing restore RMAN succesfully takes file from this folder & restores the database. but in 10g RMAN is not recognising the path of backup. How this problem can be solved? Or is this some different problem which i am not getting?
Waiting for reply..Hi ORADBA,
Thanks for your response. Your solution worked. Actually there was a difference the Oracle installation on server from which i was taking backup is on E drive.
And the server on which i am trying to restore that database has Oracle installation files on D drive. That's why this confusion occurred.
But i have one query again. I am not able to recover my database fully.
Firstly i typed restore database command that worked. Thereafter i tried recover database command. that commant resulted in an error as given below. Than i typed command archive log list on SQL promt, from there i found the information of latest archive log. then i tried recover database until logseq 484 thread 1. That also didn't work. In the same situation i tried to open database i was able to open database using command alter database open resetlogs. I suppose i was not able to recover the database fully. Hi can i recover my database fully?
waiting for reply. Thanks in advance.
RMAN> recover database;
Starting recover at 24-NOV-08
using channel ORA_DISK_1
channel ORA_DISK_1: starting incremental datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
destination for restore of datafile 00001: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\SYSTEM01.DBF
destination for restore of datafile 00002: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\UNDOTBS01.DBF
destination for restore of datafile 00003: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\SYSAUX01.DBF
destination for restore of datafile 00004: E:\ORACLE\PRODUCT\10.2.0\ORADATA\TESTDB\USERS01.DBF
channel ORA_DISK_1: reading from backup piece E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TESTDB\BACKUPSET\2008_11_20\O1
MFNNND1_BACKUP_TESTDB_L_1_4LB0PZXS_.BKP*
channel ORA_DISK_1: restored backup piece 1
piece handle=E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\TESTDB\BACKUPSET\2008_11_20\O1_MF_NNND1_BACKUP_TESTDB_L_1_4L
B0PZXS_.BKP tag=BACKUP_TESTDB_L_112008115509
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
starting media recovery
unable to find archive log
archive log thread=1 sequence=484
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/24/2008 19:47:07
RMAN-06054: media recovery requesting unknown log: thread 1 seq 484 lowscn 11013224
RMAN> recover database until logseq 484;
Starting recover at 24-NOV-08
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/24/2008 19:48:07
RMAN-06556: datafile 1 must be restored from backup older than scn 11009149
RMAN> recover database until logseq 484 thread 1;
Starting recover at 24-NOV-08
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/24/2008 19:48:20
RMAN-06556: datafile 1 must be restored from backup older than scn 11009149
RMAN> recover database until logseq 483 thread 1;
Starting recover at 24-NOV-08
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/24/2008 19:48:58
RMAN-06556: datafile 1 must be restored from backup older than scn 10973094
RMAN> recover database until logseq 482 thread 1;
Starting recover at 24-NOV-08
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 11/24/2008 19:49:06
RMAN-06556: datafile 1 must be restored from backup older than scn 10952975
RMAN> alter database open;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of alter db command at 11/24/2008 19:49:21
ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
RMAN> alter database open resetlogs
*2> ;*
Edited by: user648257 on Nov 24, 2008 6:48 AM -
Urgent poblem recovering a file
Hi I just followed a tutorial on this site and I get some trouble recovering data.
Here is the output of the rman restore recovery command.
What I don't understand is that that I don't want to use tapes, I just want to use my disk
error allocating device, device type: SBT_TAPE, device name:
I made the test disk backup, it was successfull, but not the tape drive, of course I don't have one.What can i do, is there a way I can specify to restore it on disk not using tape, or is there a way I can desactive tape in oem.
Because I am just recovering from oem.
Recovery Manager: Release 10.2.0.1.0 - Production on Thu Apr 6 12:03:55 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN>
connected to target database: ISCREAM (DBID=3415054131)
using target database control file instead of recovery catalog
RMAN>
echo set on
RMAN> run {
2> restore datafile 5;
3> recover datafile 5;
4> sql 'alter database datafile 5 online';
5> }
Starting restore at 06-APR-06
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=148 devtype=DISK
released channel: ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/06/2006 12:03:58
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
RMAN> exit;
Recovery Manager complete.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 OFF; # default
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 -
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 -
Cannot recover control file in Oracle10g
Dear friends ,
I have to delete my three control files for testing purpose in ORacle 10g .Before Deleting , I take a backup with control file and spfile using following way :
script :
run
allocate channel t1 type disk;
backup format 'df_%t_%s_%p'
(database);}
AND OUTPUT of RMAN ,
RMAN> show all;
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'C:\TEMP\ctrl_file%F';
Now when I run the restore script then it shows follwing error :
RMAN> set DBID=1178861114;
executing command: SET DBID
RMAN> restore controlfile from autobackup db_recovery_file_dest='C:\TEMP\CTRL_FILEC-1178861114-20080413-00';
Starting restore at 13-APR-08
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=158 devtype=DISK
recovery area destination: C:\TEMP\CTRL_FILEC-1178861114-20080413-00
database name (or database unique name) used for search: ORCL
channel ORA_DISK_1: no autobackups found in the recovery area
channel ORA_DISK_1: looking for autobackup on day: 20080413
channel ORA_DISK_1: looking for autobackup on day: 20080412
channel ORA_DISK_1: looking for autobackup on day: 20080411
channel ORA_DISK_1: looking for autobackup on day: 20080410
channel ORA_DISK_1: looking for autobackup on day: 20080409
channel ORA_DISK_1: looking for autobackup on day: 20080408
channel ORA_DISK_1: looking for autobackup on day: 20080407
channel ORA_DISK_1: no autobackup in 7 days found
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 04/13/2008 10:35:34
RMAN-06172: no autobackup found or specified handle is not a valid copy or piece
I dont know why my control files are not backed up ? can anybody plz help me ?I can't say why what you did didn't work but I can say that using RMAN is not the best way to recover lost control files.
Lets assume you have three control files located on three different drives. It is impossible to accidentally delete all three so the best solution to losing one is to shutdown the database and copy an existing one to the location where a file has gone missing and rename it to the name of the deleted file.
Failing that you should always have a script created using:
BACKUP CONTROLFILE TO TRACE;I would only use the control files backed up by RMAN to create an auxiliary database such as a standby or for testing. -
RMAN-03002: failure of recover command
Hi all,
I am testing a new backup and restore mechanism of a 11.2 system in Linux. A third mirror of the disks from the database server has been split and mounted in a media server. An RMAN backup was taken then, on tape, using HP Data Protector. Then, in the media server again, I mounted all the disk groups and removed all the files from ASM via asmcmd. With everything cleared, I proceeded in doing the following:
1. Started up nomount using an old PFILE.
2. Initiated an RMAN session and SET DBID, connected to the target and the catalog. Restore the SPFILE in a PFILE.
3. Shutdow and started up nomount with PFILE the newly created file (edited it first to comment out CLUSTER_DATABASE parameter, as the media server is not configured for this).
4. Restored the contorl file. This was done successfully.
5. Restored the database. This was done successfully.
6. Mounted the database and attempted to recover it. I received the following error:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 07/12/2013 09:42:24
RMAN-06094: datafile 1 must be restored
7. I attempted a recover from SQL*Plus; the error message was a little more helpful:
SQL> recover database using backup controlfile;
ORA-00283: recovery session canceled due to errors
ORA-01110: data file 1: '+BT1_A_SYSTEM/bt1_a/datafile/system.259.813148661'
ORA-01157: cannot identify/lock data file 1 - see DBWR trace file
ORA-01110: data file 1: '+BT1_A_SYSTEM/bt1_a/datafile/system.259.813148661'
8. I checked my source database and the file name is as it appears above. But in the restored system, the file has a different name:
ASMCMD> pwd
+BT1_A_SYSTEM/BT1_A/DATAFILE
ASMCMD> ls -l SYSTEM*
Type Redund Striped Time Sys Name
DATAFILE UNPROT COARSE JUL 11 16:00:00 Y SYSTEM.257.820514399
9. OK. I presume that this happened because we are using OMF. But, I was expecting RMAN to specify the full file names and thus restore them with their original names. The problem is now that the control file has the original file names, which cannot be found in the media server, where the restore took place. I am wondering if I should MOUNT the database after the control file restore and before I start the database restore, so RMAN might have the opportunity of renaming the file names in the control file.
Has anyone encountered this problem? I would appreciate some help.
Regards,
Takis.That is correct Hemant. I latter realised my mistake.
When I mounted the database, the control file was opened. Then I repeated the restore. RMAN, this time was able to access the control file and rename dynamically the files, as they were restored and getting their new names.
So, I think, the correct sequence of events may be:
1, Check in ASM if the disk groups are mounted (lsdg). If not, mount the disk groups (alter diskgroup <dg_name> mount;).
2. Startup nomount (if no PFILE available, create a simple one with only db_name in it).
3. From RMAN, set DBID and then connect to target and catalog.
4. restore spfile to pfile from autobackup
5. restore control file(s) from autobackup
6. alter database mount
7. restore database
8. restore archivelog all
9. recover database
10. alter database open resetlogs
In my case, this worked, by enslarge. RMAN stopped when it run out of archived redo logs.
I then attempted, via SQL*Plus:
recover database using backup controlfile until cancel
When prompted, I typed: CANCEL
That was fine, but then, when I attempted:
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-19809: limit exceeded for recovery files
ORA-19804: cannot reclaim 525336576 bytes disk space from 2147483648 limit
So, I needed to increase the parameter db_recovery_file_dest_size which I did (in the pfile; luckily I had available space in the disk group). I shut down and started up (mount). Then:
SQL> alter database open resetlogs;
alter database open resetlogs
ERROR at line 1:
ORA-00392: log 24 of thread 2 is being cleared, operation not allowed
ORA-00312: online log 24 thread 2: '+BT1_A_RECO'
So:
SQL> alter database clear unarchived logfile group 24;
Database altered.
SQL> alter database open resetlogs;
Database altered.
SQL> select * from dual;
D
X
Happy days!
Regards,
Takis. -
I want to plan some test runs on migrating my Oracle DB to 11.2 from 10.2. I understand i can't use the Duplicate command since i am changing versions. I realize that i need to running the commands restore and recover i can essentially do this. Well Can i change the name of my DB like i can in the duplicate command? Also is there a way to do this with the recover catalog and change the DBID of the new DB? Thanks.
Hello;
See - Database Backup and Recovery Advanced User's Guide 10g Release 2 (10.2) B14191-03
Best Regards
mseberg
Maybe you are looking for
-
I am using Snow Leopard OS X 10.6.8 and iMac with 6GB RAM. When I go back to Safary/History/Google search all I am given when I click on the Google search subject a "Blank window" to re enter my subject. I used to be able to get back to the original
-
XML namespace to be changed in the outgoing xml message
HI in my scenario I am sending data to a web service . The xml namespace that is being sent in t he data is the namespace under which the the object is created. while sending the data to the webservice i do not want the ns0: to be attached to the mes
-
TextField ADS and not using plain text
Hey Im using interactive forms and I have a problem using linebreaks. The InputField can only accept plain text. If I switch this option off, I get this error message "Node cannot be inserted where requested" when im pressing the Submit to SAP button
-
MBeanServer will be invalid after the client of MBeanServer long running
I develop a java applcation,It is as a client of MBeanServer, It will use the MBeanServer to query some system info from WebAs, But after a long run (about for one days), The MBeanServerConnection will be broken and invalid ,When call the queryMBean
-
Posted Documnet numbers are missing
Dear All, We have posted some documents and able to identified the document numbers at the time of positng. But after some time if we try to view the posted documents, we can see the message document is not available. ex: document no>1000000021 to 1