ORA-01152: file 1 was not restored from a sufficiently old backup

Hi,
I have restored the control file from auto-backup, but some of my archive logs are missing...
when I am recovering it as
RECOVER DATABASE UNTIL CANCEL USING BACKUP CONTROLFILE;
ORA-00279: change 37158334186 generated at 02/19/2012 02:53:11 needed for
thread 1
ORA-00289: suggestion : /u07/oradata/main/arch/main_738330900_118084_1.dbf
ORA-00280: change 37158334186 for thread 1 is in sequence #118084
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: '/u02/oradata/main/system01.dbf'
and
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: '/u02/oradata/main/system01.dbf'
how to sort out this issue, I just want to open the database in whatever mode.
Please help me.

If no - then startup in mount state and make this file offline.This is archive log file. Might you thought it as datafile ;-)
@OP.
Once again i suggest you to refer what aman said below.
Aman.... wrote:
This has been discussed already couple of times, tried using the search ?
https://forums.oracle.com/forums/search.jspa?threadID=&q=ORA-01152%3A+file+1+was+not+restored+from+a+sufficiently+old+backup&objID=f61&dateRange=all&userID=&numResults=15
Aman....Also check tihs. but but but but its not an supported format, it can be uesd when there are no other options.
*RECOVER A DATAFILE WITH MISSING ARCHIVELOGS [ID 418476.1]*
Edited by: CKPT on Feb 21, 2012 12:11 PM

