Restore error  RMAN-11003

Hi,
Db :11.2.0.1
Os : Aix 6
we are doing refresh from production to test server using rman.We started instance and restored the control file.
we got the following error when execute restore script.
MAN> connect target *
2> RUN
3> {
4> allocate channel t1 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo_iit6.opt)';
5> allocate channel t2 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo_iit6.opt)';
6> allocate channel t3 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo_iit6.opt)';
7> allocate channel t4 type 'SBT_TAPE' parms 'ENV=(TDPO_OPTFILE=/usr/tivoli/tsm/client/oracle/bin64/tdpo_iit6.opt)';
8> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/system01.dbf' TO '+P7_DATAGROUP01/P7/system01.dbf';
9> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/sysaux01.dbf' TO '+P7_DATAGROUP01/P7/sysaux01.dbf';
10> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/undotbs01.dbf' TO '+P7_DATAGROUP01/P7/undotbs01.dbf';
11> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/users01.dbf' TO '+P7_DATAGROUP01/P7/users01.dbf';
12> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/tools01.dbf' TO '+P7_DATAGROUP01/P7/tools01.dbf';
13> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/two_kb_tbs.dbf' TO '+P7_DATAGROUP01/P7/two_kb_tbs.dbf';
14> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/wwfdata01.dbf' TO '+P7_DATAGROUP01/P7/wwfdata01.dbf';
15> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/wwfindex01.dbf' TO '+P7_DATAGROUP01/P7/wwfindex01.dbf';
16> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/ntwksdata01.dbf' TO '+P7_DATAGROUP01/P7/ntwksdata01.dbf';
17> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/ntwksindex01.dbf' TO '+P7_DATAGROUP01/P7/ntwksindex01.dbf';
18> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/emadata01.dbf' TO '+P7_DATAGROUP01/P7/emadata01.dbf';
19> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/emaindex01.dbf' TO '+P7_DATAGROUP01/P7/emaindex01.dbf';
20> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/scpodata01.dbf' TO '+P7_DATAGROUP01/P7/scpodata01.dbf';
21> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/scpoindex01.dbf' TO '+P7_DATAGROUP01/P7/scpoindex01.dbf';
22> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/igpdata01.dbf' TO '+P7_DATAGROUP01/P7/igpdata01.dbf';
23> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/ikeadata01.dbf' TO '+P7_DATAGROUP01/P7/ikeadata01.dbf';
24> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/ikeaindex01.dbf' TO '+P7_DATAGROUP01/P7/ikeaindex01.dbf';
25> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/fedata01.dbf' TO '+P7_DATAGROUP01/P7/fedata01.dbf';
26> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/indx01.dbf' TO '+P7_DATAGROUP01/P7/indx01.dbf';
27> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/prefstat01.dbf' TO '+P7_DATAGROUP01/P7/prefstat01.dbf';
28> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/support01.dbf' TO '+P7_DATAGROUP01/P7/support01.dbf';
29> SET NEWNAME FOR DATAFILE '+IIT6_DATAGROUP01/iit6/tmpscpix01.dbf' TO '+P7_DATAGROUP01/P7/tmpscpix01.dbf';
30> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo01a.log'' TO ''+P7_REDOGROUP01/P7/redo01a.log'' ";
31> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo02a.log'' TO ''+P7_REDOGROUP01/P7/redo02a.log'' ";
32> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo03a.log'' TO ''+P7_REDOGROUP01/P7/redo03a.log'' ";
33> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo01b.log'' TO ''+P7_REDOGROUP01/P7/redo01b.log'' ";
34> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo02b.log'' TO ''+P7_REDOGROUP01/P7/redo02b.log'' ";
35> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo03b.log'' TO ''+P7_REDOGROUP01/P7/redo03b.log'' ";
36> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo04a.log'' TO ''+P7_REDOGROUP01/P7/redo04a.log'' ";
37> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo04b.log'' TO ''+P7_REDOGROUP01/P7/redo04b.log'' ";
38> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo05a.log'' TO ''+P7_REDOGROUP01/P7/redo05a.log'' ";
39> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo05b.log'' TO ''+P7_REDOGROUP01/P7/redo05b.log'' ";
40> RESTORE DATABASE until time "to_date('2012-10:28-11:15:40','YYYY-MM-DD-HH24:MI:SS')";
41> SWITCH DATAFILE ALL;
42> release channel t1;
43> release channel t2;
44> release channel t3;
45> release channel t4;
46> }
47>
connected to target database: iit6 (DBID=3947283088, not open)
using target database control file instead of recovery catalog
allocated channel: t1
channel t1: SID=4975 device type=SBT_TAPE
channel t1: Data Protection for Oracle: version 5.5.2.1
allocated channel: t2
channel t2: SID=5427 device type=SBT_TAPE
channel t2: Data Protection for Oracle: version 5.5.2.1
allocated channel: t3
channel t3: SID=5879 device type=SBT_TAPE
channel t3: Data Protection for Oracle: version 5.5.2.1
allocated channel: t4
channel t4: SID=6331 device type=SBT_TAPE
channel t4: Data Protection for Oracle: version 5.5.2.1
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
executing command: SET NEWNAME
sql statement: ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo01a.log'' TO ''+P7_REDOGROUP01/P7/redo01a.log''
sql statement: ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo02a.log'' TO ''+P7_REDOGROUP01/P7/redo02a.log''
sql statement: ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo03a.log'' TO ''+P7_REDOGROUP01/P7/redo03a.log''
sql statement: ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo01b.log'' TO ''+P7_REDOGROUP01/P7/redo01b.log''
released channel: t1
released channel: t2
released channel: t3
released channel: t4
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of sql command on default channel at 10/28/2012 12:47:47
RMAN-11003: failure during parse/execution of SQL statement: ALTER DATABASE RENAME FILE '+IIT6_REDOGROUP01/iit6/redo01b.log' TO '+P7_REDOGROUP01/P7/redo01b.log'
ORA-01511: error in renaming log/data files
ORA-01516: nonexistent log file, data file, or temporary file "+IIT6_REDOGROUP01/iit6/redo01b.log"
Recovery Manager complete.
we have the following data group in target machine.
P7_ARCHGROUP01/
P7_DATAGROUP01/
P7_REDOGROUP01/
P7_REDOGROUP02/
Any suggestions.
Thanks

30> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo01a.log'' TO ''+P7_REDOGROUP01/P7/redo01a.log'' ";
31> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo02a.log'' TO ''+P7_REDOGROUP01/P7/redo02a.log'' ";
32> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo03a.log'' TO ''+P7_REDOGROUP01/P7/redo03a.log'' ";
33> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo01b.log'' TO ''+P7_REDOGROUP01/P7/redo01b.log'' ";
34> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo02b.log'' TO ''+P7_REDOGROUP01/P7/redo02b.log'' ";
35> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo03b.log'' TO ''+P7_REDOGROUP01/P7/redo03b.log'' ";
36> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo04a.log'' TO ''+P7_REDOGROUP01/P7/redo04a.log'' ";
37> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo04b.log'' TO ''+P7_REDOGROUP01/P7/redo04b.log'' ";
38> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo05a.log'' TO ''+P7_REDOGROUP01/P7/redo05a.log'' ";
39> SQL "ALTER DATABASE RENAME FILE ''+IIT6_REDOGROUP01/iit6/redo05b.log'' TO ''+P7_REDOGROUP01/P7/redo05b.log'' ";Check v$logfile and see the location of the member and use
SQL>ALTER DATABASE RENAME FILE '<old path>' TO 'new path';after do this comment the above lines and run script again .

