On RESETLOGS and CONTROLFILE restore

Friends,
Do we have to always open the database with RESETLOGS option after a controlfile restore from nomount with RMAN? If so then what is the reason?
Thanks much.

Fadai,
As soon as you restore a controlfile the information in the controlfile is no longer in sync with the information in the datafile headers.
When you open a database it has to be in sync.
The purpose of resetlogs is:
Whatever is in the datafiles is OK, forget about the info in the controlfile, and SYNC datafile headers and controlfile.
Otherwise you wouldn't be able to open the database.
Hth
Sybrand Bakker
Senior Oracle DBA

Similar Messages

  • Failure with cloning database structure and then restore from source db

    Hello, dear experts!
    I am trying to duplicate a database.
    First step was to use the DBCA to create a template. Because there is no downtime possible, I only created a template of the structure without user schema and without objects.
    At another destination I used this template to create a new database "CLON".
    This worked successful. The database is up and running. (But quite empty).
    Then I transferred the latest full backup of my source database to the new database. I have the same structure at the destiantion as at the
    source.
    Now I want to use rman restore to build up the clone with this backup. Therefore I start RMAN and connect to the target without catalog.
    "RMAN> restore database;"
    leads to:
    Starten restore um 27.09.07
    Kanal ORA_DISK_1 wird benutzt
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of restore command at 09/27/2007 16:26:16
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 709 found to restore
    RMAN-06023: no backup or copy of datafile 708 found to restore
    RMAN-06023: no backup or copy of datafile 707 found to restore
    "RMAN> list backup;"
    does not show any results.
    "RMAN> crosscheck backup;"
    Zugewiesener Kanal: ORA_DISK_1
    Kanal ORA_DISK_1: SID=17 Gerõtetyp=DISK
    "RMAN> list backup;"
    does not show any results.
    To me this looks as if RMAN does not identify the/any backup.
    What has to be done to solve the problem?
    Thank you in advance,
    Hergen.

    Hi, I assume that by clone you mean a duplicate of the DB including ALL tablespaces and not just a few right? YOu want to also rename the DB according to what I read.
    As a note, your new database does not see the backups because you do not connect to the catalog, and you have no backup info as a result.
    Correct me if I am wrong if I misundestand your situation:
    First if you want to duplicate, you do not need to create an empty DB. Just create an new instance without any controlfiles or datafiles. Then you restore your rman backup
    You could perhaps adapt this procedure I have used recently to clone databases with RMAN backups: You just need RMAN backups, taken as hot backups is fine. You also need the controlfile autobackup from RMAN. If you do not want to use the catalog, you can use the controlfile as catalog, and register the backup info to the controlfile, then restore.
    Here is the procedure:
    RMAN RESTORE DB FROM COMPLETE LOSS (without use of catalog)
    1-     Install oracle db home and patch.
    Note: As much as possible, patch to the same version of the DB to be restored. If you do not, you should patch to a later release (do not do this if at all possible, as problems may occur). After opening with reset logs, you will have to startup with the upgrade option and run the cat upgrade script to update the DB to the current patchset.
    2-     Install or configure an instance on the desired node. It is not necessary to create a database.
    a.     Run oradim to create the instance.
    Oradim –new –SID sid –SYSPWD sysdbapass –STARTMODE manual|automatic –PFILE ‘….path to pfile….\initsid.ora’
    NOTE: The pfile is optional, required if you do not use a spfile
    b.     Create and configure a listener, as rman requires oracle net connectivity.
    i.     Use oracle utilities to create listener.
    ii.     Use oracle utilities to configure listener to register the instance just created. (or manually edit the listener.ora file).
    c.     Configure a tnsnames.ora file so that rman can reach the database through the listener.
    d.     Create all directories for datafiles, admin, redologs, archive, flash_recovery_area etc if required.
    3-     Create a pfile or get one (ideally the backups should include it).
    a.     Change paths in the pfile to reflect new file structure. Also change any settings that are relevant.
    Note: if using an spfile, then the rman controlfile autobackup will have it. In that case startup in nomount, start RMAN after setting ORACLE_SID=sid, with ‘RMAN target / NOCATALOG.
    Run this in rman
    RUN {
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO ‘………………..\CONTROL_%F’;
    RESTORE SPFILE TO PFILE ‘………\initsid.ora’ FROM AUTOBACKUP;
    SHUTDOWN ABORT;
    NOTE:
    -     If you do not have a specific archive file location (archivelog mode only) the flash recovery area size may need to be increased, depending on the number of archive files to recover.
    -     If restoring to a different instance (want to restore an old backup to a different db name, set the db_name in the pfile the same as the db name in the backups. You can rename the db later.
    4-     Get the backups desired to restore the DB, and make them available to the node where the restore is to be done.
    5-     Startup the database in nomount mode. Startup the service is necessary, then startup the database in nomount mode: specify the pfile location if not in a standard location.
    ‘STARTUP NOMOUNT PFILE=’……\initsid.ora’’;
    6-     Get DB id from controlfile autobackup. Get the most recent controlfile autobackups from the backup files, and find the database id. Below is an example
    # CONTROL_c-XXXXXXXXXX-YYYYMMDD-ZZ
    # XXXXXXXXXX IS THE DBID
    7-     START RMAN after setting ORACLE_SID=sid, with ‘RMAN target / NOCATALOG’.
    8-     SET DBID. Get the dbid from above. Run ‘SET DBID XXXXXXXXXXXX;’
    9-     Restore controlfile
    RUN {
    SET CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '… \CONTROL_%F';
    RESTORE CONTROLFILE FROM AUTOBACKUP;
    ALTER DATABASE MOUNT;
    NOTE: If restoring old files, then you must add MAXDAYS=xxx to the restore controlfile command, so that it will find the desired file. Default is 7 days. (explaining why it can’t find older then 7 days).
    10-     Catalog backup files. It is probable that the backup files restored will be in a different location once restored (applicable to disk backups). You need to catalog them in RMAN so that RMAN knows about them. List all backup files and run these commands for each backup and controlfile autobackup:
    ‘CATALOG BACKUPPIECE ….\CONTROL_C-310452700-20070918-01';’
    ‘CATALOG BACKUPPIECE …\BACKUP_HEIS8FIK_1_1';
    NOTES: If the backups are in the same location as they have always been, then a recatalog is not necessary, as the control file has the right backup files information.
    If the backups were restored to a different location, then a recatalog must be done so that RMAN can find them. If the regular location of backups is not available, then rman needs to be updated to reflect that. In that case run these commands:
         CROSSCHECK BACKUPS;
         DELETE EXPIRED BACKUP;
         CROSSCHECK ARCHIVELOG ALL;
         DELETE EXPIRED ARCHIVELOG ALL;
    If this is test restore (to test disaster recovery for example), likely all the backups are still there, but it is desired to use the restored backup files only. RMAN needs to be updated to reflect that the regular backups do not exist. Make the regular backup files unavailable to RMAN (such are renaming a directory, or preventing access through security), and then run the above commands.
    11-     Find the datafile names and numbers. This is only required if datafiles are in a different location on the database to be restored.
    Using SQLPlus, set the oracle_sid, then run sqlplus / ;
    Run the following command
         Select file# as “file/grp#’, name from v$datafile; (for datafiles).
         Select group#, member from v$logfile. (for redologs)
    12-     Restore the database
    (use only if all datafile locations are the same!)
    RUN
    # allocate a channel to disk
    ALLOCATE CHANNEL c1 DEVICE TYPE DISK MAXPIECESIZE 2 G FORMAT '…path…\BACKUP_%U';
    RESTORE DATABASE;
    RECOVER DATABASE;
    (use if datafiles are not in the same location)
    RUN
    ALLOCATE CHANNEL C1 DEVICE TYPE DISK FORMAT ‘…\BACKUP_%U';
    SET NEWNAME FOR DATAFILE 1 TO ‘….\SYSTEM01.DBF';
    SET NEWNAME FOR DATAFILE 2 TO '…\UNDOTBS01.DBF';
    SET NEWNAME FOR DATAFILE 3 TO '…\SYSAUX01.DBF';
    SET NEWNAME FOR DATAFILE 4 TO '…\USERS01.DBF';
    SET NEWNAME FOR DATAFILE 5 TO '…\TOOLS_01.DBF ';
    # add other tablespace locations here.
    # We need to tell the controlfile the new location for the redologs
    SQL "ALTER DATABASE RENAME FILE ''…\REDO01.LOG'' TO      ''…\REDO01.LOG''";
    SQL "ALTER DATABASE RENAME FILE ''…\REDO02.LOG'' TO      ''…\REDO02.LOG''";
    SQL "ALTER DATABASE RENAME FILE ''…\REDO03.LOG'' TO      ''…\REDO03.LOG''";
    RESTORE DATABASE;
    # we need to tell the controlfile the location of the new datafiles.
    SWITCH DATAFILE ALL;
    RECOVER DATABASE;
    13-     Reset the logs. ALTER DATABASE OPEN RESETLOGS;
    NOTE: If the oracle home is of a newer revision then the database, the open resetlogs will generate an error. In that case open the database with the upgrade option and then run the catalog upgrade as per patch instructions.
    14-     Create a temporary tablespace. The system thinks it has a temp tablespace, but it needs to be recreated
    a.     Create another temp tablespace (modify as needed).
         CREATE TEMPORARY TABLESPACE temp2
              TEMPFILE '......\temp02.dbf' SIZE 128M REUSE
              AUTOEXTEND ON NEXT 16M MAXSIZE unlimited
              EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    b.     Point the server to the new file
    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp2;
    c.     Delete the missing one:
              DROP TABLESPACE temp INCLUDING CONTENTS AND DATAFILES;
    d.     RECREATE THE temp tablespace;
              CREATE TEMPORARY TABLESPACE temp
                   TEMPFILE 'd:\......\temp_01.dbf' SIZE 128M REUSE
              AUTOEXTEND ON NEXT 16M MAXSIZE unlimited
              EXTENT MANAGEMENT LOCAL UNIFORM SIZE 1M;
    e.     Change system default tablespace again to temp:
              ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp;
    f.     Delete the transition temp tablespace temp2:
    DROP TABLESPACE temp2 INCLUDING CONTENTS AND DATAFILES;
    15-     Rename the database if the restored database name needs to change.
    Use the nid utility to rename the db. IMPORTANT: the temporary tablespace needs to exist for this to work, or the db rename will fail and a restore will have to be done.
    Use :
    -     Shutdown database in immediate mode.
    -     Startup in nomount.
    -     Open command prompt.
    -     set oracle_sid = sid
    -     nid sys/pass dbname=newname logfile=….\logfile.txt
    -     shutdown the db (if required)
    -     Change the dbname in the pfile or spfile to the new dbname
    -     Create a new password file:
    o     Orapwd file=….. password=…
    IMPORTANT NOTE: if you rename a DB, your existing backups will not be valid, do backups of the newly renamed db!!!
    16-     Open the database and test.
    NOTE: Whenever you open with resetlogs, YOU MUST BACKUP YOUR DATABASE. Your old backups can only be used to restore the old DB.
    I hope this helps.

  • Rman full backup, crash and full restore?

    Hi,
    I try to implement a simple backup and restore process with rman. Ok, with rman it's not simple. ;-)
    My aim is to backup a database with a full backup and restore it from this backup, for example when it crashes.
    Ok, for creating the backup I use this rman script:
    run
    allocate channel t1 type disk;
    backup incremental level 0 format 'PATHTOBAKFILE' database;
    release channel t1;
    The result is a 1GB large backupfile.
    Now I delete the whole database and create a new one to simulate a crash.
    After this is done, I want to restore the state of the database which is frozen in the backupfile.
    Therefor I use the following rman script:
    run
    allocate channel t1 type disk format 'PATHTOBACKUPFILE';
    shutdown immediate;
    startup mount;
    restore database;
    recover database;
    alter database open resetlogs;
    release channel t1;
    Now rman tells me an error:
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: Fehler bei restore Befehl auf 04/09/2008 10:24:59
    RMAN-06026: Einige Ziele nicht gefunden - Recovery wird abgebrochen
    RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 4 zum Wiederherstellen gefunden
    RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 3 zum Wiederherstellen gefunden
    RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 2 zum Wiederherstellen gefunden
    RMAN-06023: Kein Backup bzw. keine Kopie der Datendatei 1 zum Wiederherstellen gefunden
    In english: No backup or copy of datafile X where found for restore.
    I think the backup/restore possibilities with rman are very complex and I don't exactly understand which is the right backup strategie. I'm not an oracle specialist. Maybe someone can give me a hint.
    My program should backup the database full, differential and incremental and also restore only by using the given backupfiles. So I want somethink like Point-In-Time recovery, but rman should use the time-point of the given backupfile. And this backupfiles are stored outside oracle, e.g. on a server or somethink like this.
    Thanks a lot for help.
    Best regards,
    Ronny

    RMAN> run
    2> {
    3> allocate channel t1 type disk;
    4> backup incremental level 0 format 'PATHTOBAKFILE.%d.%u.P%p.C%c' current contr
    olfile database;
    5> release channel t1;
    6> }
    released channel: ORA_DISK_1
    allocated channel: t1
    channel t1: sid=160 devtype=DISK
    Starting backup at 09-APR-08
    channel t1: starting incremental level 0 datafile backupset
    channel t1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSTEM01.DBF
    input datafile fno=00003 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSAUX01.DBF
    input datafile fno=00002 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS01.DBF
    input datafile fno=00004 name=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\USERS01.DBF
    channel t1: starting piece 1 at 09-APR-08
    channel t1: finished piece 1 at 09-APR-08
    piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0TJDDSC1.P1.C1 comment=NONE
    channel t1: backup set complete, elapsed time: 00:01:05
    channel t1: starting incremental level 0 datafile backupset
    channel t1: specifying datafile(s) in backupset
    including current controlfile in backupset
    including current SPFILE in backupset
    channel t1: starting piece 1 at 09-APR-08
    channel t1: finished piece 1 at 09-APR-08
    piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0UJDDSE2.P1.C1 comment=NONE
    channel t1: backup set complete, elapsed time: 00:00:05
    channel t1: starting incremental level 0 datafile backupset
    channel t1: specifying datafile(s) in backupset
    including current controlfile in backupset
    channel t1: starting piece 1 at 09-APR-08
    channel t1: finished piece 1 at 09-APR-08
    piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1 comment=NONE
    channel t1: backup set complete, elapsed time: 00:00:02
    Finished backup at 09-APR-08
    released channel: t1
    RMAN> list backup of controlfile
    2> ;
    ORACLE error from target database:
    ORA-19922: there is no parent row with id 0 and level 0
    ORA-06512: at "SYS.DBMS_BACKUP_RESTORE", line 5035
    ORA-06512: at line 1
    RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
    RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT row
    s
    List of Backup Sets
    ===================
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    18      Incr 0  2M         DISK        00:00:02     09-APR-08
            BP Key: 18   Status: AVAILABLE  Compressed: NO  Tag: TAG20080409T214537
            Piece Name: C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0UJDDSE2.P1.C1
      Controlfile Included: Ckp SCN: 337949       Ckp time: 09-APR-08
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time
    19      Incr 0  2M         DISK        00:00:01     09-APR-08
            BP Key: 19   Status: AVAILABLE  Compressed: NO  Tag: TAG20080409T214537
            Piece Name: C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1
      Controlfile Included: Ckp SCN: 337950       Ckp time: 09-APR-08
    RMAN> run
    2> {
    3> allocate channel t1 type disk format 'PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1';
    4> shutdown immediate;
    5> startup nomount;
    6> restore controlfile from 'PATHTOBAKFILE.ORCL.0VJDDSE7.P1.C1';
    7> startup mount;
    8> restore database;
    9> recover database;
    10> shutdown normal;
    11> startup;
    12> release channel t1;
    13> }
    released channel: ORA_DISK_1
    allocated channel: t1
    channel t1: sid=160 devtype=DISK
    database closed
    database dismounted
    Oracle instance shut down
    connected to target database (not started)
    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
    Starting restore at 09-APR-08
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=160 devtype=DISK
    channel ORA_DISK_1: restoring controlfile
    channel ORA_DISK_1: restore complete
    output filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\CONTROL01.CTL
    output filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\CONTROL02.CTL
    output filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\CONTROL03.CTL
    Finished restore at 09-APR-08
    database is already started
    database mounted
    ORACLE error from target database:
    ORA-19922: there is no parent row with id 0 and level 0
    ORA-06512: at "SYS.X$DBMS_BACKUP_RESTORE", line 5038
    ORA-06512: at line 1
    RMAN-06900: WARNING: unable to generate V$RMAN_STATUS or V$RMAN_OUTPUT row
    RMAN-06901: WARNING: disabling update of the V$RMAN_STATUS and V$RMAN_OUTPUT row
    s
    Starting restore at 09-APR-08
    Starting implicit crosscheck backup at 09-APR-08
    released channel: ORA_DISK_1
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=160 devtype=DISK
    Crosschecked 2 objects
    Finished implicit crosscheck backup at 09-APR-08
    Starting implicit crosscheck copy at 09-APR-08
    using channel ORA_DISK_1
    Finished implicit crosscheck copy at 09-APR-08
    searching for all files in the recovery area
    cataloging files...
    cataloging done
    no files cataloged
    using channel ORA_DISK_1
    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\PRODUCT\10.1.0\ORADATA\ORCL\SYSTEM01.DBF
    restoring datafile 00002 to C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\UNDOTBS01.DBF
    restoring datafile 00003 to C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\SYSAUX01.DBF
    restoring datafile 00004 to C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\USERS01.DBF
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\WINDOWS\SYSTEM32\PATHTOBAKFILE.ORCL.0TJDDSC1.P1.C1 tag=TAG200804
    09T214537
    channel ORA_DISK_1: restore complete
    Finished restore at 09-APR-08
    Starting recover at 09-APR-08
    using channel ORA_DISK_1
    starting media recovery
    archive log thread 1 sequence 1 is already on disk as file C:\ORACLE\PRODUCT\10.
    1.0\ORADATA\ORCL\REDO02.LOG
    archive log filename=C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\REDO02.LOG thread=1 s
    equence=1
    media recovery complete
    Finished recover at 09-APR-08
    database dismounted
    Oracle instance shut down
    connected to target database (not started)
    Oracle instance started
    database mounted
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of startup command at 04/09/2008 21:53:03
    ORA-01589: must use RESETLOGS or NORESETLOGS option for database open
    open database with resetlogs instead startup
    RMAN>Khurram

  • PERFORMING FULL RECOVERY WHEN THE RECOVERY CATALOG AND CONTROLFILE ARE LOST

    제품 : RMAN
    작성날짜 : 2002-05-30
    PERFORMING FULL RECOVERY WHEN THE RECOVERY CATALOG AND CONTROLFILE ARE LOST
    ===========================================================================
    PURPOSE
    Recovery Catalog와 Controlfile이 손상되었을 때 Oracle9i의 new feature인
    Controlfile Autobackup을 이용하여 full recovery를 수행하는 방법을 알아본다
    EXPLANATION
    Catalog와 Controlfile이 모두 손상되었을 경우 full recovery를 수행할 수 있도록
    하기 위해 oracle9i부터 Controlfile Autobackup이라는 New feature를 제공한다.
    이 Feature가 활성화되면 RMAN은 자동으로 특정 형식(specific format)으로
    controlfile을 backup한다 나중에 RMAN은 Recovery catalog를 access하지 않고도
    이 backup을 인식할 수 있다. 이 형식은 "%F"라는 variable을 포함하는데
    이 variable은 중요한 정보인 DATABASE ID를 포함하고 있다.
    이것은 다음과 같은 CONFIGURE 명령을 사용하여 Turn-on 될 수 있다.
    RMAN> configure controlfile autobackup on;
    활성화시킨 후에 controlfile autobackup의 format을 변경할 수 있다. 그러나
    이것은 반드시 variable "%F"를 포함해야만 한다. 그렇지 않으면 다음과 같은 Error
    를 만나게 된다.
    RMAN> configure controlfile autobackup format for
    2> device type disk to 'c:\backups\%U';
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-00579: the following error occurred at 01/31/2002 11:57:21
    RMAN-03002: failure during compilation of command
    RMAN-03013: command type: configure
    RMAN-06492: controlfile autobackup format "c:\backups\%U" must specify a "%F"
    format specifier
    %F 는 RMAN이 recovery catalog 없이 backup piece를 인식하도록 Key이다.
    이 Feature가 활성화 된 후에 RMAN은 BACKUP 명령을 수행할 때마다 controlfile에
    대해서 별도의 backup을 수행한다. 이전에는, controlfile 은 오직 system
    tablespace가 backup되는 경우에만 자동으로 backup되었다.
    Database Backup은 아래와 같은 log를 출력한다.
    RMAN> backup database;
    Starting backup at 31-JAN-02
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: sid=12 devtype=DISK
    channel ORA_DISK_1: starting full datafile backupset
    channel ORA_DISK_1: specifying datafile(s) in backupset
    input datafile fno=00001 name=C:\ORACLE\ORADATA\PROD\SYSTEM01.DBF
    input datafile fno=00002 name=C:\ORACLE\ORADATA\PROD\UNDOTBS01.DBF
    input datafile fno=00005 name=C:\ORACLE\ORADATA\PROD\EXAMPLE01.DBF
    input datafile fno=00006 name=C:\ORACLE\ORADATA\PROD\INDX01.DBF
    input datafile fno=00008 name=C:\ORACLE\ORADATA\PROD\USERS01.DBF
    input datafile fno=00003 name=C:\ORACLE\ORADATA\PROD\CWMLITE01.DBF
    input datafile fno=00004 name=C:\ORACLE\ORADATA\PROD\DRSYS01.DBF
    input datafile fno=00007 name=C:\ORACLE\ORADATA\PROD\TOOLS01.DBF
    channel ORA_DISK_1: starting piece 1 at 31-JAN-02
    channel ORA_DISK_1: finished piece 1 at 31-JAN-02
    piece handle=C:\BACKUPS\01DFKAIH_1_1 comment=NONE
    channel ORA_DISK_1: backup set complete, elapsed time: 00:01:56
    Finished backup at 31-JAN-02
    Starting Control File Autobackup at 31-JAN-02
    piece handle=C:\BACKUPS\C-4159396170-20020131-00 comment=NONE
    Finished Control File Autobackup at 31-JAN-02
    Note:
    Controlfile backup은 backup의 끝에서 수행된다.
    그리고 이 backup piece name의 두번째 string은 dbid이다(4159396170)
    Current controlfile이 database와 함께 손실되고 Recovery catalog도 손상되어
    사용할 수 없게 되었을 때 controlfile autobackup이 controlfile을 restore하기
    위해 사용될 수 있다. restore된 controlfile은 db를 mount하고 datafile들을
    restore하기 위해 사용될 수 있다.
    Controlfile autobackup을 이용하여 full recovery를 수행하기 위해서는 아래와
    같은 과정을 수행하면 된다.
    1. Target instance를 위한 new init.ora를 생성한다. backup이 있다면 이것을
    사용할 수 있다.
    2. Startup nomount your new instance.
    3. RMAN은 시작하나 어떤 connect statement도 수행하지 않는다.
    4. RMAN prompt상에서 DBID를 설정한다. 만약 DBID를 모르면 controlfile autobackup
    의 이름으로부터 이것을 알 수 있다.
    RMAN> set dbid=4159396170;
    5. Dbid를 설정한 후에 nomount로 startup한 target instance에 connect한다.
    RMAN> connect target /
    6. 만약에 backup이 disk상에 있고 controlfile autobackup을 non-default location
    으로 지정하였다면 파일을 다음과 같은 위치로 옮겨 놓는다
    ON UNIX : ORACLE_HOME/dbs
    ON WINDOWS: ORACLE_HOME/database
    RMAN은 controlfile autobackup을 찾기 위해 위 directory를 검색한다.
    만약 controlfile autobackup location을 바꾸지 않으면 위 directory안에
    backup이 생성되게 된다.
    만약에 backup이 tape에 있다면 restore시 channel과 device를 기술하기 위해서
    run block을 사용해야 한다. database가 mount되어 있지 않기 때문에
    default device와 channel을 설정할 수 없다.
    RMAN> run { allocate channel c_1 type 'sbt_tape'
    parms "ENV=(NB_ORA_SERV=rm-wgt)";
    restore controlfile from autobackup;}
    7. Restore the controlfile:
    RMAN> restore controlfile from autobackup;
    8. Mount the database from the restored controlfile:
    RMAN> alter database mount;
    9. Restore datafiles:
    RMAN> restore database;
    10. file들을 restore한 후에 recovery를 수행할 수 있다.
    이때 current online redo log가 없고 또한 backup controlfile을 사용하기
    때문에 incomplete recovery를 수행해야 한다. 이를 수행하기 위해서는
    "UNTIL TIME"을 설정해야 하고 open시에는 resetlogs를 사용해야 한다.
    RMAN> set until time=<time stamp>;
    RMAN> recover database;
    RMAN> alter database open resetlogs;
    REFERENCE DOCUMENT
    NOTE:174623.1

    BACKUP Command Behavior
    ON
    If the backup includes datafile 1, then RMAN does not automatically include the current control file in the datafile backup set. Instead, RMAN writes the control file and server parameter file to a separate autobackup piece.
    Note: The autobackup occurs regardless of whether the BACKUP or COPY command explicitly includes the current control file, for example, BACKUP DATABASE INCLUDE CURRENT CONTROLFILE.
    OFF
    If the backup includes datafile 1, then RMAN automatically includes the current control file and server parameter file in the datafile backup set. RMAN does not create a separate autobackup piece containing the control file and server parameter file.
    BUT Dear Mohammed,
    It is not working accordingly. what I did is :-
    1. I switched off the AUTOBACKUP
    2. Then I took whole database backup, that means it included File # 1
    3. But according to above it is going to include autobackup of controlfile and spfile in the same backupset .
    4. But when I asked it to restore controlfile from autobackup it said NO AUTOBACKUP FOUND.
    COULD YOU PLEASE HELP ME ONCE AGAIN DEAR.
    If it works accroding to above then it should have my Autobackup.
    Regards
    Harpreet Singh

  • Took backup of data files and controlfile but not archive file db is 11g xe

    took backup of data files and controlfile but not redo file db is 11g xe r2..was trying complete shut backup,..missed redo..
    anyway to restore the db back..
    I had failed to backup redo log file..
    db was shut...properly
    any info highly appreciated.
    cheers
    Edited by: zycoz100 on Feb 27, 2013 4:42 AM

    A controlfile create is a fairly trivial task, for either a cold backup or hot backup scenario. Well, its an easy task after you've done the process a few times.
    If you have a healthy oracle instance running any place else, preferably at 11gR2, or even a 10g instance can work as an example, get a system connection and do an `alter database backup controlfile to trace;` and the instance will create a new trace file with all SQL commands needed to rebuild the controlfile in the instance trace directory.
    Have a look at the trace file, a `show parameter diag` reveals the diagnostic_dest parameter, look for the "trace" directory under that folder, for the latest *trc file. In 10g its `show parameter dump` and the trace file goes straight to the user_dump_dest directory, no digging required.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • My ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend

    my ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend

    I have not seen a solution for error (1)
    make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • "Itunes cannot read the contents of ipod. Go to the summary tab in Ipod preferences and click Restore to restore this ipod to factory settings." What is this?

    I have been getting this error message since about the end of June when I updated to the latest version of iTunes. It's pretty annoying. Let me lay out how this has been happening for the past month, the best I can. I have a 32GB 4th gen iPod Touch
    I load content up to my iPod. Music, Apps, Videos, pictures, etc.
    My iPod works well for a little while, days sometimes a week is the longest I went without seeing this message.
    I connect iPod back to my laptop through the standard pack in Apple USB connector.
    I get the "Itunes cannot read the contents of ipod. Go to the summary tab in Ipod preferences and click Restore to restore this ipod to factory settings." message. When I go to the preferences tab, I click restore and iTunes gets stuck trying to restore my iPod. Then I have to uplug my iPod. And Shutdown/Restart my PC reconnect my iPod, and go through the restore process again.
    I have been doing this for as I said, a month. It's getting pretty grueling to keep havomh putting cotent on my iPod after these restores.
    I've tried everything.
    I've stopped autosync, it still happens.
    I tried to reinstall iTunes(be it I didn't full uninstall before trying to install again and got the option to fix corrupted files and such
    I've deleted all old back up, and it still happens
    Today is the fist time I'm fully uninstalling iTunes, and then reinstalling to see if this works.
    But do you guys have any otehr solutions for this? As I said, this didn't start happening until I installed the lastest version of iTunes 10.6.3

    - Have you tried another cable?
    - Another USB port?
    - When you have the problem, connect it to another computer to help determine if you have an iPod or computer problem.
    - Try just restoring the iPod to factory settings/new iPod. Do not restore from backup. If you still have the problem with this and all computer that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • Hi, my phone is disabled and it wont open and i restored it already

    hi, my phone is disabled and it wont open and i restored it already

    Hi,
    You will need to do a restore while in DFU mode.
    The easiest way to find out how to put your iPhone into DFU is to Google it and see for yourself.
    Aaron.

  • HT1339 I have tried restoring an Ipod Nano 6th Generation but it seems to keep looping back and saying it is in recovery and needs restoring, can anyone help?

    I have tried restoring an Ipod Nano 6th Generation but it seems to keep looping back and saying it is in recovery and needs restoring, can anyone help?

    Try doing a level reformat of the iPod's flash storage instead to see if that kills the restore loop using the instructions in the article below.
    http://www.methodshop.com/gadgets/ipodsupport/erase/
    B-rock

  • Tabs and window restore only restored one of many open windows from last session. I hate this!!

    Tab and window restoration has FAILED after version 13.01 installation! Out of 7 windows open with multiple tabs, only ONE BROWSER WINDOW OPENED with NO reference to what happened to the normal session that had been in the previous version of FF. I've read about this and I DON'T LIKE IT. It is reverse engineering. WHY would you scrap someone's research for the sake of making your browser open more quickly? DAMMIT MAN I don't have time to study a browser. I may not endure this version! I don't see a way out of this ff trap, other than go to previous version which is always a bitch. Dammit!

    You need to use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar to close Firefox with all open windows at once. Otherwise only the last closed window will be restored. If this did happen then check History > Recently Closed Windows to see if any are listed (default is 3).

  • HT4946 i got my new iPhone 5 and i connected it to my iTunes on mac and it ask me if i want to setup as new iPhone or restore backup and i restore back up but now i want to delete backup and set up as new iPhone, is the anyhow?

    i got my new iPhone 5 and i connected it to my iTunes on mac and it ask me if i want to setup as new iPhone or restore backup and i restore back up but now i want to delete backup and set up as new iPhone, is the anyhow?

    The iCloud backup includes most things except non-iTunes purchased but the iTunes backup does not include those either. For what iCloud includes see:
    iCloud: iCloud storage and backup overview

  • HT6154 Need help!! Got a new phone, was able to download info from the old phone and set up iCloud but now i want to use the old phone as an 'iPod' just for music, when i get into iTunes it now says the old phone is in restoration mode and to restore iPho

    Do I restore the old phone? What should I do?

    it now says the old phone is in restoration mode and to restore iPhone.
    Hmmm...
    That's a doozy. I'll have to think on that for a bit.
    Quite perplexing indeed. A quandary you could say.
    Not really sure what you could try...
    Have you tried anything yet?

  • 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

  • Hello. I have updated my iphone 4 to ios7 after doing a backup to itunes. I am caught in a loop of being asked to 'restore from backup' as part of setup and that restore failing because the phone already has it's content I believe. Please help if you can.

    Hi. I have an iphone 4 that I have just installed ios7 onto. I had backed up the phone prior.
    After the software install the phone rebooted and showed the 'Hello' setup. I am stuck because as part of the setup it asks me to 'restore from backup via itunes". I dont understand why i need to do this as I thought the ios7 install procedure would restore the phone with it's content.
    I tried to restore from backup but it says I cant because there is not enough space on the phone. If I connect the phone to itunes, it shows that the phone has all my content, especially since iphoto launches and I can see all the photos it wants to download to iphoto off the phone.
    I am caught in a loop. My phone has it's content, but the startup procedure on the phone will not let me progress until I have restored from backup via itunes. But it cant because the phone has no space!!
    The only other option it gives is 'Set up as new phone".
    Can anyone help please. Thanks.

    You should be syncing your contacts with an app on your computer or cloud service (iCloud, Gmail, Yahoo, etc), and not relying on a backup.  If you haven't been doing this, start now and then restore your old backup.  You will then be able to sync the new contacts back into the phone.  However, you will lose all messages, etc newer thant the backup.

  • I have an iphone 3GS and I have upgraded it to iOS 6. Since then it doesn't work properly. Every now and then it has been restarting by itself and requiring restore. When I connect it to itunes it restarts again and again. Is there any solution?

    I have an iphone 3GS and I have upgraded it to iOS 6. Since then it doesn't work properly.
    Every now and then it has been restarting by itself and requiring restore. When I connect it to itunes it restarts again and again without letting me take any action. Is there any solution?

    Hey, There are afew things you can try.
    - Simply turn your phone off and back on again
    - Hold down your home button and your lock button and let goes as soon as the screen goes black (Phone will power down) - Then turn on your phone and hey presto!
    - Back up your iPhone to your PC, then restore it..
    this ones last cause I think you may have tried it already..
    - Close all open applications
    Hope this helps!
       Kieran.

Maybe you are looking for