Similar Messages

  • Error ORA-01152: file 1 was not restored from a sufficiently old backup

    Its also not thread just to share info with oracle gurus here.If my findings for the below workaround is wrong then please do correct me.
    Sometime you get the error after performing restoring controlfile when you don't have autobackup controlfile on
    error ORA-01152: file 1 was not restored from a sufficiently old backup
    why?
    Cause When you shutdown the database with using the normal,transactional or immediate options not abort a full checkpoint occurs.A full checkpoint ensures that all of the dirty blocks contained in the buffer cache are written to the data files,the database comes into synchronized state at this time i.e controlfile CKPT SCN=databasefile CKPT.
    Like in this demo i am not taking backup the database in opened mode
    Demo 1
    SQL> archive log list
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     9
    Current log sequence           11
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    SQL> alter database archivelog
      2  /
    Database altered.
    SQL> archive log list
    Database log mode              Archive Mode
    Automatic archival             Enabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     9
    Next log sequence to archive   11
    Current log sequence           11
    Recovery Manager: Release 10.1.0.2.0 - Production
    Copyright (c) 1995, 2004, Oracle.  All rights reserved.
    RMAN> connect target sys/sys
    connected to target database: ORCL1 (DBID=1024798223)
    RMAN> list backup
    2> ;
    using target database controlfile instead of recovery catalog
    RMAN> backup database
    2> ;
    Starting backup at 08-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 08-DEC-07
    channel ORA_DISK_1: finished piece 1 at 08-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NNNDF_TAG20071208T143558_3ONSCZBY_.BKP
    comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:45
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 08-DEC-07
    channel ORA_DISK_1: finished piece 1 at 08-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP
    comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:05
    Finished backup at 08-DEC-07
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.Now i delete the controlfile from OS command.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infoi don't have automatized control file backup neither i have control file copy.What i will do
    to recover control file i will restore controlfile from backup.Before doing it that i will bring
    the database in mount state.
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infoi have two backup piece in my backupset folder you cant check control file backup
    existence with list backup controlfile at RMAN prompt cause it needs database in
    mount state.You will have to test both backup set pieces.
    RMAN> restore controlfile from
    'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUPSET\2007_12_08\O1_MF_NCSNF_TAG20071208T143558_3ONSFGN7_.BKP';
    Starting restore at 08-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
    Finished restore at 08-DEC-07
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs
      2  /
    Database altered.You can see database now comes into open mode without raising error error
    ORA-01152: file 1 was not restored from a sufficiently old backup,you can see that
    database shutdown with immediate which synchronized the control file with database
    file.
    Demo 2
    ------------Now in this demo i am taking backup the database in opened mode before backup
    database i have deleted alls previous backup.
    Database is in opened moder if i take the backup in database opened mode
    (i.e full checkpoint will not occur controlfile CKPT SCN<>datafile CKPT SCN)
    you will get the error when you will restore controlfile from backup set.
    error ORA-01152: file 1 was not restored from a sufficiently old backup
    Reason is that CKPT SCN in the datafiles will be ahead of the backupset control file no
    full checkpoint occuring. You are not taking backup in consistent state and the
    backupset will not be in consistent state.When you will restore the control file from
    backupset then yours restored control file SCN will be lesser then yours datafile
    checkpoint SCN.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    Database opened.
    RMAN> backup database
    2> ;
    Starting backup at 11-DEC-07
    using channel ORA_DISK_1
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.D
    BF
    input datafile fno=00003 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSAUX01.D
    BF
    input datafile fno=00002 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\UNDOTBS01.
    DBF
    input datafile fno=00004 name=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\USERS01.DB
    F
    channel ORA_DISK_1: starting piece 1 at 11-DEC-07
    channel ORA_DISK_1: finished piece 1 at 11-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
    F_NNNDF_TAG20071211T125123_3OWJD0V5_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:56
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 11-DEC-07
    channel ORA_DISK_1: finished piece 1 at 11-DEC-07
    piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL1\ORCL1\BACKUPSET\2007_12_11\O1_M
    F_NCSNF_TAG20071211T125123_3OWJFT97_.BKP comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:09
    Finished backup at 11-DEC-07now i shut down the database in order to delete the control file from os command
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> deleting the controlfile from oradata folder
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    ORA-00205: error in identifying controlfile, check alert log for more infonow i would restore the controlfile from backupset.
    RMAN> restore controlfile from 'C:\oracle\flash_recovery_area\orcl1\ORCL1\BACKUP
    SET\2007_12_11\O1_MF_NCSNF_TAG20071211T125123_3OWJFT97_.BKP'
    2> ;
    Starting restore at 11-DEC-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=159 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL01.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL02.CTL
    output filename=C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\CONTROL03.CTL
    Finished restore at 11-DEC-07
    SQL> shutdown immediate
    ORA-01507: database not mounted
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    Database mounted.
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    SQL> alter database open resetlogs
      2  /
    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: 'C:\ORACLE10G\ORACLE\ORADATA\ORCL1\ORCL1\SYSTEM01.DBF'what would you do that now you have lost controlfile ,you dont have copy either you dont
    have autobackup on for controlfile,you need to create the control file
    SQL> shutdown immediate
    ORA-01109: database not open
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup nomount
    ORACLE instance started.
    Total System Global Area  171966464 bytes
    Fixed Size                   787988 bytes
    Variable Size             145488364 bytes
    Database Buffers           25165824 bytes
    Redo Buffers                 524288 bytes
    SQL> create controlfile reuse database orcl1 noresetlogs archivelog
      2  MAXLOGFILES 50
      3  MAXLOGMEMBERS 3
      4  MAXDATAFILES 300
      5  MAXINSTANCES 8
      6  MAXLOGHISTORY 500
      7  LOGFILE
      8                     GROUP 1 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo01.LOG',
      9                     GROUP 2 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo02.LOG',
    10                     GROUP 3 'C:\oracle10g\oracle\oradata\orcl1\orcl1\redo03.LOG'
    11  DATAFILE
    12                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSAUX01.DBF',
    13                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\SYSTEM01.DBF',
    14                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\UNDOTBS01.DBF',
    15                     'C:\oracle10g\oracle\oradata\orcl1\orcl1\USERS01.DBF'
    16 
    SQL> /
    Control file created.
    SQL> alter database open
      2  /
    Database altered.Khurram

    No need to manually recreate the controlfile. Simply issue RECOVER DATABASE prior to opening database.
    E:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:22:34 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup
    Oracle instance started
    database mounted
    database opened
    Total System Global Area     612368384 bytes
    Fixed Size                     2006192 bytes
    Variable Size                239076176 bytes
    Database Buffers             364904448 bytes
    Redo Buffers                   6381568 bytes
    RMAN> backup database;
    Starting backup at 30-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=148 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF
    input datafile fno=00002 name=E:\ORACLE\ORADATA\ORA10G\UNDOTBS01.DBF
    input datafile fno=00003 name=E:\ORACLE\ORADATA\ORA10G\SYSAUX01.DBF
    input datafile fno=00004 name=E:\ORACLE\ORADATA\ORA10G\USERS01.DBF
    channel ORA_DISK_1: starting piece 1 at 30-DEC-07
    channel ORA_DISK_1: finished piece 1 at 30-DEC-07
    piece handle=D:\DB_BACKUPS\12J4S23M_1_1.BKP tag=TAG20071230T012302 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:35
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    including current control file in backupset
    including current SPFILE in backupset
    channel ORA_DISK_1: starting piece 1 at 30-DEC-07
    channel ORA_DISK_1: finished piece 1 at 30-DEC-07
    piece handle=D:\DB_BACKUPS\13J4S26L_1_1.BKP tag=TAG20071230T012302 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
    Finished backup at 30-DEC-07
    RMAN> shutdown immediate
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> exit
    Recovery Manager complete.
    E:\>del e:\oracle\oradata\ora10g\*.ctl
    E:\>rman target /
    Recovery Manager: Release 10.2.0.1.0 - Production on Sun Dec 30 01:25:39 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    connected to target database (not started)
    RMAN> startup
    Oracle instance started
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 12/30/2007 01:25:56
    ORA-00205: error in identifying control file, check alert log for more info
    RMAN> restore controlfile from 'D:\DB_BACKUPS\13J4S26L_1_1.BKP';
    Starting restore at 30-DEC-07
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=157 devtype=DISK
    channel ORA_DISK_1: restoring control file
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL01.CTL
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL02.CTL
    output filename=E:\ORACLE\ORADATA\ORA10G\CONTROL03.CTL
    Finished restore at 30-DEC-07
    RMAN> alter database mount;
    database mounted
    released channel: ORA_DISK_1
    RMAN> alter database open resetlogs;
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 12/30/2007 01:27:33
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: 'E:\ORACLE\ORADATA\ORA10G\SYSTEM01.DBF'
    RMAN> recover database;
    Starting recover at 30-DEC-07
    Starting implicit crosscheck backup at 30-DEC-07
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=156 devtype=DISK
    Crosschecked 1 objects
    Finished implicit crosscheck backup at 30-DEC-07
    Starting implicit crosscheck copy at 30-DEC-07
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 30-DEC-07
    searching for all files in the recovery area
    cataloging files...
    no files cataloged
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 1 is already on disk as file E:\ORACLE\ORADATA\ORA10G\REDO03.LOG
    archive log filename=E:\ORACLE\ORADATA\ORA10G\REDO03.LOG thread=1 sequence=1
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 30-DEC-07
    RMAN> alter database open resetlogs;
    database opened
    RMAN> shutdown immediate
    database closed
    database dismounted
    Oracle instance shut down
    RMAN> startup
    connected to target database (not started)
    Oracle instance started
    database mounted
    database opened
    Total System Global Area     612368384 bytes
    Fixed Size                     2006192 bytes
    Variable Size                247464784 bytes
    Database Buffers             356515840 bytes
    Redo Buffers                   6381568 bytes
    RMAN>

  • RMAN Restore on Test DB Fails - ORA-01152:file 1 was not restored from blah

    Calling all RMAN Gurus!
    I'm having trouble recovering an RMAN backup on my test DB server. Please Help!
    Solaris 10/Oracle 10.2.0.4 Standard Edition (Both Servers)
    Part one - Step by Step
    Primary Server
    1. Perform full backup: backup database plus archivelog;
    2. Copy Backupset & Controlfile to test server: "RSYNC/NFS Mount"
    Test Server
    1. rman target /
    2. startup nomount;
    3. restore controlfile blah blah
    4. alter database mount;
    5. catalog backuppiece
    6. restore database; - no issues
    *7. recover database noredo; - no issues*
    *8. alter database open resetlogs;*
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of alter db command at 09/09/2009 08:48:22
    ORA-01152: file 1 was not restored from a sufficiently old backup
    ORA-01110: data file 1: '/data/oracle/oradata/planodb/system01.dbf'
    All is good until I try and open the database. What am I missing?? Why doesn't this work???
    Because .... If I go through the exact steps but I perform a "recover database" instead of "recover database noredo", I can open the database!!!
    Example :
    6. restore database; no issues
    7. recover database;
    Starting recover at 09-SEP-09
    using channel ORA_DISK_1
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=34
    channel ORA_DISK_1: reading from backup piece /data/oracle/orabase/backup/backup
    set/2009_09_09/o1_mf_annnn_BACKUP_PLANODB_000_0_5bgkffqq_.bkp
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/data/oracle/orabase/backup/backupset/2009_09_09/o1_mf_annnn_BACKUP
    PLANODB000_0_5bgkffqq_.bkp tag=BACKUP_PLANODB_000_090909010005*
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
    archive log filename=/data/oracle/oradata/arch/PLANODB/archivelog/2009_09_09/o1_
    mf_1_34_5bhdkwd4_.arc thread=1 sequence=34
    channel default: deleting archive log(s)
    archive log filename=/data/oracle/oradata/arch/PLANODB/archivelog/2009_09_09/o1_
    mf_1_34_5bhdkwd4_.arc recid=42 stamp=697106925
    unable to find archive log
    archive log thread=1 sequence=35
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 09/09/2009 08:48:52
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 35 lowscn 1425007
    This is ok because seq 35 doesn't actually exist!
    8. alter database open resetlogs;
    database opened!

    You could also explore the UNTIL clause of the RECOVER DATABASE command to specify Recovery until a specific Log, SCN or Timestamp.
    Since you are cloning a Hot Backup to another server the Recovery has to be an Incomplete Recovery. So, it will be to a Log, SCN or Timestamp -- either of which you could also explicitly specify with the UNTIL clause.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Can not restore from all Time Machine backup locations

    I've just set up Time Machine in Mountain Lion to rotate backups between a Time Capsule (existing) and a Synology NAS (new).
    When I select "Enter Time Machine" only the backups created on the NAS are shown.
    How can I make Time Machine show restore points from both devices, or at least select a Time Machine location to restore from?
    Backups are rotating and operating between the two without any issues.

    Pickled Hamster wrote:
    How can I make Time Machine show restore points from both devices, or at least select a Time Machine location to restore from?
    You have to use the Browse Other Backup Disks option, per Time Machine - Frequently Asked Question #17.

  • ORACLE error from auxiliary database: ORA-01152: file 2 was not restored fr

    Hello,
    i'm trying to clone a database. It is in archive log mode.
    I took a full back using below command
    run {
      backup
         tag 'DAILY_WHOLE'
         format 'FULL_backup_%s_%p_%c.bkp'     database
         plus archivelog
         tag 'DAILY_WHOLE'
         delete all input;
      backup
         current controlfile
         format 'FULL_backup_%s_%p_%c.bkp'     tag 'WHOLE'
         spfile
         format 'FULL_backup_%s_%p_%c.bkp'     tag 'WHOLE';
    }then i issue a duplicate database command
    RUN
    DUPLICATE DATABASE TO TEST_DB
              NOFILENAMECHECK
               NOREDO
              BACKUP LOCATION '/disk10/flash_recovery_area/PROD';
    }at the very end I got this error.
    contents of Memory Script:
       Alter clone database open resetlogs;
    executing Memory Script
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/15/2013 11:59:21
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06136: ORACLE error from auxiliary database: ORA-01152: file 2 was not restored from a sufficiently old backup
    ORA-01110: data file 2: 'sysaux.dbf'Can anyone help me? I would appreciate it. thanks

    NOREDO would be used when you have a Consistent Backup (i.e. backup taken when the database is MOUNTed but not OPEN) and so, no archivelogs need to be applied. (This would also be the case for a NOARCHIVELOG database).
    See the notes on NOREDO in the DUPLICATE command documentation in the Backup and Recovery Reference.
    http://docs.oracle.com/cd/E11882_01/backup.112/e10643/rcmsynta020.htm#i81724
    Hemant K Chitale

  • ORA-01152 error while creating db from custom template

    I have a database based on the "general purpose/transaction processing" db, but with a custom tablespace/data added. I have attempted to clone this database by using dbca to create a custom template (including data) from this database. The template creation appears to be successful -- however, when I use dbca to try to create a new db from this custom template, I get the following error when dbca attempts to initialize the instance:
    ORA-01152: file 5 was not restored from a sufficiently old backup
    ORA-01110: data file 5: <path to my custom tablespace .dbf>
    If I select "ignore" at this point, I get further errors, the next error is
    ORA-06550: line 1, column 7: PLS-00201: Identifier 'DBMS_SERVICE.DELETE_SERVICE' must be declared
    I'm using 11gR2, and am relatively inexperienced on the dba side, any help appreciated.
    Thanks,
    Ben

    Update: I had unintentionally left my custom tablespace in READONLY state after an earlier experiment with transportable tablespaces. After putting the tablespace back into READ WRITE mode and creating a new template, I was successfully able to create a new db from the template.
    I'm still a little curious why this procedure wouldn't work properly with a READONLY tablespace, however.
    Ben

  • I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    I have multiple apple ids was backing up everything to iCloud from iPhone 5. I just bought iPhone 6 and perform a iCloud restore. I received a message that all files did not restore.   How can I restore apps, files manually?

    Yes - I connected my phone to my computer / Itunes and went into the apps section, but from there I have no idea how to manage the push notifications.  I even tryied going into itunes that is installed on my phone.  I still cannot find anyplace to manage these popups.  I have also gone into settings - notifiations - and tried turning all notifications for these apps all off but that didnt work either.  Any guidance is MUCH appreciated - Im not sure where to go from here.

  • Had a recent crash on my macbook, was previously using OS 10.6 I think. Restored from recent Time Machine backup and updated to OS 10.8.2 and now I cannot open Logic Pro 9. I get a 'No entry' Icon and a not supported on this type of Mac message. I cannot

    Had a recent crash on my macbook, was previously using OS 10.6 I think. Restored from recent Time Machine backup and updated to OS 10.8.2 and now I cannot open Logic Pro 9. I get a 'No entry' Icon and a not supported on this type of Mac message. I cannot update either as anything up to 9.1.1 tells me I don't need it yet 9.1.2 tells me I need an eligable Logic Pro Version was not found in applications.
    All of my files are stored in a separate hard drive with only the actual app having been on my Macbook. Should I just reinstall?

    Hi
    To run Mouitain Lion you need to update Logic.
    For the updaters to work the Logic application must be:
    a) Within the Applications folder, and not in any sub-folder
    b) Named "Logic Pro" with no extra numbers or spaces
    CCT

  • HP Pavilion dv6-6c29wm will not restore from disc that was made with HP recovery Manager

    My HP Pavilion dv6-6c29wm will not restore from disc that was made with HP recovery Manager
    Running Windows 7 64-bit on 650gb drive.
    Error: "The system media does not support this computer. You are not able to restore this system with the media."
    I'm about to order the recovery discs from HP and with any luck be able to bring this laptop back to factory conditionn with all the correct partitions and sizes after I format the hard drive.
    This question was solved.
    View Solution.

    Yes our recovery disks will return your unit to the factory state. All the software that came with the unit will be reinstalled. Whatever you added you will have to reinstall.
    I work for HP.
    Please click the White Kudos star on the left to say thanks.
    Please mark Accept As Solution if this resolves your issue.

  • My computer with itunes zapped by lightning.  cannot access itunes files.  how can i transfer my music on my iphone to a new computer.  much of it was not purchased from itunes store

    my computer with itunes zapped by lightning.  cannot access itunes files.  how can i transfer my music on my iphone to a new computer.  much of it was not purchased from itunes store

    Did you fail to maintain a backup copy?
    If so, then you can buy a third party program to extract the music not purchased from itunes.
    Itunes purchases can be transferred to your computer:  File>Transfer Purchases.

  • Is there any way to edit and save an existing spreadsheet file that was not created from my iPad? I get excel spreadsheets emailed to me and would love to edit them on my iPad and not ever use my PC.

    Is there any way to edit and save an existing spreadsheet file that was not created from my iPad? I get excel spreadsheets emailed to me and would love to edit them on my iPad and not ever use my PC.

    Thanks. I tried an app called Office2HD and it does exactly what I need. I can even email my edited file from this app.

  • This message appears whenever I try to open a file downloaded from internet: can't be opened because it was not downloaded from the Mac App Store

    Just bought a new Imac OX 10.9. Installed contents from previous Time Machine. All looks good. But, now, when I try to open any file downloaded from interent (like the Amazon mp3 downloader, for example or a plugin update) I get this message:
    "XXX can’t be opened because it was not downloaded from the Mac App Store" . Help! Thanks

    Got it solved! System preferences, security & privacy icon, general: allow apps downloaded from Mac Store and Identified developers! Phew!

  • ORA-19612: datafile 0 not restored due to missing data

    Hello,
    I'm testing a restore of the controlfile. The database is in archivelog mode and autobackup is set to ON. I successfully did a full backup and backup as copy database.
    To test I did the following:
    - note the DBID
    - shutdown the database
    - renamed both controlfiles:
    $ mv /u02/rcat/control01.ctl /u02/rcat/control01.ctl_old
    $ mv /u02/fra/rcat/control02.ctl /u02/fra/rcat/control02.ctl_old
    When I try to restore the controlfile form autobackup I receive the following error. What could be reason please?
    [rcat@oel54]$ rman target /
    Recovery Manager: Release 11.2.0.1.0 - Production on Fri Dec 10 00:07:41 2010
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: RCAT (not mounted)
    RMAN> set dbid 502889862;
    executing command: SET DBID
    RMAN> restore controlfile from autobackup;
    Starting restore at 10-DEC-10
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    recovery area destination: /u02/fra
    database name (or database unique name) used for search: RCAT
    channel ORA_DISK_1: AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101210
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101209
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 12/10/2010 00:09:55
    ORA-19870: error while restoring backup piece /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp
    ORA-19612: datafile 0 not restored due to missing data
    $ ll /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkp
    -rw-r----- 1 oracle dba 10354688 Dec  9 23:44 /u02/fra/RCAT/autobackup/2010_12_09/o1_mf_s_737336682_6j2pyv2l_.bkpThanks!

    The file was indeed corrupted as below will show.
    Very strange. Perhaps something with the latest Virtualbox or the SSD/hybrid harddrive. (host MacOSX 10.6, guest Oracle Linux 5.5 UEK)
    $ mv /u02/rcat/control01.ctl_old /u02/rcat/control01.ctl
    $ mv /u02/fra/rcat/control02.ctl_old /u02/fra/rcat/control02.ctl
    SQL> startup mount
    ORACLE instance started.
    SQL> recover database;
    ORA-00283: recovery session canceled due to errors
    ORA-00264: no recovery required
    SQL> alter database open;
    Database altered.
    $ rman target /
    connected to target database: RCAT (DBID=502889862)
    RMAN> backup current controlfile;
    piece handle=/u02/fra/RCAT/backupset/2010_12_10/o1_mf_ncnnf_TAG20101210T012420_6j2wsoko_.bkp
    Finished backup at 10-DEC-10
    Starting Control File and SPFILE Autobackup at 10-DEC-10
    piece handle=/u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp comment=NONE
    Finished Control File and SPFILE Autobackup at 10-DEC-10
    RMAN> restore validate controlfile;
    piece handle=/u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp tag=TAG20101210T012422
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: validation complete, elapsed time: 00:00:02
    Finished restore at 10-DEC-10
    SQL> shutdown immediate
    $ mv /u02/rcat/control01.ctl /u02/rcat/control01.ctl_old
    $ mv /u02/fra/rcat/control02.ctl /u02/fra/rcat/control02.ctl_old
    SQL> startup nomount
    $ rman target /
    connected to target database: RCAT (not mounted)
    RMAN> set dbid 502889862;
    RMAN> restore controlfile from autobackup;
    Starting restore at 10-DEC-10
    using target database control file instead of recovery catalog
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=19 device type=DISK
    recovery area destination: /u02/fra
    database name (or database unique name) used for search: RCAT
    channel ORA_DISK_1: AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp found in the recovery area
    channel ORA_DISK_1: looking for AUTOBACKUP on day: 20101210
    channel ORA_DISK_1: restoring control file from AUTOBACKUP /u02/fra/RCAT/autobackup/2010_12_10/o1_mf_s_737342662_6j2wspvf_.bkp
    channel ORA_DISK_1: control file restore from AUTOBACKUP complete
    output file name=/u02/rcat/control01.ctl
    output file name=/u02/fra/rcat/control02.ctl
    Finished restore at 10-DEC-10

  • Can I transfer music that is only on my iPad that WAS NOT purchased from iTunes to my iTunes account on new computer?

    I've had my iPad 2 for about four years now and I can tell that the interface is being very slow and that the screen does not always react when I tap on it, meaning I may have to get a new one sooner or later.
    My biggest problem is that on my iPad, I have all of the Beatles' CDs, some of which are from my own personal copies and some are from my former local public library. Ever Since I copied all these CDs onto my iPad, I've moved to a new state and got a new laptop, thus starting with an iTunes account that only has music I purchased from the iTunes Store on it, and no Beatles. The local libraries where I live now do not offer any CDs for borrowing, so I have no way of getting some of the CDs I don't own for free. I really do not want to purchase a bunch of albums from iTunes, as well.
    Is there any way to get the Beatles music that is only on my iPad that was not purchased from iTunes onto my iTunes account without removing it from my iPad? Thanks for your help!

    Then the latter part of my first reply which is repeated here:
    - If you follow these instructions the iPod will be updated when the instructions say to restore.
    Recovering your iTunes library from your iPod or iOS device: Apple Support Communities

  • HT4972 After upgrading iPhone 4 to iOS 5.1.1 getting the error "iTunes could not restore the iPhone because the backup was corrupt or not compatible with the iPhone that is being restored" HELP!

    I attempted to upgrade my iPhone 4 to iOS 5.1.1. I selected 'back up' from the phone in the device menu and iTunes confirmed that the phone had been backed up. I then installed iOS 5.1.1 which wiped everything on the phone & now I am getting the error "iTunes could not restore the iPhone because the backup was corrupt or not compatible with the iPhone that is being restored".
    I have tried restoring factory settings but iTunes simply will not restore from back up & I'm not sure what else to do!
    Any advice would be much appreciated.

    I have the same issue and I KNOW my backup IS good. What happen is when you try to restore your phone apple says something like can I check for new updates and if you choose no, it just takes you back to the restore screen and a loop from then on.  If you dont update from you phone then when you back up you will have the 5.0.1 back up and then when you update to 5.1.1 and then try to restore the backup from 5.0.1 it say it EITHER corrupt or incompatible.. It is incompatible and its hard as **** to restore back to 5.0.1. I followed the restore to a T and still getting errors. I lost all text history and have to reset up email. All just because I wanted a 1.2 Gigs of "other" space back.

Maybe you are looking for

  • Docs in Cloud Not syncing between OS (10.8.2) and iOS (6)

    I am running all of the most recent software available for both OS and iOS (including the iWork software on each). For about a week not, my docs have not been syncing. I will open something on my iPad/iPhone, take notes for a couple hours in class. T

  • Solaris 10 + Oracle 8

    I want to install Oracle 8 on a Solaris 10 (SUN V20z BOX - 2AMD OPTERONs) - sre there any issues that i will not be able to install ? Thank You Robert

  • Regarding DataTimestamp Issue

    Hi All, I am trying to select a date with timestamp from a table which has a column with date and timestamp. I have selected the datatype as Date and the date is coming fine but the timestamp is coming as 00:00:00. For the timestamp to to appear i ha

  • Using InDesign3, how do I print a book index?

    I have created a book index; I marked it as a book index. How do I print it?

  • Can you use components in the Script area?

    I really would like to implement the linkbutton in my functions.