Similar Messages

  • RMAN-05501: RMAN-11003 ORA-00353: log corruption near block 2048 change

    Hi Gurus,
    I've posted few days ago an issue I got while recreating my Dataguard.
    The Main issue was while duplicating target from active database I got this errors during the recovery process.
    The Restore Process Went fine, RMAN Copied the Datafiles very well, but stop when at the moment to start the recovery process from the auxiliary db
    Yesterday I took one last try,
    I follow same procedure, the one described in all Oracle Docs, Google and so on ... it's not a secret I guess.
    The I got the same issue, same errors.
    I read soemthing about archivelogs, and the Block corruption and so on, I've tried so many things (register the log... etc etc ), and than I read something about "catalog the logfile)
    and that's waht I did.
    But I was just connect to the target db.
    contents of Memory Script:
    set until scn 1638816629;
    recover
    standby
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 14-MAY-13
    starting media recovery
    archived log for thread 1 with sequence 32196 is already on disk as file /archives/CMOVP/stby/1_32196_810397891.arc
    archived log for thread 1 with sequence 32197 is already on disk as file /archives/CMOVP/stby/1_32197_810397891.arc
    archived log for thread 1 with sequence 32198 is already on disk as file /archives/CMOVP/stby/1_32198_810397891.arc
    archived log for thread 1 with sequence 32199 is already on disk as file /archives/CMOVP/stby/1_32199_810397891.arc
    archived log for thread 1 with sequence 32200 is already on disk as file /archives/CMOVP/stby/1_32200_810397891.arc
    archived log for thread 1 with sequence 32201 is already on disk as file /archives/CMOVP/stby/1_32201_810397891.arc
    archived log for thread 1 with sequence 32202 is already on disk as file /archives/CMOVP/stby/1_32202_810397891.arc
    archived log for thread 1 with sequence 32203 is already on disk as file /archives/CMOVP/stby/1_32203_810397891.arc
    archived log for thread 1 with sequence 32204 is already on disk as file /archives/CMOVP/stby/1_32204_810397891.arc
    archived log for thread 1 with sequence 32205 is already on disk as file /archives/CMOVP/stby/1_32205_810397891.arc
    archived log for thread 1 with sequence 32206 is already on disk as file /archives/CMOVP/stby/1_32206_810397891.arc
    archived log for thread 1 with sequence 32207 is already on disk as file /archives/CMOVP/stby/1_32207_810397891.arc
    archived log for thread 1 with sequence 32208 is already on disk as file /archives/CMOVP/stby/1_32208_810397891.arc
    archived log for thread 1 with sequence 32209 is already on disk as file /archives/CMOVP/stby/1_32209_810397891.arc
    archived log for thread 1 with sequence 32210 is already on disk as file /archives/CMOVP/stby/1_32210_810397891.arc
    archived log for thread 1 with sequence 32211 is already on disk as file /archives/CMOVP/stby/1_32211_810397891.arc
    archived log for thread 1 with sequence 32212 is already on disk as file /archives/CMOVP/stby/1_32212_810397891.arc
    archived log for thread 1 with sequence 32213 is already on disk as file /archives/CMOVP/stby/1_32213_810397891.arc
    archived log for thread 1 with sequence 32214 is already on disk as file /archives/CMOVP/stby/1_32214_810397891.arc
    archived log for thread 1 with sequence 32215 is already on disk as file /archives/CMOVP/stby/1_32215_810397891.arc
    archived log for thread 1 with sequence 32216 is already on disk as file /archives/CMOVP/stby/1_32216_810397891.arc
    archived log for thread 1 with sequence 32217 is already on disk as file /archives/CMOVP/stby/1_32217_810397891.arc
    archived log for thread 1 with sequence 32218 is already on disk as file /archives/CMOVP/stby/1_32218_810397891.arc
    archived log for thread 1 with sequence 32219 is already on disk as file /archives/CMOVP/stby/1_32219_810397891.arc
    archived log for thread 1 with sequence 32220 is already on disk as file /archives/CMOVP/stby/1_32220_810397891.arc
    archived log for thread 1 with sequence 32221 is already on disk as file /archives/CMOVP/stby/1_32221_810397891.arc
    archived log for thread 1 with sequence 32222 is already on disk as file /archives/CMOVP/stby/1_32222_810397891.arc
    archived log for thread 1 with sequence 32223 is already on disk as file /archives/CMOVP/stby/1_32223_810397891.arc
    archived log file name=/archives/CMOVP/stby/1_32196_810397891.arc thread=1 sequence=32196
    released channel: prm1
    released channel: stby1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/14/2013 01:11:33
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/archives/CMOVP/stby/1_32196_810397891.arc'
    ORA-00283: recovery session canceled due to errors
    ORA-00354: corrupt redo log block header
    ORA-00353: log corruption near block 2048 change 1638686297 time 05/13/2013 22:42:03
    ORA-00334: archived log: '/archives/CMOVP/stby/1_32196_810397891.arc'
    ################# What I did: ################################
    Rma target /
    RMAN>catalog archivelog '/archives/CMOVP/stby/1_32196_810397891.arc';
    The I connect to target and Auxiliary again :Rman target / catalog rman/rman@rman auxiliary
    and I run the last content of the failing memory script:RMAN> run
    set until scn 1638816629;
    recover
    standby
    clone database
    delete archivelog
    And The DB start the recovery Process and my Standby complete the recovery very weel with message "Recovery Finnish or Termintaed or Completed"
    The I could configure Datagurd
    And I check the process and the Log Apply was on and running fine, no gaps, perfect!!!!!
    How !!! Just Cataloging an "Supposed Corrupted"archive log !!!!!!
    If Any ideas, that ould be great to understand this.
    Rgds
    Carlos

    okKarol wrote:
    Hi Gurus,
    I've posted few days ago an issue I got while recreating my Dataguard.
    The Main issue was while duplicating target from active database I got this errors during the recovery process.
    The Restore Process Went fine, RMAN Copied the Datafiles very well, but stop when at the moment to start the recovery process from the auxiliary db
    Yesterday I took one last try,
    I follow same procedure, the one described in all Oracle Docs, Google and so on ... it's not a secret I guess.
    The I got the same issue, same errors.
    I read soemthing about archivelogs, and the Block corruption and so on, I've tried so many things (register the log... etc etc ), and than I read something about "catalog the logfile)
    and that's waht I did.
    But I was just connect to the target db.
    contents of Memory Script:
    set until scn 1638816629;
    recover
    standby
    clone database
    delete archivelog
    executing Memory Script
    executing command: SET until clause
    Starting recover at 14-MAY-13
    starting media recovery
    archived log for thread 1 with sequence 32196 is already on disk as file /archives/CMOVP/stby/1_32196_810397891.arc
    archived log for thread 1 with sequence 32197 is already on disk as file /archives/CMOVP/stby/1_32197_810397891.arc
    archived log for thread 1 with sequence 32198 is already on disk as file /archives/CMOVP/stby/1_32198_810397891.arc
    archived log for thread 1 with sequence 32199 is already on disk as file /archives/CMOVP/stby/1_32199_810397891.arc
    archived log for thread 1 with sequence 32200 is already on disk as file /archives/CMOVP/stby/1_32200_810397891.arc
    archived log for thread 1 with sequence 32201 is already on disk as file /archives/CMOVP/stby/1_32201_810397891.arc
    archived log for thread 1 with sequence 32202 is already on disk as file /archives/CMOVP/stby/1_32202_810397891.arc
    archived log for thread 1 with sequence 32203 is already on disk as file /archives/CMOVP/stby/1_32203_810397891.arc
    archived log for thread 1 with sequence 32204 is already on disk as file /archives/CMOVP/stby/1_32204_810397891.arc
    archived log for thread 1 with sequence 32205 is already on disk as file /archives/CMOVP/stby/1_32205_810397891.arc
    archived log for thread 1 with sequence 32206 is already on disk as file /archives/CMOVP/stby/1_32206_810397891.arc
    archived log for thread 1 with sequence 32207 is already on disk as file /archives/CMOVP/stby/1_32207_810397891.arc
    archived log for thread 1 with sequence 32208 is already on disk as file /archives/CMOVP/stby/1_32208_810397891.arc
    archived log for thread 1 with sequence 32209 is already on disk as file /archives/CMOVP/stby/1_32209_810397891.arc
    archived log for thread 1 with sequence 32210 is already on disk as file /archives/CMOVP/stby/1_32210_810397891.arc
    archived log for thread 1 with sequence 32211 is already on disk as file /archives/CMOVP/stby/1_32211_810397891.arc
    archived log for thread 1 with sequence 32212 is already on disk as file /archives/CMOVP/stby/1_32212_810397891.arc
    archived log for thread 1 with sequence 32213 is already on disk as file /archives/CMOVP/stby/1_32213_810397891.arc
    archived log for thread 1 with sequence 32214 is already on disk as file /archives/CMOVP/stby/1_32214_810397891.arc
    archived log for thread 1 with sequence 32215 is already on disk as file /archives/CMOVP/stby/1_32215_810397891.arc
    archived log for thread 1 with sequence 32216 is already on disk as file /archives/CMOVP/stby/1_32216_810397891.arc
    archived log for thread 1 with sequence 32217 is already on disk as file /archives/CMOVP/stby/1_32217_810397891.arc
    archived log for thread 1 with sequence 32218 is already on disk as file /archives/CMOVP/stby/1_32218_810397891.arc
    archived log for thread 1 with sequence 32219 is already on disk as file /archives/CMOVP/stby/1_32219_810397891.arc
    archived log for thread 1 with sequence 32220 is already on disk as file /archives/CMOVP/stby/1_32220_810397891.arc
    archived log for thread 1 with sequence 32221 is already on disk as file /archives/CMOVP/stby/1_32221_810397891.arc
    archived log for thread 1 with sequence 32222 is already on disk as file /archives/CMOVP/stby/1_32222_810397891.arc
    archived log for thread 1 with sequence 32223 is already on disk as file /archives/CMOVP/stby/1_32223_810397891.arc
    archived log file name=/archives/CMOVP/stby/1_32196_810397891.arc thread=1 sequence=32196
    released channel: prm1
    released channel: stby1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/14/2013 01:11:33
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover logfile '/archives/CMOVP/stby/1_32196_810397891.arc'
    ORA-00283: recovery session canceled due to errors
    ORA-00354: corrupt redo log block header
    ORA-00353: log corruption near block 2048 change 1638686297 time 05/13/2013 22:42:03
    ORA-00334: archived log: '/archives/CMOVP/stby/1_32196_810397891.arc'
    ################# What I did: ################################
    Rma target /
    RMAN>catalog archivelog '/archives/CMOVP/stby/1_32196_810397891.arc';
    The I connect to target and Auxiliary again :Rman target / catalog rman/rman@rman auxiliary
    and I run the last content of the failing memory script:RMAN> run
    set until scn 1638816629;
    recover
    standby
    clone database
    delete archivelog
    And The DB start the recovery Process and my Standby complete the recovery very weel with message "Recovery Finnish or Termintaed or Completed"
    The I could configure Datagurd
    And I check the process and the Log Apply was on and running fine, no gaps, perfect!!!!!
    How !!! Just Cataloging an "Supposed Corrupted"archive log !!!!!!
    If Any ideas, that ould be great to understand this.
    Rgds
    CarlosHi,
    Can you change standby database archive destination from /archives/CMOVP/stby/ other disk?
    I think this problem on your disk.
    Mahir
    p.s. I remember you before thread, too

  • When to restore controlfile, rman is complaining database not mounted?

    to restore controlfile, shouldn`t the database be in NOMOUNT status?
    if yes, then why rman is complaining ORA-01507?
    where I went wrong? Please advise.
    C:\Documents and Settings\PhoenixBai>rman target / nocatalog
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Dec 14 10:35:51 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount;
    Oracle instance started
    Total System Global Area     612368384 bytes
    Fixed Size                     1250428 bytes
    Variable Size                234883972 bytes
    Database Buffers             369098752 bytes
    Redo Buffers                   7135232 bytes
    RMAN> restore controlfile until time 'sysdate-1.5/24';
    Starting restore at 14-DEC-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/14/2010 10:36:12
    ORA-01507: database not mounted
    RMAN>

    it doesn`t. I tried long before this one.
    the dilemma i am facing is that I need to recover to the time which was included in incarnation 2.
    And to be able to reset database to incarnation 2, i need to startup MOUNT the database.
    And once you startup mount the database RESTORE CONTROLFILE won`t work any more.
    below is the standard procedure, documented on 10gR2 doc, but still, i am getting errors:
    Why it is throwing errors? HOw can I fix?
    RMAN> alter database mount;
    database mounted
    RMAN> list incarnation of database orcl;
    List of Database Incarnations
    DB Key  Inc Key DB Name  DB ID            STATUS  Reset SCN  Reset Time
    1       1       ORCL     1264908153       PARENT  1          30-AUG-05
    2       2       ORCL     1264908153       PARENT  534907     07-DEC-10
    3       3       ORCL     1264908153       CURRENT 56335397   14-DEC-10
    RMAN> reset database to incarnation 2;
    database reset to incarnation 2
    RMAN> restore database until scn 56335390;
    Starting restore at 14-DEC-10
    using channel ORA_DISK_1
    creating datafile fno=6 name=E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ETLTBS01.ORA
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSTEM01.DBF
    restoring datafile 00002 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\UNDOTBS01.DBF
    restoring datafile 00003 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\SYSAUX01.DBF
    restoring datafile 00004 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\USERS01.DBF
    restoring datafile 00005 to E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\EXAMPLE01.DBF
    channel ORA_DISK_1: reading from backup piece E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2
    MF_NNND1_TAG20101213T132300_6JCCFO2X_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=E:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2010_12_13\O1_MF_NNND1_TAG20101213
    O2X_.BKP tag=TAG20101213T132300
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
    Finished restore at 14-DEC-10
    RMAN> recover database until scn 56335390;
    Starting recover at 14-DEC-10
    using channel ORA_DISK_1
    starting media recovery
    media recovery failed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 12/14/2010 11:36:14
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
    start until change 56335390
    ORA-00283: recovery session canceled due to errors
    ORA-38727: FLASHBACK DATABASE requires a current control file.Edited by: PhoenixBai on Dec 14, 2010 11:37 AM

  • ORA-01152 when restoring from RMAN backupset in NOARCHIVELOG mode

    Hi all,
    I got the error ORA-01152 when I tried restoring an Oracle 10g R1 database from an RMAN backupset into a new server. The error returned when it reached to the level of opening the database in resetlogs.
    The database runs on NOARCHIVELOG mode and on Windows 2003 Server SP2 32-bit.
    Following is what I did in RMAN:
    set ORACLE_HOME=D:\oracle\product\10.1.0\db_1
    set ORACLE_SID=DAWA
    set PATH=D:\oracle\product\10.1.0\db_1\bin;%PATH%
    cd %ORACLE_HOME%\bin
    rman target sys/mypassword
    Recovery Manager: Release 10.2.0.1.0 - Production on Tue Feb 13 00:36:55 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount pfile=X:\temp\DawaPFILE.ORA
    connected to target database (not started)
    Oracle instance started
    Total System Global Area 1048576000 bytes
    Fixed Size 792200 bytes
    Variable Size 551807352 bytes
    Database Buffers 494927872 bytes
    Redo Buffers 1048576 bytes
    RMAN> restore controlfile from
    'X:\temp\Flash_Rec\DAWA\AUTOBACKUP\2011_07_16\O1_
    MF_S_756655133_7226R018_.BKP';
    Starting restore at 19-JUL-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=270 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL01.CTL
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL02.CTL
    output filename=D:\ORACLE\ORADATA\DAWA\CONTROL03.CTL
    Finished restore at 17-AUG-11
    alter database mount;
    database mounted
    catalog backuppiece 'X:\temp\PUMHJATD_1_1';
    catalog backuppiece 'X:\temp\PTMHJ91Q_1_1';
    /* Rename the Redologfiles,so that they can be created in new locations
    the database is opened in resetlogs */
    SQL>conn sys as sysdba
    -- get registered files from SELECT * FROM V$LOGFILE
    SQL> alter database rename file
    'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO01.LOG' to
    'X:\oracle\oradata\dawa\REDO01.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO02.LOG'
    to 'X:\oracle\oradata\dawa\REDO02.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO03.LOG'
    to 'X:\oracle\oradata\dawa\REDO03.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO04.LOG'
    to 'X:\oracle\oradata\dawa\REDO04.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO05.LOG'
    to 'X:\oracle\oradata\dawa\REDO05.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO06.LOG'
    to 'X:\oracle\oradata\dawa\REDO06.LOG';
    alter database rename file 'D:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\REDO07.LOG'
    to 'X:\oracle\oradata\dawa\REDO07.LOG';
    /* Now in RMAN: restore the datafiles
        to new locations and recover. */
    RMAN> run{
    set newname for datafile
    'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS201' TO
    'D:\oracle\oradata\dawa\UNDOTBS201';
    set newname for datafile
    'E:\ORACLE\PRODUCT\10.1.0\ORADATA\DAWA\UNDOTBS202' TO
    'D:\oracle\oradata\dawa\UNDOTBS202';
    restore database;
    switch datafile all;
    alter database open resetlogs;
    .../*  alter database open resetlogs returned the errors: */
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 08/18/2011 08:44:45
    ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2: 'D:\ORACLE\ORADATA\DAWA\UNDOTBS206'Thanks in advance.

    SYS @ DAWA> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SYS @ DAWA> startup mount
    ORACLE instance started.
    Total System Global Area 1048576000 bytes
    Fixed Size                   792200 bytes
    Variable Size             551807352 bytes
    Database Buffers          494927872 bytes
    Redo Buffers                1048576 bytes
    Database mounted.
    SYS @ DAWA> recover database using backup controlfile until cancel;
    ORA-00279: change 329012 generated at 03/08/2005 16:24:46 needed for thread 1
    ORA-00289: suggestion :
    X:\ORACLE\ORADATA\FLASH_REC\DAWA\ARCHIVELOG\2011_08_18\O1_MF_1_6_%U_.ARC
    ORA-00280: change 329012 for thread 1 is in sequence #6
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    ORA-00308: cannot open archived log
    'X:\ORACLE\ORADATA\FLASH_REC\DAWA\ARCHIVELOG\2011_08_18\O1_MF_1_6_%U_.ARC'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'X:\ORACLE\ORADATA\DAWA\SYSTEM01.DBF'You can download the alert log from here:
    http://ahmedbaraka.com/temp/alertdawa.log

  • Restore database RMAN

    Hi, I have done backup of my database but dont know how exactly do restore can any body help me or just give me the idea how to do that because i tried restore commands but what happen is i did backup and changed something and then run the restore commands but that change was there as well as it was done after the backup
    e.g.
    I have done full backup like this
    set oracle_sid=%1
    echo.>>FullBkup.log
    echo Full database backup started at:>>FullBkup.log
    date /t >>FullBkup.log
    time /t >>FullBkup.log
    rman target / cmdfile FullBkup.rcv log FullBkup.log append
    echo.>>FullBkup.log
    echo Full database backup completed at:>>FullBkup.log
    date /t >>FullBkup.log
    time /t >>FullBkup.log
    I get following files in backup folder (BW is the name of instance)
    BW_CF_FC-245465656-20060914-00
    BW_DF767861_S2_P1
    BW_DF767833_S3_P1
    Any help really be appreciated

    Thanks Daljit,
    I have ran a command but get the following error
    RMAN> run {
    2> set until time 'sysdate-1/24';
    3> restore database;
    4> recover database;
    5> alter database open;
    6> }
    executing command: SET until clause
    using target database controlfile instead of recovery catalog
    Starting restore at 19-SEP-06
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=33 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to C:\ORACLE\ORADATA\BW\SYSTEM01.DBF
    restoring datafile 00002 to C:\ORACLE\ORADATA\BW\UNDOTBS01.DBF
    restoring datafile 00003 to C:\ORACLE\ORADATA\BW\DRSYS01.DBF
    restoring datafile 00004 to C:\ORACLE\ORADATA\BW\INDX01.DBF
    restoring datafile 00005 to C:\ORACLE\ORADATA\BW\TOOLS01.DBF
    restoring datafile 00006 to C:\ORACLE\ORADATA\BW\USERS01.DBF
    restoring datafile 00007 to C:\ORACLE\ORADATA\BW\XDB01.DBF
    restoring datafile 00008 to C:\ORACLE\ORADATA\BW\BANKWORLD.ORA
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/19/2006 10:47:06
    ORA-19573: cannot obtain exclusive enqueue for datafile 1

  • Restoring of rman backup

    Hi all,
    i got a scenerion where i need to check whether rman back is valid or not.
    i have y server where production db resides and storage team kept the 7 days old rman backup in the same production server and my resposibility is to reatore the rman backup with new database name in the same server and to query the new db to cross verify that rman backup is valid or not.
    oracle version : 9.2.0.4.0
    os : windows
    appreciated the inputs.
    Thanks
    Prakash

    Can you solve your problem?
    Now I explain this for you.Consider we have database which name is "w".We want craete new database (w1) using backup of w in same machine.Also backup of database have located in D:\oracle\product\10.2.0\flash_recovery_area\W.
    First we have to create service and some directories for new W1,aslo restore spfile and controlfile as
    C:\Documents and Settings\chinar>set ORACLE_SID=W1
    C:\Documents and Settings\chinar>rman target sys/sm
    Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:00:51 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of internal recovery manager package failed
    RMAN-04005: error from target database:
    ORA-12560: TNS:protocol adapter error
    C:\Documents and Settings\chinar>oradim -new -sid W1 -intpwd sm
    Instance created.
    C:\Documents and Settings\chinar>rman target sys/sm
    Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:01:21 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup nomount;
    startup failed: ORA-01078: failure in processing system parameters
    LRM-00109: could not open parameter file 'D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE
    \INITW1.ORA'
    starting Oracle instance without parameter file for retrival of spfile
    Oracle instance started
    Total System Global Area     159383552 bytes
    Fixed Size                     1288292 bytes
    Variable Size                 58722204 bytes
    Database Buffers              92274688 bytes
    Redo Buffers                   7098368 bytes
    RMAN> restore spfile to pfile 'D:\oracle\product\10.2.0\admin\W1\pfile\initw1.or
    a' from 'D:\oracle\product\10.2.0\flash_recovery_area\W\AUTOBACKUP\2010_05_14\O1
    _MF_S_718973315_5YSS1O7W_.BKP';
    Starting restore at 14-MAY-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: autobackup found: D:\oracle\product\10.2.0\flash_recovery_ar
    ea\W\AUTOBACKUP\2010_05_14\O1_MF_S_718973315_5YSS1O7W_.BKP
    channel ORA_DISK_1: SPFILE restore from autobackup complete
    Finished restore at 14-MAY-10
    RMAN>
    RMAN> restore controlfile to 'D:\oracle\product\10.2.0\oradata\W1\control01.ctl'
    from 'D:\oracle\product\10.2.0\flash_recovery_area\W\AUTOBACKUP\2010_05_14\O1_M
    F_S_718973315_5YSS1O7W_.BKP';
    Starting restore at 14-MAY-10
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:02
    Finished restore at 14-MAY-10
    RMAN>
    then change initw1. pfile accourding to W!(all w change to W1) and create additional two copy of controlfile from
    D:\oracle\product\10.2.0\oradata\W1\CONTROL01.CTL.  then
    C:\Documents and Settings\chinar>rman target sys/sm
    Recovery Manager: Release 10.2.0.2.0 - Production on Fri May 14 11:14:34 2010
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database: DUMMY (not mounted)
    RMAN> shutdoen immediate;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00558: error encountered while parsing input commands
    RMAN-01009: syntax error: found "identifier": expecting one of: "allocate, alter
    , backup, beginline, blockrecover, catalog, change, connect, copy, convert, crea
    te, crosscheck, configure, duplicate, debug, delete, drop, exit, endinline, flas
    hback, host, {, library, list, mount, open, print, quit, recover, register, rele
    ase, replace, report, renormalize, reset, restore, resync, rman, run, rpctest, s
    et, setlimit, sql, switch, spool, startup, shutdown, send, show, test, transport
    , upgrade, unregister, validate"
    RMAN-01008: the bad identifier was: shutdoen
    RMAN-01007: at line 1 column 1 file: standard input
    RMAN> shutdown immediate;
    using target database control file instead of recovery catalog
    Oracle instance shut down
    RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
    connected to target database (not started)
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 05/14/2010 11:15:28
    ORA-01103: database name 'W' in control file is not 'W1'  -- return still db_name to w and restart
    RMAN> shutdown immediate;
    Oracle instance shut down
    RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
    connected to target database (not started)
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 05/14/2010 11:16:17
    ORA-01102: cannot mount database in EXCLUSIVE mode -- add pfile *.db_unique_name=w1
    RMAN> shutdown immediate;
    Oracle instance shut down
    RMAN> startup mount pfile='D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA';
    connected to target database (not started)
    Oracle instance started
    database mounted
    Total System Global Area     125829120 bytes
    Fixed Size                     1288100 bytes
    Variable Size                 62916700 bytes
    Database Buffers              54525952 bytes
    Redo Buffers                   7098368 bytes
    RMAN> catalog start with 'D:\oracle\product\10.2.0\flash_recovery_area\W';
    Starting implicit crosscheck backup at 14-MAY-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 14-MAY-10
    Starting implicit crosscheck copy at 14-MAY-10
    using channel ORA_DISK_1
    Crosschecked 2 objects
    Finished implicit crosscheck copy at 14-MAY-10
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    searching for all files that match the pattern D:\oracle\product\10.2.0\flash_re
    covery_area\W
    List of Files Unknown to the Database
    =====================================
    File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\AUTOBACKUP\2010_05_14\
    O1_MF_S_718973315_5YSS1O7W_.BKP
    Do you really want to catalog the above files (enter YES or NO)? y
    cataloging files...
    cataloging done
    List of Cataloged Files
    =======================
    File Name: D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\AUTOBACKUP\2010_05_14\
    O1_MF_S_718973315_5YSS1O7W_.BKP
    RMAN>
    RMAN> run
    2> {
    3> set newname for datafile 1 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.D
    BF';
    4> set newname for datafile 2 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\UNDOTBS01.
    DBF';
    5> set newname for datafile 3 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSAUX01.D
    BF';
    6> set newname for datafile 4 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS01.DB
    F';
    7> set newname for datafile 5 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\EXAMPLE01.
    DBF';
    8> set newname for datafile 6 to 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS02.DB
    F';
    9> restore database;
    10> }
    executing command: SET NEWNAME
    using target database control file instead of recovery catalog
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    executing command: SET NEWNAME
    Starting restore at 14-MAY-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    channel ORA_DISK_1: starting datafile backupset restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    restoring datafile 00001 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF
    restoring datafile 00002 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\UNDOTBS01.DBF
    restoring datafile 00003 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSAUX01.DBF
    restoring datafile 00004 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS01.DBF
    restoring datafile 00005 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\EXAMPLE01.DBF
    restoring datafile 00006 to D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\USERS02.DBF
    channel ORA_DISK_1: reading from backup piece D:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\W\BACKUPSET\2010_05_14\O1_MF_NNNDF_TAG20100514T104649_5YSRYBV3_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W\BACKUPSET\2010_05_14
    \O1_MF_NNNDF_TAG20100514T104649_5YSRYBV3_.BKP tag=TAG20100514T104649
    channel ORA_DISK_1: restore complete, elapsed time: 00:01:25
    Finished restore at 14-MAY-10
    RMAN>
    then backup controlfile to trace as:
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\Documents and Settings\chinar>set ORACLE_SID=W1
    C:\Documents and Settings\chinar>sqlplus "sys/sm as sysdba"
    SQL*Plus: Release 10.2.0.2.0 - Production on Fri May 14 11:26:42 2010
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> alter database backup controlfile to trace as 'D:\oracle\product\10.2.0\ora
    data\W1\ctrl.sql';
    Database altered.
    SQL>
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL>
    Now edit ctrl.sql for chhange database name to new W1 also change in pfile db_name from W to W1.And delete
    all controlfile from D:\oracle\product\10.2.0\oradata\W1. Then
    SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
    ORACLE instance started.
    Total System Global Area  125829120 bytes
    Fixed Size                  1288100 bytes
    Variable Size              62916700 bytes
    Database Buffers           54525952 bytes
    Redo Buffers                7098368 bytes
    Database mounted.
    SQL>
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
    SQL> recover database using backup controlfile until cancel;
    ORA-00279: change 1419839 generated at 05/13/2010 12:36:09 needed for thread 1
    ORA-00289: suggestion :
    D:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\W1\ARCHIVELOG\2010_05_14\O1_MF_1_25
    _%U_.ARC
    ORA-00280: change 1419839 for thread 1 is in sequence #25
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    cancel
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
    ORA-01112: media recovery not started
    SQL> alter database open resetlogs;
    alter database open resetlogs
    ERROR at line 1:
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'D:\ORACLE\PRODUCT\10.2.0\ORADATA\W1\SYSTEM01.DBF'
    SQL>
    add pfile *._allow_resetlogs_corruption=true
    again
    SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
    ORACLE instance started.
    Total System Global Area  125829120 bytes
    Fixed Size                  1288100 bytes
    Variable Size              62916700 bytes
    Database Buffers           54525952 bytes
    Redo Buffers                7098368 bytes
    Database mounted.
    SQL> recover;
    Media recovery complete.
    SQL> shutdown immediate;
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    then remove _allow_resetlogs_corruption=true parameter from pfile and
    SQL> startup mount pfile=D:\oracle\product\10.2.0\admin\W1\pfile\INITW1.ORA;
    ORACLE instance started.
    Total System Global Area  125829120 bytes
    Fixed Size                  1288100 bytes
    Variable Size              62916700 bytes
    Database Buffers           54525952 bytes
    Redo Buffers                7098368 bytes
    Database mounted.
    SQL> alter database open;
    Database altered.
    SQL>

  • RMAN-11003: failure during parse/execution of SQL statement: alter session

    without doing any changes I have started getting the following error in the RMAN logs.
    i didnt any changes related to sort_area_size but getting the error below
    plz help guys
    RMAN logs
    =====================
    connected to recovery catalog database
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of allocate command at 12/03/2007 22:00:01
    RMAN-03014: implicit resync of recovery catalog failed
    RMAN-03009: failure of full resync command on default channel at 12/03/2007 22:00:01
    RMAN-11003: failure during parse/execution of SQL statement: alter session set sort_area_size=10485760
    ORA-00068: invalid value 10485760 for parameter sort_area_size, must be between 0 and 1

    Hi:
    It seems when you are starting RMAN it's executing some commands (one 'ALTER SESSION...'. It's seems to be a batch which has a bad value for SORT_AREA_SIZE. Find it and modify to a proper value as message shows. If you can't find start RMAN by calling directly the executable ($ORACLE_HOME/bin/rman or %ORACLE_HOME%/bin/rman.exe).

  • Restore error when excluded TS

    Hi,
    We have 10g R2 on solaris and have couple of TS that are excluded from RMAN backup. We do full online backup daily. When I tried to resore the db, I got RMAN-00600: internal error, arguments [7002] [0] [9357] [] []
    can someone pls advise how to restore and recover the database in this case. Thanks

    RMAN script is
    run
    sql 'alter system archive log current';
    backup as copy device type disk database;
    backup as copy device type disk archivelog all delete all input;
    delete noprompt obsolete device type disk;
    sql 'alter system archive log current';
    sql 'alter system switch logfile';
    backup current controlfile for standby;
    Then I copy FRA to the new host and try to create a standby or duplicate but that fails
    run {
    allocate auxiliary channel c1 device type disk;
    allocate auxiliary channel c2 device type disk;
    allocate auxiliary channel c3 device type disk;
    allocate channel c4 device type disk;
    allocate channel c5 device type disk;
    duplicate target database for standby
    db_file_name_convert=('/u05/oradata/test/','/u02/oradata/test_stby/')
    dorecover;
    ERROR
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/25/2009 17:35:50
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-00600: internal error, arguments [7002] [0] [9357] [] []

  • Oracle 9i db restore error

    Hello,
    I am trying to restore a database and after connecting to the rman catalog , I can't seem to make a connection and the call to the backup software to proceed with the restore. This is only happening on one server , any ideas ?
    RMAN> RUN
    2> {
    3> ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE sbt;
    4> DUPLICATE TARGET DATABASE TO xxxx NOFILENAMECHECK;
    5> }
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of allocate command on aux1 channel at 09/25/2010 12:44:53
    ORA-19554: error allocating device, device type: SBT_TAPE, device name:
    ORA-27000: skgfqsbi: failed to initialize storage subsystem (SBT) layer
    OSD-4294967295: Message -1 not found; product=RDBMS; facility=SOSD
    (OS 7111)
    ORA-19511: Error received from media manager layer, error text:
    SBT error = 7111, errno = -1, sbtinit: system error
    RMAN>
    Is this a connectivity issue as it has worked before and will work from another server for the same type of database.
    Thx

    Hi,
    It Seems like you have Media Management Errors with Tape
    see this link
    http://download-uk.oracle.com/docs/cd/B14117_01/server.101/b10734/rcmtroub.htm

  • Restoring a RMAN backup to a new database instance

    Hi Mates,
    I have an issue with restoring a RMAN backup that i have with me to a new database instance. What i have with me are:
    1. Backup of SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)
    2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)
    3. Full database backup (O1_MF_NNSNF_FULLPROD_BU_92DVGW9H_.BKP)
    I have received these files from a customer environment and I need to restore these to a new database instance in a local machine. I have given a attempt as follows (in Oracle 10g):
    1, Created a new database instance (Test75) using Oracle Database Configuration Assistant
    2. SET ORACLE_SID = Test75
    3. Connected to this instance using RMAN
    4. Tried to restore the SPFILE from the received BKP file.
    I am getting errors and cannot proceed. I am not sure whether I am executing the correct steps. Please help me out by telling me how should I achieve this.
    Thank you.

    1. Backup of SPFile. (O1_MF_NCNNF_CTLFILE_BU_92DVGYO2_.BKP)
    2. Backup of Control file (O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP)
    The first backuppiece looks like a ControlFile and the second one looks like an SPFILE'
    >I am getting errors and cannot proceed
    What is the error ?  (I assume that you tried to restore the SPFILE from O1_MF_NNSNF_SPFILE_BU_92DVGW9H_.BKP
    Note that you also have to SET DBID before you restore the controlfile 
    Hemant K Chitale

  • My iphone 4s wont turn on with out being pluged in and when i unplug it it dies instantly i pluged it in put it in dfu mode and tried to restore it hoping it might help but its stuck in dfu and has restore error 21 help!!!

    my iphone 4s wont turn on with out being pluged in and when i unplug it it dies instantly i pluged it in put it in dfu mode and tried to restore it hoping it might help but its stuck in dfu and has restore error 21 help!!!

    Hey jestinsinclairr,
    Thanks for using Apple Support Communities.
    After reviewing your post, it sounds like you had one issue and then got a second trying to resolve the first. A frustrating situation for sure. The first article linked has what to do if it is not powering on unless plugged in. The second article addresses the error you are receiving when trying to restore.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Resolve iOS update and restore errors
    http://support.apple.com/kb/TS3694#10
    Check for hardware issues
    Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    Have a nice day,
    Mario

  • Iphone4 would not restore Error -50. I have tried to restore and it restored it to the point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out.

    Iphone would not restore---- Error -50. I have tried to restore, and it restored it to the new point that it created after 5.0 was installed. How can I get it an older restore point from my backups and restore it on another computer? The phone has been wiped out. I can see earlier backups in my C:\Documents and Settings\user\Application Data\Apple Computer\MobileSync\Backup folder. There are four subfolders in this address. I need my contacts, photos, and messages back. I know this is a common error but I can not figure it out. I have ran the other troublshoot items in the error steps for 13 and 14 like apple says. Is there a way to call apple and get a step by step of how to restore from another restore point? Does anybody have a solution????

    It tells you to go to Error 13 and 14 if you receive error (-50).
    Here is what I have tried...
    Error 13 and 14: These errors are typically resolved by performing one or more of the steps listed below:
    Perform USB isolation troubleshooting, including trying a different USB port directly on the computer. See the advanced steps below for USB troubleshooting. I have moved it around to different ports.
    Put a USB 2.0 hub between the device and the computer. Didn't change anything.
    Try a different USB 30-pin dock-connector cable.
    Eliminate third-party security software conflicts. Removed all virus protection and firewall.
    There may be third-party software installed that modifies your default packet size in Windows by inserting one or more TcpWindowSize entries into your registry. Your default packet size being set incorrectly can cause this error. Contact the manufacturer of the software that installed the packet-size modification for assistance. Or, follow this article by Microsoft: How to reset Internet Protocol (TCP/IP) to reset the packet size back to the default for Windows.Used the Microsoft fix it.
    Connect your computer directly to your Internet source, bypassing any routers, hubs, or switches. You may need to restart your computer and modem to get online. Doesn't matter.
    Try to restore from another known-good computer and network. I do not know how to do this or how to find the correct/full/complete restore point. There should be more information for this.

  • IPAD 2 Restore errors 4005, 4013

    I have tried three different computers ( W7 en W8 ), fresh install itunes on one computer, latest version update on other two, different cables.
    After reading some forums:
    Running Itunes as administrator.
    Also manually downloading ipsw files and with shift key trying to restore from file.
    Itunes continually gives errors 4005 or 4013.
    Sometimes I get a screen:
    (FTL:MSG) APPLE NAND DRIVER (AND) RW
    (FTL:MSG) FIL_INIT            OK
    (FTL:MSG) BUF_INIT            OK
    (FTL:MSG) FPART INIT            OK
    read new style signature 0x43313141 ( line:389 )
    (FTL:MSG) VSVFL REGISTER        OK
    (WMR:MSG) METADATA WHITENING IS SET IN NAND SIGNATURE
    (FTL:MSG) VFL INIT            OK
    (FTL:MSG) VFL_OPEN            OK
    (FTL:MSG) YAFTL REGISTER        OK
    (FTL:MSG) FTL_OPEN            OK
    (NAND) _publishServices:642 FTL capabilities: 0x00000000

    If you are getting the same error codes with different cables and computers then contact Apple, it may have a hardware problem : iOS: Restore errors 4005, 4013, and 4014 :
    If you continue to see error 4005, 4013, or 4014 when you restore your device, contact Apple for support.

  • Ipod Restore Error

    Hi all,
    Sorry to make my first post here a cry for help, but desperate times call for desperate measures.
    For the past day or 2, my iPod has been stuck on the loading screen (apple logo) when turned on, and it is not being picked up by iTunes. From reading other threads, I decided to put it into restore mode and reinstall the firmware.
    The problem arises now, during the restore, the iPod seems to leave restore mode and go back to the loading screen. Windows indicates that a usb device has disconnected.
    At this point the restore will fail with Error: 6, and in one occasion Error:13.
    I'm at my wits end with this one and cannot think of a solution thus far. Any help any of you can provide would be greatly appreciated.
    Using: Windows XP
    iTunes: 8.0.2.20
    Firmware: 1.2.1
    Cheers,
    Rodg3

    HERE IS MY ERROR LOG IF IT HELPS ANYONE:
    2008-11-24 17:55:32.296 iTunes.exe[4752:1708]: restore library built Oct 24 2008 13:46:43
    2008-11-24 17:55:32.296 iTunes.exe[4752:1708]: iTunes: iTunes 8.0.2.20
    2008-11-24 17:55:32.296 iTunes.exe[4752:1708]: iTunes: Software payload version: 5G77a
    2008-11-24 17:55:32.562 iTunes.exe[4752:e40]: AMDeviceIoControl: GetOverlappedResult failed
    2008-11-24 17:55:32.562 iTunes.exe[4752:e40]: ProcessOverlappedIoRequest: failed, error 31, usbd status c0000004
    2008-11-24 17:55:33.062 iTunes.exe[4752:e40]: AMDeviceIoControl: GetOverlappedResult failed
    2008-11-24 17:55:33.062 iTunes.exe[4752:e40]: ProcessOverlappedIoRequest: failed, error 31, usbd status c0000004
    2008-11-24 17:55:33.562 iTunes.exe[4752:e40]: AMDeviceIoControl: GetOverlappedResult failed
    2008-11-24 17:55:33.562 iTunes.exe[4752:e40]: ProcessOverlappedIoRequest: failed, error 31, usbd status c0000004
    2008-11-24 17:55:34.062 iTunes.exe[4752:e40]: USBControlTransfer: error 0, usbd status c0000004
    2008-11-24 17:55:34.062 iTunes.exe[4752:e40]: AMDeviceIoControl: GetOverlappedResult failed
    2008-11-24 17:55:34.062 iTunes.exe[4752:e40]: ProcessOverlappedIoRequest: failed, error 31, usbd status c0000004
    2008-11-24 17:55:34.562 iTunes.exe[4752:e40]: AMDeviceIoControl: GetOverlappedResult failed
    2008-11-24 17:55:34.562 iTunes.exe[4752:e40]: ProcessOverlappedIoRequest: failed, error 31, usbd status c0000004
    2008-11-24 17:55:35.062 iTunes.exe[4752:e40]: AMDeviceIoControl: GetOverlappedResult failed
    2008-11-24 17:55:35.062 iTunes.exe[4752:e40]: ProcessOverlappedIoRequest: failed, error 31, usbd status c0000004
    2008-11-24 17:55:35.562 iTunes.exe[4752:e40]: USBControlTransfer: error 0, usbd status c0000004
    2008-11-24 17:55:35.562 iTunes.exe[4752:e40]: radio-error not set
    2008-11-24 17:55:35.562 iTunes.exe[4752:e40]: unable to open device_map.txt: No such file or directory
    2008-11-24 17:55:35.562 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress -1
    2008-11-24 17:55:35.656 iTunes.exe[4752:e40]: bootstrapping restore with iBEC
    2008-11-24 17:55:35.656 iTunes.exe[4752:e40]: WinDFU::OpenDFUDevice: path: \\?\USB#VID05AC&PID1281#{B8085869-FEB9-404B-8CB1-1E5C14FA8C54}\0000#502e595d
    2008-11-24 17:55:35.656 iTunes.exe[4752:e40]: WinDFU::OpenDeviceByPath: \\?\USB#VID05AC&PID1281#{B8085869-FEB9-404B-8CB1-1E5C14FA8C54}\0000#502e595d
    2008-11-24 17:55:35.656 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 4
    2008-11-24 17:55:35.656 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 8
    2008-11-24 17:55:35.656 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 12
    2008-11-24 17:55:35.671 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 16
    2008-11-24 17:55:35.671 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 20
    2008-11-24 17:55:35.671 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 24
    2008-11-24 17:55:35.671 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 28
    2008-11-24 17:55:35.687 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 32
    2008-11-24 17:55:35.687 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 36
    2008-11-24 17:55:35.687 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 40
    2008-11-24 17:55:35.687 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 44
    2008-11-24 17:55:35.703 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 48
    2008-11-24 17:55:35.703 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 52
    2008-11-24 17:55:35.703 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 57
    2008-11-24 17:55:35.703 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 61
    2008-11-24 17:55:35.718 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 65
    2008-11-24 17:55:35.718 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 69
    2008-11-24 17:55:35.718 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 73
    2008-11-24 17:55:35.718 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 77
    2008-11-24 17:55:35.734 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 81
    2008-11-24 17:55:35.734 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 85
    2008-11-24 17:55:35.734 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 89
    2008-11-24 17:55:35.734 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 93
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 97
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::UploadData: EOF, cbRead: 2212
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 4 progress 100
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::UploadData: ZLP
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 6
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::ProcessUpdateState: status.bState == DFUSTATE_MANIFESTSYNC
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 7
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::ProcessUpdateState: status.bState == DFUSTATEMANIFEST
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::FinalizeDfuUpdate: GetStatus: status: 0, state: 8
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::ProcessUpdateState: status.bState == DFUSTATE_MANIFEST_WAITRESET
    2008-11-24 17:55:35.750 iTunes.exe[4752:e40]: WinDFU::ResetDevice: resetting...
    2008-11-24 17:55:36.140 iTunes.exe[4752:e40]: WinDFU::FinalizeDfuUpdate: success
    2008-11-24 17:55:36.140 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: operation 31 progress -1
    2008-11-24 17:55:37.140 iTunes.exe[4752:e40]: <Recovery Mode Device 01DC8D08>: Recovery mode succeeded
    2008-11-24 18:00:39.093 iTunes.exe[4752:1708]: iTunes: Restore error 1604

  • Ipod restore error (1611)

    Hello, i am having trouble with my ipod touch 2nd gen. I got it all working and fine when i first got it. But one day, when i tried to charge it with my computer, it wouldnt recognize in my itunes. Then, i tried to do the 5 R's, then i finally restored my ipod, with the restore function on my ipod, and completely restored my itunes. But now, i must restore and update to use my ipod on my computer. When i try to do that, i get this unknown error (1611). Please help!

    Hello sorry to see you are experiencing this today. Please check out article below as it does contain information to better assist you in possibly getting your iPod Touch up and running again. Post back if you need more assistance from the community.
    Update and restore error messages on the iPhone and iPod touch
    http://support.apple.com/kb/TS1458

Maybe you are looking for