DataFile 1 must be restored
Helloin 10g R2, Win 2008 during recovery from backup by RMAN database, I get successively:
rman>recover database;
RMAN-06094:datafile 1 must be restored
rman>restore datafile 'D:\BASES\mydb\DATA\SYSTEM01.DBF'
restore finished
rman>recover database;
RMAN-06094:datafile 1 must be restored
You have a solution?Thank you.
6094, 1, "datafile %s must be restored"
// *Cause: A RECOVER command was issued, and the recovery catalog indicates
// the specified datafile should be part of the recovery, but
// this datafile is not listed in the control file, and cannot be
// found on disk.
// *Action: Issue a RESTORE command for this datafile, using the same
// UNTIL clause specified to the RECOVER command (if any), then
// reissue the RECOVER.
RECOVER & RESTORE are different operations
Tags: Database
Similar Questions
-
RMAN-06094: datafile 344 must be restored: in duplicate of active db db
Hi all
I'm on the oracle 11g running on Solaris Sparc 64-bit database.
I am using the RMAN duplicate command using the current database with the following command:
I got this error at the end of the output:rman target sys/manager@TARGET nocatalog auxiliary sys/manager@DEST <<EOF run { allocate channel ch1 type disk; allocate channel ch2 type disk; allocate channel ch3 type disk; allocate channel ch4 type disk; allocate channel ch5 type disk; allocate auxiliary channel ch6 type disk; allocate auxiliary channel ch8 type disk; allocate auxiliary channel ch7 type disk; allocate auxiliary channel ch9 type disk; allocate auxiliary channel ch10 type disk; SET NEWNAME FOR DATABASE TO '/p1/oracle/DEST/DEST/datafile/%U'; duplicate database to DEST from active database nofilenamecheck;}
Please suggest how to go about the next.datafile 340 switched to datafile copy input datafile copy RECID=2183 STAMP=789836366 file name=/p1/oracle/dest/DEST/datafile/data_D-TARGET_TS-SYSAUX_FNO-340 datafile 341 switched to datafile copy input datafile copy RECID=2184 STAMP=789836366 file name=/p1/oracle/dest/DEST/datafile/data_D-TARGET_TS-RMX_DATA_FNO-341 datafile 342 switched to datafile copy input datafile copy RECID=2185 STAMP=789836366 file name=/p1/oracle/destr/DEST/datafile/data_D-TARGET_TS-RMX_IDX_FNO-342 datafile 343 switched to datafile copy input datafile copy RECID=2186 STAMP=789836366 file name=/p1/oracle/dest/DEST/datafile/data_D-TARGET_TS-RMX_LOBS_FNO-343 contents of Memory Script: { set until scn 10453270596456; recover clone database delete archivelog ; } executing Memory Script executing command: SET until clause Starting recover at 28-JUL-12 released channel: ch1 released channel: ch2 released channel: ch3 released channel: ch4 released channel: ch5 released channel: ch6 released channel: ch8 released channel: ch7 released channel: ch9 released channel: ch10 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of Duplicate Db command at 07/28/2012 15:00:09 RMAN-05501: aborting duplication of target database RMAN-03015: error occurred in stored script Memory Script RMAN-06094: datafile 344 must be restored RMAN> RMAN> Recovery Manager complete. ~
Concerning
KK
Published by: Kk on July 28, 2012 02:41
Published by: Kk on July 28, 2012 02:49: ADDED BETTER OUTPUTKK wrote:
Hi allThe data file 344 and 345 belonged to two different tablespaces that were not used.
More, I don't know why, but the timestamp on these two data files 344 and 345 was showiing like JULY 6 instead of JULY 28.
If I was sure that this was causing the problem.
I gave these 2 storage spaces and then runs again once again the script removing created controlfiles and the database has been opened.
Just curious as to why these 2 data files were not getting filled with the timestamp of the last?
Concerning
KKWhat is the status of the two data files? You can query to source database
SQL > select file_id, dba_data_files online_status where file_id in (344 345);This backup contains these two files? If these two tablespaces have only a data file is in read-only mode?
-
RMAN-06023: no backup or copy of datafile 3 found to restore
Hello
I searched the whole forum, but I have nothing.
I rman backupset (x 64) and I'm trying to restore it to another machine, (same characteristic), but I got the error below.
help please... :(
RMAN > run
2 > {}
3 > ALLOCATE CHANNEL C1 DEVICE TYPE DISK;
4 > RESTORE database;
{5 >}
using the control file of the target instead of recovery catalog database
allocated channel: C1
channel C1: SID = 170 type device = DISK
From restoration to May 3, 10
output channel: C1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command restore at 2010-05-03 11:16
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of the file 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
RMAN >But mark correct/good
-
RMAN-06023: no backup or copy of datafile 407 found to restore
Hi all
Database 11.1.0.7 on OUL5x64
just did a full backup and check the log file, the backup was good, he saved on a NFS mount.
It is the error in the log file
# Release target DB info, catalog DB, catalog schema & RMAN executable: #.
11.1.0.7
Winding began in the log file: /tmp/rman_gold.log
Recovery Manager11.1.0.7.0
RMAN > run {}
2 > set up what SNA 5976539071832.
3 > restore database;
4 > restore database;
{5 >}
executing command: SET until clause
using the control file of the target instead of recovery catalog database
From restoration to 1 April 10
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 1632 type device = DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID = 1655 type device = DISK
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at 01/04/2010 11:11:12
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 407 found to restore
RMAN-06023: no backup or copy of datafile 406 found to restore
RMAN-06023: no backup or copy of datafile 405 found to restore
RMAN-06023: no backup or copy of file 404 found to restore
RMAN-06023: no backup or copy of datafile 403 found to restore
RMAN-06023: no backup or copy of datafile 402 found to restore
RMAN-06023: no backup or copy of datafile 401 found to restore
RMAN-06023: no backup or copy of datafile 400 found to restore
RMAN-06023: no backup or copy of datafile 399 found to restore
RMAN-06023: no backup or copy of datafile 398 found to restore
RMAN-06023: no backup or copy of datafile 397 found to restore
RMAN-06023: no backup or copy of datafile 396 found to restore
RMAN-06023: no backup or copy of datafile 395 found to restore
RMAN-06023: no backup or copy of datafile 394 found to restore
RMAN-06023: no backup or copy of datafile 393 found to restore
RMAN-06023: no backup or copy of datafile 392 found to restore
RMAN-06023: no backup or copy of datafile 354 found to restore
RMAN-06023: no backup or copy of datafile 353 found to restore
# Specific details of the problem encountered during the RMAN session: #.
the database backup point also complete a NFS mount. then delete the database, startup nomount database and restore the controlfile then stop and start frame.
connecting to rman as
RMAN target /.
run
backup from the list; and the backup from the list of the archivelog all;
get the number of SCN and restore in the above script.
If failed the first time with message
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 407 found to restore
RMAN-06023: no backup or copy of datafile 406 found to restore
RMAN-06023: no backup or copy of datafile 405 found to restore
RMAN-06023: no backup or copy of file 404 found to restore
.........................
After that he failed
Then I added everything backup as
RMAN >
Catalogue backuppiece ' / rman/backup/ph2/xxxxxxxxxx.dbf';
.......................
......................
Then, run the restore again.
It fails with the above error.
I check, all backup elements are there.
Why the rman could not locate the backup pieces.
Can someone please have a suggestion.
Thanks in advance!PLS, try this command without SNA 5976539071832 such as
Run {}
restore the database;
recover the database;
} -
Hi all
I ' am doing some tests with RMAN restore and restore a single file in a new directory.
First execution of the restore script (run {restore datafile 14-'... » ;}) has been a success, but in the case where I deleted the restored file and restart the script, RMAN complains with:
"datafile 14 is already restored to the file...". ».
This means that RMAN keeps track of and refers to the previous actions of restoration?
I find this rather strange RMAN behavior because I want RMAN just to use to deal with some files (should not make assumptions that the DBA can do or what he or anyone else has done it before...).
Y at - it an option to 'force' RMAN to restore files, regardless of what happened before?
Thank you,
Heiko
Edited by: user7368717 the 15.09.2009 07:54What the o/s if you are at and is the database always opens when you delete the file?
There is an option of FORCE with RESTORATION.
-
RMAN-06023: no backup or copy of datafile 40 found to restore
I'm using Oracle 10.2.0.3on Linux.
I have a full backup taken a few months back.
Database changes are quite small, so I was asked to do a recovery until the time.
After the last database backup a few spaces have been created, and I do not have a backup of them.
Now, when I tried to restore from old backup I hit this error
RMAN > restore database from tag = "TAG20080819T104511";
From restoration to 17 December 08
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at 2008-12-17 14:52:39
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 40 found to restore
RMAN-06023: no backup or copy of datafile 39 found to restore
RMAN-06023: no backup or copy of datafile 38 found to restore
Is it possible to ignore these storage spaces and to make a point in time recovery?Hi Ben!
To exclude a tablespace in backup/restore do the following:
Find the name of the repository where 40 datafile belongs to 1.).
SELECT tablespace_name
FROM dba_tablespaces t, dba_data_files d
WHERE t.tablespace_name = d.tablespace_name
AND d.file_id = 40;
2.) configure an exclusion for this tablespace (allows to name TS1) in rman
CONFIGURE EXCLUDE FOR TABLESPACE TS1;3.) Repeat steps 1 and 2 for datafiles 38 and 39.
4.) Restore the database
RESTORE DATABASE;
5.) Actually you can't recovery your database because of the missing datafiles. Try to recreate them. This will only work, if you've all the archivelogs since your last backup. Do this within SQL*Plus
startup mountALTER DATABASE
CREATE DATAFILE 40
AS 'path/filename of file number 40';
6.) repeat step 5 for 38 and 39 data files
I don't exactly know if it works or not but I hope!
concerning
-
Office key code lost but he must run restore
2008 HP G60 - 120US 32-bit Vista laptop
Need to run in full restoration, but did not have the code key/drive for Microsof Office 2007 I got Office Depot
install at time of purchase. It is located? What is possible, don't want to lose him.
Thank you
Welcome to Corey.
If you can still start your system test it?
http://www.NirSoft.NET/utils/product_cd_key_viewer.html
Download links are at the bottom of this page.
Let us know how things are going.
-
BlackBerry Z10 must help restore data backed up again Z10 but did not have my old Z10
Will be transfer of link blackberry an old back-up for a new Z10 Z10 when I don't have the old phone to connect.
Maybe Ive missed something but I'm unable to make this project a reality.
It would seem that the idea to save the phone would be somehow backup access at any given time.
Any direction would be appreciated.
Thanks for your input John. It seems that I tried to restore it with the wrong file.
The restoration has worked a bit, but some contacts are missing. Better than nothing, I suppose.
-
I want to just make sure I don't lose my products when I get my MacBook Pro erased, but they are of 2012 so I'm afraid I won't be able to DL them again!
Serial number are a permanent feature except under certain conditions. Use of the cabin serve you when wish you them, always check the compatibility of the operating system.
Concerning
Stéphane
-
the backup database must be restored after failover and flashback 11
I tried a failover with 11g r2 and RAC. Failover worked. I have flashed then return of the database (old primary) according to this http://docs.oracle.com/cd/E11882_01/server.112/e17022/scenarios.htm#i1049997, and now is the archiveurs application again.
The problem is in the broker, it says this
I tried deactivating and reactivating the configuration, but still the same. Any other ideas?DGMGRL> show configuration; Configuration - DG_Config Protection Mode: MaxPerformance Databases: DB11G_STBY - Primary database DB11G - Physical standby database (disabled) ORA-16661: the standby database needs to be reinstated Fast-Start Failover: DISABLED Configuration Status: SUCCESS
Here's a link [url http://nikolayivankin.wordpress.com/2012/02/14/dgmgrl-reinstating-ex-primary-to-standby-by-flashback-database-feature/] a demo, your theme
-
When I try to restore datafile 1 with this script
RUN
{
SET up this THAT TIME = "to_date('2012-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS')";
RESTORE THE FILE DATA 1;
}
---------------------------
ORA-19870: error reading backup total /mnt/hgfs/2012_01_01/o1_mf_nnndf_TAG20120101T050005_7hzm1qc4_.bkp
ORA-19612: datafile 1 not restored because of missing or corrupted data
switch to the previous backup
--------------------------
RMAN > RESTORE DATAFILE 1 to this THAT TIME = "to_date('2012-01-01:00:00:00','YYYY-MM-DD:HH24:MI:SS')" Overview.
From restoration to January 10, 12
using channel ORA_DISK_1
using the ORA_DISK_2 channel
using the ORA_DISK_3 channel
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command at the 13:11:19 10/01/2012
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 1 found to restore
--------------------------------
RMAN > LIST BACKUP OF THE DATA 1 Summary file;
Backup list
===============
S LV TY Device Type delay #Pieces compressed #Copies Tag key
------- -- -- - ----------- --------------- ------- ------- ---------- ---
40969 A DISC 1 1 JANUARY 12 1 no TAG20120101T050005
----------------------------------
and when I write "backup list '; output is here where I can see datafile 1...
Time of accomplishment BS key Type LV size device Type elapsed time
------- ---- -- ---------- ----------- ------------ ---------------
40969 full 32,28 G DISC 02:07:15 1st January 12
BP key: situation 28432: AVAILABLE Tablet: NO Tag: TAG20120101T050005
Part name: /mnt/hgfs/2012_01_01/o1_mf_nnndf_TAG20120101T050005_7hzm1qc4_.bkp
List of defined backup data files 40969
Name of file LV Type cash SNA cash time
---- -- ---- ---------- --------- ----
25035430765 full 1 1 January 12 /oradata1/ISPRODDB11/datafile/o1_mf_system_331jc17w_.dbf
2 full 25035430765 /oradata1/ISPRODDB11/datafile/o1_mf_undotbs1_331jc19r_.dbf 1 January 12
4 integer 25035430765 /oradata1/ISPRODDB11/datafile/o1_mf_users_331jc1b2_.dbf 1 January 12
35 full 25035430765 /oradata1/ISPRODDB11/datafile/sap.dbf 1 January 12
56 full 25035430765 /oradata2/ISPRODDB11/datafile/TBS_UYS05.dbf 1 January 12
------------------------------
and the incarnation of the list;
RMAN > LIST INCARNATION;
List of Incarnations of the database
DB key Inc key STATE ID DB name DB reset reset time SNA
------- ------- -------- ---------------- --- ---------- ----------
1 1 ISPRODDB 4210711725 PARENT 1 19 DECEMBER 06
2 2 ISPRODDB 4210711725 RUNNING 564488 26 APRIL 07
I m able to restore all data files but datafile 1 (system) and 3 (sysaux)... I don't know what to do...828193 wrote:
When I put until 2012-01-01 12:00From back to January 10, 12
using channel ORA_DISK_1
using the ORA_DISK_2 channel
using the ORA_DISK_3 channel
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at the 15:28:53 10/01/2012
RMAN-06094: datafile 1 must be restored.so, if I want to restore a datafile to 2012-01-01 00:00 I need previous backupset? right?
Fix.
Has done restoration work when you set the until to 2012-01-01 12:00?Brgds
Johan -
ORA-17629: unable to connect to the remote database server
Hello
I have put Dataguard in place with primary and 1 physical standby for learning/test database:
I do NOT plan the unloading of RMAN backups on the physics of the day before.
Recorded the primary database with RMAN and when "resync catalog db_unique_name all;" is issued.
I get the following error:
---------------------------------------------------------------------------------------------------------------------
RMAN > catalog resync db_unique_name all;
from full resynchronization of the recovery catalog
full complete Resync
resynchronization of data base with DB_UNIQUE_NAME ASTTESTB
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failed to db_unique_name resynchronization command at 28/09/2011 11:34:23
ORA-17629: unable to connect to the remote database server
ORA-17628: Oracle 17629 error returned by remote Oracle Server
------------------------------------------------------------------------------------------------------------------
Configuration of RMAN for the main proceedings are the following:
RMAN > show all to db_unique_name asttest;
RMAN settings for database with db_unique_name ASTTEST are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP # by default
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
Configuration of RMAN for instance physical standby are:
RMAN > show all to db_unique_name asttestb;
RMAN settings for database with db_unique_name ASTTESTB are:
CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;
CONFIGURE BACKUP OPTIMIZATION # by default
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE DB Nom_unique "asttest" CONNECT IDENTIFIER ' ASTTEST. UMDNJ. EDU'; _
CONFIGURE DB "Asttestb" of nom_unique CONNECT IDENTIFIER "asttestb"; _
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / opt/oracle/product/11.2.0/dbhome_1/dbs/snapcf_asttest.f'; # by default
----------------------------------------------------------------------------------------------------------------------
When I tested missing missing datafile and control file scenario on the primary database, it worked (Advisor to recover data)
However, missing datafile scenario does not work on the physics of the day before.
Here are the steps I followed:
********************************************
1 renamed a file of physical data - in standby mode:
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf
bash - $3.2 mv rmandg_data01.dbf rmandg_data01.dbf_old
bash - $3.2 ls - ltr
Total 107832
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:00 rmandg_data01.dbf_old
2. restore the datafile (find the data file # view v$ recover_file):
RMAN > restore datafile 5;
From restoration to 5 October 11
Segmentation fault
3. in spite of the error, published "recover datafile command.
4 RMAN > recover datafile 5;
From pick up to 5 October 11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 10 type of device = DISK
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:00:40
RMAN-06094: datafile 5 must be restored.
5. manually copy the physical primary datafile - in standby mode, & then problem recover RMAN command:
bash - $3.2 scp oracle@msudrainier:/ora03/oradata/asttest/rmandg_data01.dbf.
rmandg_data01.dbf 100% 50 MB 16.7 MB/s 00:03
bash - $3.2 ls - ltr
Total 159096
-rw - r - 1 oracle oinstall 52429312 16 September 12:19 asttest_redo03.log
-rw - r - 1 oracle oinstall 61874176 Sep 29 15:41 asttest_temp01.dbf
-rw - r - 1 oracle oinstall 52436992 5 Oct 11:49 rmandg_data01.dbf_old
-rw - r - 1 oracle oinstall 52436992 5 Oct 12:01 rmandg_data01.dbf
RMAN > recover datafile 5;
From pick up to 5 October 11
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 05/10/2011 12:01:59
RMAN-06067: RECOVER the DATABASE required with a backup control file or created
6. of course RMAN commands have failed to restore the missing data file;
So I renamed the file to original and rebooted repeat services applies - this restore the data file and now the configuration state of the DG is normal.
*********************************************************************************
Not quite sure if I'm still he hands the right way or if the error above is related to RMAN not able to synchronize with the physics of the day before.
The documentation I want to talk to is here (1 paragraph):
[http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD | http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/rman.htm#BAJDFBDD]
Any pointers/direction and advise is greatly appreciated.
Best regards
NKI got it!
/home/oracle:STANDBY >$ORACLE_HOME/bin/rman target sys/
catalog / @rcatalog Recovery Manager: Release 11.2.0.1.0 - Production on Fri Oct 7 14:12:10 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: PRIMARY (DBID=1562898590, not open) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; resyncing from database with DB_UNIQUE_NAME PRIMARY starting full resync of recovery catalog RMAN output not resynced for database with DB_UNIQUE_NAME PRIMARY full resync complete If the necessary connection string a target/sys and a catalogue
RMAN target sys /
catalog / @rcatalog I did my standby
Will try the primary
Best regards
mseberg
Work on both. Great question!
connected to target database: PRIMARY (DBID=1562898590) connected to recovery catalog database RMAN> resync catalog from db_unique_name all; starting full resync of recovery catalog full resync complete resyncing from database with DB_UNIQUE_NAME STANDBY RMAN output not resynced for database with DB_UNIQUE_NAME STANDBY RMAN>
Published by: mseberg on October 7, 2011 14:16
Thanks a ton for sticking to it. I'll add this little thing to my web site.
Published by: mseberg on October 7, 2011 14:22
-
Hello
I'm learing RMAN and beginner in this area. I have a doubt for recovey db.
I took hotbackup full db using controlfile deposit of GR 11, 2 db. Then I restored it on the same host, directory structure has also been even during the restoration restore n as it was during the backup.
Safeguard measures:
RMAN > configure redundancy 2 retention policy;
RMAN > set the parallelism of peripheral disc type 2;
RMAN > configure channel device type disk format ' / home/oracle/rman_backup/ora_df%t_b%s_p%p';
RMAN > configure controlfile autobackup on;
RMAN > configure CONTROLFILE AUTOBACKUP peripheral type disc format in ' / home/oracle/rman_backup/ora_cf%F';
RMAN > set up optimization backup;
RMAN > show all.
RMAN > backup the database archivelog;
Restore and refresh as follows:
*. On SQLPLUS, stop immediately
*. Remove all the data files, redo logs, control files, newspapers archived (of the oradata and flashback area)
*. On the RMAN command prompt:
1 RMAN > startup nomount;
2 RMAN > restore controlfile to ' / home/oracle/rman_backup/ora_cfc-4124714611-20110510-00';
3 RMAN > change the editing of the database;
4 RMAN > restore database;
5 RMAN > backup from the list of the archivelog all;
6 RMAN > recover database until sequence 6.
7 RMAN > alter database open resetlogs;
On the SQL command prompt:
8. SQL > select group # first_change #, status, sequence #, archived log v$. (this step was performed before you recover the database, that is to say prior to step 6)
GROUP # FIRST_CHANGE # STATUS # ARC SEQUENCE
1 962626 YES 4 INACTIVE
3 979898 6 CURRENT NO.
*2 979836 ACTIVE 5 YES*
Since up to SEQ 5 only, archives were present at the start, I got db up to seq 5, but RMAN showed following error:*.
RMAN > recover database until the sequence 5.
From pick up to 22 May 11
using channel ORA_DISK_1
using the ORA_DISK_2 channel
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the command recover at 22/05/2011 22:36:21
RMAN-06556: datafile 1 must be restored from a backup that is older than SNA 979836
Then I cleaned new system and gave 6 SEQ next time during recovery as it is the highest seq, but since archivelog to seq 6 is not present or redo logs are present (as far as my backup rman understanding isn't back ups redo logs and I had deleted previous recovery of host newspapers before starting the recovery and restoration) , then how is the recovery completed successfully? +
Here are the steps of restoration and recovery with o/p for your reference:
target [oracle@purnima 112_db] $ rman.
Recovery Manager: release 11.2.0.1.0 - Production Wednesday, may 25, 22:19:49 2011
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to the database target (not started)
1 RMAN > startup nomount;
Oracle instance started
Total System Global Area 619360256 bytes
Bytes of size 1338280 fixed
427820120 variable size bytes
184549376 of database buffers bytes
Redo buffers 5652480 bytes
2 RMAN > restore controlfile to ' / home/oracle/rman_backup/ora_cfc-4124714611-20110510-00';
From restoration to 25 May 11
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 19 type of device = DISK
channel ORA_DISK_1: restore the control file
channel ORA_DISK_1: restore complete, duration: 00:00:04
output file name=/home/oracle/112_db/oradata/honey/control01.ctl
output file name=/home/oracle/112_db/flash_recovery_area/honey/control02.ctl
Finished restoring to May 25, 11
3 RMAN > change the editing of the database;
mounted database
output channel: ORA_DISK_1
RMAN > show all.
Database with db_unique_name HONEY RMAN configuration parameters are:
CONFIGURE REDUNDANCY 2 RETENTION STRATEGY;
CONFIGURE BACKUP OPTIMIZATION
SET UP DEFAULT DISK DEVICE TYPE; # by default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / home/oracle/rman_backup/ora_cf%F';
SET UP THE DEVICE TYPE DISK PARALLELISM 2 TYPE OF BACKUP BACKUPSET.
CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT ' / home/oracle/rman_backup/ora_df%t_b%s_p%p';
CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
CONFIGURE ENCRYPTION OF DATABASE # by default
CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / home/oracle/112_db/product/11.2.0/dbhome/dbs/snapcf_honey.f'; # by default
4 RMAN > restore database;
From restoration to 25 May 11
From implicit overlapping backup 25 May 11
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 20 type of device = DISK
allocated channel: ORA_DISK_2
channel ORA_DISK_2: SID = 21 type of device = DISK
Intersected 4 objects
Cut 3 objects
Finished the backup implicit intersection to 25 May 11
Starting copy of implicit intersection to 25 May 11
using channel ORA_DISK_1
using the ORA_DISK_2 channel
Copy of implicit overlap finished on 25 May 11
the search for all files in the recovery area
cataloging files...
not cataloged files
using channel ORA_DISK_1
using the ORA_DISK_2 channel
channel ORA_DISK_1: from the restore backup set data file
channel ORA_DISK_1: specifying datafile (s) to restore from backup set
channel ORA_DISK_1: restore datafile 00002 to /home/oracle/112_db/oradata/honey/sysaux01.dbf
channel ORA_DISK_1: restore datafile 00003 to /home/oracle/112_db/oradata/honey/undotbs01.dbf
channel ORA_DISK_1: restore datafile 00005 to /home/oracle/112_db/oradata/honey/example01.dbf
channel ORA_DISK_1: reading of the backup/home/oracle/rman_backup/ora_df750773827_b15_p1 element
channel ORA_DISK_2: from the restore backup set data file
channel ORA_DISK_2: specifying datafile (s) to restore from backup set
channel ORA_DISK_2: restore datafile 00001 to /home/oracle/112_db/oradata/honey/system01.dbf
channel ORA_DISK_2: restore datafile 00004 in /home/oracle/112_db/oradata/honey/users01.dbf
channel ORA_DISK_2: reading of the backup/home/oracle/rman_backup/ora_df750773827_b14_p1 element
channel ORA_DISK_1: piece handle = / home/oracle/rman_backup/ora_df750773827_b15_p1 tag = TAG20110510T121707
channel ORA_DISK_1: restored the backup part 1
channel ORA_DISK_1: restore complete, duration: 00:01:17
channel ORA_DISK_2: piece handle = / home/oracle/rman_backup/ora_df750773827_b14_p1 tag = TAG20110510T121707
channel ORA_DISK_2: restored the backup part 1
channel ORA_DISK_2: restoration complete, duration: 00:01:18
Finished restoring to May 25, 11
5 RMAN > backup from the list of the archivelog all;
List of backup sets
===================
Time of accomplishment time BS key size Device Type
------- ---------- ----------- ------------ ---------------
16,29 6 M DISK 00:00:01 MAY 10, 11
BP key: 6 location: AVAILABLE Tablet: NO Tag: TAG20110510T121703
Item name: / home/oracle/rman_backup/ora_df750773823_b13_p1
List of newspapers archived on backup the value 6
The next time that THRD Seq YVERT low low time next YVERT
---- ------- ---------- --------- ---------- ---------
1 4 962626 10 MAY 11 979836 10 MAY 11
Time of accomplishment time BS key size Device Type
------- ---------- ----------- ------------ ---------------
22.50 9 K DISK 00:00:00 10 MAY 11
BP key: 9 situation: AVAILABLE Tablet: NO Tag: TAG20110510T121834
Item name: / home/oracle/rman_backup/ora_df750773914_b16_p1
List of newspapers archived on backup value 9
The next time that THRD Seq YVERT low low time next YVERT
---- ------- ---------- --------- ---------- ---------
1 5 979836 10 MAY 11 979898 10 MAY 11
6 RMAN > recover database until sequence 6.
Starting recover at 25 May 11
using channel ORA_DISK_1
using the ORA_DISK_2 channel
starting media recovery
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archives Journal
Archives journal thread = 1 = 5 sequence
channel ORA_DISK_1: reading of the backup/home/oracle/rman_backup/ora_df750773914_b16_p1 element
channel ORA_DISK_1: piece handle = / home/oracle/rman_backup/ora_df750773914_b16_p1 tag = TAG20110510T121834
channel ORA_DISK_1: restored the backup part 1
channel ORA_DISK_1: restore complete, duration: 00:00:01
Archive log file name=/home/oracle/112_db/flash_recovery_area/HONEY/archivelog/2011_05_25/o1_mf_1_5_6xtfgqc6_.arc thread = 1 = 5 sequence
default channel: archived deletion or newspapers
RECID = STAMP 16 = 752106671 name=/home/oracle/112_db/flash_recovery_area/HONEY/archivelog/2011_05_25/o1_mf_1_5_6xtfgqc6_.arc archived log file
media recovery complete, duration: 00:00:01
Finished recover at 25 May 11
7 RMAN > alter database open resetlogs;
open database
8 RMAN > exit
Kind regards
Purnima JohariI have no onlinelogs on the host. I deleted all the log files from the flash and oradata recovery area before you begin the process of restoration and recovery on the host (.dbf, .log, .ctl). When I tried with "database recovery command", he gave following error (it's just the excerpt from o/p):
Ah - yes: If you remove the onlinelogs then you receive the above error because a newspaper archive does not yet exist and the onlinelog with sequence 6 is missing too.
>
So you mean if we use up to clause with database recovery command, it always runs recovery up to n - 1. So imagine a scenario where all newspapers of recovery have been archived, if highest till SEQ that checked is generated is N, then to until I give SEQ N + 1 as up to execute it 'N' no time. Right?
It's just too. It goes same for the RCS. If you want to recover to the last SNA in a specific archivelog, you can query the column NEXT_CHANGE # of v$ archived_log , then you will run 'restore database until the SNA... "and give the RCS of NEXT_CHANGE #-because it will recover to NEXT_CHANGE #-1.
See you soon
Jörg -
Hi all
I am trying to restore the database to the point in time. But during this operation, I get following error.
But backups are available. Could you please help me...
[oracle@localhost ~] target rman $ /.
Recovery Manager: release 11.2.0.1.0 - Production on Wed Feb 13 11:54:41 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID = 1314445644, is not open)
RMAN > run
2 > {}
3 > until ' to_date (December 2, 2013 20:03 ',' DD-MM-YYYY HH24:MI:SS') ";
4 > restore database;
5 > restore database;
{6 >}
executing command: SET until clause
From restoration to February 13, 13
using the control file of the target instead of recovery catalog database
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID = 10 type of device = DISK
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the restore command to the 13/02/2013 11:58:02
RMAN-06026: some targets not found - abandonment of restoration
RMAN-06023: no backup or copy of datafile 5 found to restore
RMAN-06023: no backup or copy of the file 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
RMAN >Hello
Now, only yesterday I took the full backup of the database (February 12, 2013). Now I want to restore back to 2 days (February 11, 2013---> my time target).
Unfortunately, you cannot restore to February 11, 2013 by using the backup set February 12, 2013.
CAMILLE, you must restore a previous backup before the time runs out.Kind regards
-
How to skip unwanted tablespaces restoration and recovery
DB version: 11.2.0.1.0
Version of the OS: AIX 6.1
I have a full backup (level 0, level 1, archives, controlfile, spfile) for a database. Now, I have to restore and recover the database on another server. I know that some storage spaces that are not necessary. This means, the tablespace are just for the backup of tables etc. and storage spaces are not recovered & restored then also it very well. My main idea is to save time by not restore & recovery of unwanted files. Here is the output of outline report.
I used "RMAN > sql ' alter database datafile offline to drop 4"; "take one data file for users of tablespaces in offline mode. Here are the complete logs.RMAN> report schema; Report of database schema for database with db_unique_name CORE List of Permanent Datafiles =========================== File Size(MB) Tablespace RB segs Datafile Name ---- -------- -------------------- ------- ------------------------ 1 2048 SYSTEM YES /u04/oradata/CORE/system01.dbf 2 1024 SYSAUX NO /u04/oradata/CORE/sysaux01.dbf 3 1024 UNDOTBS YES /u04/oradata/CORE/undots01.dbf 4 1046 USERS NO /u04/oradata/CORE/users01.dbf 5 1024 TEST_TAB NO /u04/oradata/CORE/test_tab01.dbf List of Temporary Files ======================= File Size(MB) Tablespace Maxsize(MB) Tempfile Name ---- -------- -------------------- ----------- -------------------- 1 1024 TEMP 1024 /u04/oradata/CORE/temp01.dbf
But in the newspapers, I don't see that datafile 4 is always restored which means that I spend more time on the restoration of files that I need. Is it possible to do that?Recovery Manager: Release 11.2.0.1.0 - Production on Fri Feb 1 13:27:34 2013 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database (not started) connected to recovery catalog database RMAN> startup nomount Oracle instance started Total System Global Area 4275781632 bytes Fixed Size 2213632 bytes Variable Size 822085888 bytes Database Buffers 3439329280 bytes Redo Buffers 12152832 bytes RMAN> restore controlfile from autobackup; Starting restore at 01-FEB-13 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=65 device type=DISK allocated channel: ORA_DISK_2 channel ORA_DISK_2: SID=127 device type=DISK channel ORA_DISK_1: looking for AUTOBACKUP on day: 20130201 channel ORA_DISK_1: AUTOBACKUP found: /oraclebackup/CORE/CTL_c-912678878-20130201-02 channel ORA_DISK_2: looking for AUTOBACKUP on day: 20130201 channel ORA_DISK_2: skipped, AUTOBACKUP already found channel ORA_DISK_1: restoring control file from AUTOBACKUP /oraclebackup/CORE/CTL_c-912678878-20130201-02 channel ORA_DISK_1: control file restore from AUTOBACKUP complete output file name=/u01/oradata/CORE/control01.ctl output file name=/u02/oradata/CORE/control02.ctl output file name=/u03/oradata/CORE/control03.ctl Finished restore at 01-FEB-13 RMAN> alter database mount; database mounted released channel: ORA_DISK_1 released channel: ORA_DISK_2 RMAN> sql 'alter database datafile 4 offline for drop'; sql statement: alter database datafile 4 offline for drop RMAN> restore database; Starting restore at 01-FEB-13 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=96 device type=DISK allocated channel: ORA_DISK_2 channel ORA_DISK_2: SID=127 device type=DISK 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 /u04/oradata/CORE/sysaux01.dbf channel ORA_DISK_1: restoring datafile 00004 to /u04/oradata/CORE/users01.dbf channel ORA_DISK_1: restoring datafile 00005 to /u04/oradata/CORE/test_tab01.dbf channel ORA_DISK_1: reading from backup piece /oraclebackup/CORE/DF_L0_CORE_01022013_2no0slbn_87_1 channel ORA_DISK_2: starting datafile backup set restore channel ORA_DISK_2: specifying datafile(s) to restore from backup set channel ORA_DISK_2: restoring datafile 00001 to /u04/oradata/CORE/system01.dbf channel ORA_DISK_2: restoring datafile 00003 to /u04/oradata/CORE/undots01.dbf channel ORA_DISK_2: reading from backup piece /oraclebackup/CORE/DF_L0_CORE_01022013_2oo0slbn_88_1 channel ORA_DISK_2: piece handle=/oraclebackup/CORE/DF_L0_CORE_01022013_2oo0slbn_88_1 tag=LEVEL0 channel ORA_DISK_2: restored backup piece 1 channel ORA_DISK_2: restore complete, elapsed time: 00:04:06 channel ORA_DISK_1: piece handle=/oraclebackup/CORE/DF_L0_CORE_01022013_2no0slbn_87_1 tag=LEVEL0 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:04:16 Finished restore at 01-FEB-13 RMAN> recover database; Starting recover at 01-FEB-13 using channel ORA_DISK_1 using channel ORA_DISK_2 starting media recovery archived log for thread 1 with sequence 1 is already on disk as file /u05/oradata/CORE/CORE_11806244987.ARC archived log for thread 1 with sequence 2 is already on disk as file /u05/oradata/CORE/CORE_21806244987.ARC archived log file name=/u05/oradata/CORE/CORE_11806244987.ARC thread=1 sequence=1 archived log file name=/u05/oradata/CORE/CORE_21806244987.ARC thread=1 sequence=2 unable to find archived log archived log thread=1 sequence=3 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 02/01/2013 13:37:07 RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 3 and starting SCN of 365298 RMAN> alter database open resetlogs; database opened new incarnation of database registered in recovery catalog starting full resync of recovery catalog full resync complete
Hello;
You can make a leap like this:
RMAN > RECOVER DATABASE SKIP users TABLESPACE; (for multiples use the comma between)
Temp history, RESTORE DATABASE SKIP TABLESPACE;
You will need to provide the Tablespace names in single quotes.
Your RESTORE command must also include SKIP TABLESPACE tablespacename or SKIP FOREVER TABLESPACE tablespacename to exclude the specific tablespace.
http://www.di.unipi.it/~GHELLI/didattica/bdldoc/B19306_01/backup.102/b14192/recov004.htm (6.4.3.2 Performing Media Recovery of restored database, Tablespace or Datafile)
Best regards
mseberg
Maybe you are looking for
-
"How can I fix the iCloud" you cannot connect at this time "error?
I noticed that I was not able to view my use iCloud on my MacBook Pro. To try to solve the problem, I registered on iCloud, but now I'm more able to sign in - it displays you cannot connect at this time. Try to connect again. In addition, I was not a
-
Click satellite 10 - upgrding BIOS problem
Hi all!I have a new toshiba satellite click on 10, but when I try to update the BIOS to 1.6 it pops up an error that says "update bios image is not valid in the current bios or flash secure does not support flash secure." What it means? How can I sol
-
Mysterious FF 5.0.1 for Linux and Windows
Hello. Mozilla has released, on 11 July, FF 5.0.1 to bring increased compatibility with Mac OS X Lion. You said: Please note: users on Windows and Linux do not need and will not see the updated offer. Yesterday, I noticed that FF 5.0.1 for Linux and
-
none are compatible fast el nero 9
Quiero compatibilizar el nero express 9 en miequipo, tengo el windows 7
-
Impossible to uninstall Silverlight 4 (4.0.50524.0)
I'm trying to upgrade to the latest version of Silverlight (my current version no longer works). When you try to upgrade, I tells me that I must first uninstall Silverlight. When I try to uninstall, I get the following error: "This patch package coul