Media recovery issue

Hello
Why is media recovery is faster than, normal DML,DDL,etc?
In production database, It took 1 hour to rebuild indexes and move some objects to diffrent tablespace.
However, When I apply the archivelog of these changes to standby, it took about 20 minutes.
What is reason for this?
Cheers

Media Recovery / Physical Standby operations are faster because they actually only write the final results.
For example, in the index rebuild case, the operations doing the SQL are
a. read table, get column values from table
b. sort values
c. if allocated pga/sort_area is insufficient, overflow to disk
d. run final sort pass, if necessary
e. write sorted results to the index segment
(recursive SQLs to allocate extents, update the data dictionary for the index definition also have to be applied, each of these also having to read the existing extent maps and data dictionary before updating them).
However, when you run media recovery
1. Oracle does not have to read the table
2. There is no sort operation
3. Writes to temp are avoided (as Temp operations are nologging and there is nothing in the redo to "replay" against the tempfiles)
4. The index blocks are "updated" directly

Similar Messages

  • How to do media recovery from cold backup?????????/

    Hi
    i take cold backup of my 9i database ....
    in case my database is up .....
    how will i recover my database if i lose a single database file and i want to recover it from cold backup......
    Thanks in advance
    Gagan

    Here you go
    These are the steps:
    1. Restore the lost file from a backup.
    2. If the database is down, mount it.
         SVRMGR> STARTUP MOUNT PFILE=<location_of_pfile>;
    3. Issue the following query:
    SVRMGR> SELECT V1.GROUP#, MEMBER, SEQUENCE#,
    FIRST_CHANGE#
    FROM V$LOG V1, V$LOGFILE V2
    WHERE V1.GROUP# = V2.GROUP# ;
    This will list all your online redolog files and their respective
    sequence and first change numbers.
    4. If the database is in NOARCHIVELOG mode, issue the query:
         SVRMGR> SELECT FILE#, CHANGE# FROM V$RECOVER_FILE;
    If the CHANGE# is GREATER than the minimum FIRST_CHANGE# of your logs,
    the datafile can be recovered. Just keep in mind that all the logs to
    applied will be online logs, and move on to step 5.
    If the CHANGE# is LESS than the minimum FIRST_CHANGE# of your logs, the
    file cannot be recovered. Your options at this point would be to restore
    the most recent full backup (and thus lose all changes to the database
    since) or recreate the tablespace as explained in scenario a.
    5. Recover the datafile:
    SVRMGR> RECOVER DATAFILE '<full_path_file_name>'
    6. Confirm each of the logs that you are prompted for until you receive the
    message "Media recovery complete". If you are prompted for a non-existing
    archived log, Oracle probably needs one or more of the online logs to
    proceed with the recovery. Compare the sequence number referenced in the
    ORA-280 message with the sequence numbers of your online logs. Then enter
    the full path name of one of the members of the redo group whose sequence
    number matches the one you are being asked for. Keep entering online logs
    as requested until you receive the message "Media recovery complete"
    7. If the database is at mount point, open it.

  • Media Recovery Waiting for thread 1 sequence (in transit)

    I have rebuilt our standby database using an rman duplicate since it was missing many archive logs.
    Following the duplicate, the standby is now almost in sync with the primary. Logs are shipping across but are not being applied in a timely manner. How long should it take for an archive log from the primary to be applied to the standby?
    I need to know this so that a proper script can be set up to check the primary and standby. At the moment they are never exactly in sync - always one sequence number behind the primary.
    Why is the standby is not applying in a timely manner?
    From the alert log:
    Media Recovery Waiting for thread 1 sequence 11278 (in transit)
    The log seems to be "in transit" for a long time
    PRIMARY:
    SQL> select max (sequence#) current_seq from v$log;
    CURRENT_SEQ
    11278
    SB:
    SQL> select MAX (SEQUENCE#), APPLIED FROM V$ARCHIVED_LOG where APPLIED ='YES' GROUP BY APPLIED;
    MAX(SEQUENCE#) APP
    11277 YES
    ALERT LOG:
    RFS[2]: Archived Log: '/backup/prod/log_1_11277_704816194.dbf'
    Primary database is in MAXIMUM PERFORMANCE mode
    Mon Nov 1 15:22:01 2010
    Media Recovery Log /backup/prod/log_1_11272_704816194.dbf
    Mon Nov 1 15:26:49 2010
    Media Recovery Log /backup/prod/log_1_11273_704816194.dbf
    Mon Nov 1 15:29:54 2010
    Media Recovery Log /backup/prod/log_1_11274_704816194.dbf
    Mon Nov 1 15:34:18 2010
    Media Recovery Log /backup/prod/log_1_11275_704816194.dbf
    Mon Nov 1 15:36:42 2010
    Media Recovery Log /backup/prod/log_1_11276_704816194.dbf
    Mon Nov 1 15:39:43 2010
    Media Recovery Log /backup/prod/log_1_11277_704816194.dbf
    Mon Nov 1 15:42:34 2010
    Media Recovery Waiting for thread 1 sequence 11278 (in transit)
    I should add that I understand that for the Primary and Standby to be out by one log is not cause for concern (they are applying). Its just that I wanted to script a check that would compare them both, and and the moment they are never equal - when I understand that they should be and that the logs should be applied almost immediately.
    Edited by: Dan A on Nov 1, 2010 4:36 PM

    How long should it take for an archive log from the primary to be applied to the standby?depends on network speed also.
    make sure the archives are shipped to standby location.
    PRIMARY:
    SQL> select max (sequence#) current_seq from v$log;
    CURRENT_SEQ
    11278(this is log not archivelog ) ..... :)SB:
    SQL> select MAX (SEQUENCE#), APPLIED FROM V$ARCHIVED_LOG where APPLIED ='YES' GROUP BY APPLIED;
    MAX(SEQUENCE#) APP
    11277 YES
    Hi check is MRP started or not?
    primary database you need not check current sequence, check last generated sequence..not current sequence.
    current sequence is redo log which has been not yet archived
    I think everything is perfect here.. no issues.
    Hope you understood, let me know if not clear , thanks.

  • Media Recovery failed with error 1111

    Hi,
    on 10g R2 on Unix I have :
    Media Recovery Start
    Managed Standby Recovery not using Real Time Apply
    Fri Jun 24 10:56:52 2011
    Media Recovery failed with error 1111
    From alert.log :
    Errors in file /data01/oracle/mydb/admin/bdump/hhhh_17637.trc:
    ORA-01111: name for data file 523 is unknown - rename to correct file
    ORA-01110: data file 523: '/oracle/product/10g/db_1/dbs/UNNAMED00523'
    ORA-01157: cannot identify/lock data file 523 - see DBWR trace file
    ORA-01111: name for data file 523 is unknown - rename to correct file
    ORA-01110: data file 523: /oracle/product/10g/db_1/dbs/UNNAMED00523'
    Any idea ?
    Thanks.

    here is one test case, i ran into same issue. and reolved as below.
    When Standby_file_management is set to “MANUAL” , if any data files added on primary database, These changes certainly won’t be altered in standby database.
    After starting MRP process, it dies and terminated with the following errors.
    Errors from Alert log file:-
    Errors in file /oracle/app/oracle/admin/CC/bdump/cc_mrp0_22294.trc:
    ORA-01111: name for data file 536 is unknown - rename to correct file
    ORA-01110: data file 536: '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536'
    ORA-01157: cannot identify/lock data file 536 - see DBWR trace file
    ORA-01111: name for data file 536 is unknown - rename to correct file
    ORA-01110: data file 536: '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536'
    Errors from Trace file:-
    MRP0: Background Media Recovery terminated with error 1111
    ORA-01111: name for data file 536 is unknown - rename to correct file
    ORA-01110: data file 536: '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536'
    ORA-01157: cannot identify/lock data file 536 - see DBWR trace file
    ORA-01111: name for data file 536 is unknown - rename to correct file
    ORA-01110: data file 536: '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536'
    ORA-01111: name for data file 536 is unknown - rename to correct file
    ORA-01110: data file 536: '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536'
    ORA-01157: cannot identify/lock data file 536 - see DBWR trace file
    ORA-01111: name for data file 536 is unknown - rename to correct file
    ORA-01110: data file 536: '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536'
    ARCH: Connecting to console port...
    Check out from SQL, Which files need to be recovered on standby database?
    SQL> select * from v$recover_file where error like '%FILE%';
    FILE# ONLINE  ONLINE_ ERROR                   CHANGE# TIME
    +536 ONLINE ONLINE FILE MISSING 0+
    SQL>
    On Primary check out for actual naming convention:-
    SQL>  select file#,name from v$datafile where file#=536;
    FILE# NAME
    +536 DATA/c/datafile/undotbs9.595.750444337
    SQL>
    On Standby check datafile name:-
    SQL> select file#,name from v$datafile where file#=536;
    FILE# NAME
    +536 /oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536+
    SQL>
    Make sure still standby_file_management is set to “MANUAL”, After performing media recovery again can be enabled to “AUTO”.
    Rename datafile from standby database:-
    SQL> alter database create datafile '/oracle/app/oracle/product/10.2.0/db_1/dbs/UNNAMED00536' as 'DATA3/cc/datafile/undotbs9_595_750444337';+
    Database altered.
    Start the MRP Now:-
    SQL> alter database recover managed standby database disconnect from session;
    Database altered.
    After creating the file, MRP will start applying archives on standby database.

  • Database Crash - Media Recovery Required - [SOLVED]

    I am trying to understand why media recovery was required when our database had crashed ( this was 2 months ago ). This is just for my understanding and I would appreciate if you could explain it to me.
    We have a 10g database on Solaris 10 and EMC SAN for storage. One of the technicians came in look at some electrical issue. And accidentally turned off the power supply to the SAN.
    This caused the database instance to crash.
    When the DBA tried to startup the database, he said that he was getting errors that some datafiles were corrupted and ruled that media recovery was required.
    He took the backups taken 12 hours ago and applied the archived redo logs. Everything was fine except for the downtime ( it took 6 hours for this whole process).
    I have several questions:
    1. why would the datafiles get corrupted? was the disk in the process of writing and could not complete the task?
    2. why did the database not do crash recovery i.e use redo logs? why did we have to use backup?
    Thanks.
    Message was edited by:
    sayeed

    1. why would the datafiles get corrupted? was the
    disk in the process of writing and could not complete
    the task?This could happen if a datafile being accessed during the power failure resulting in corrupting the file which can happen to any file during power failure..In this case it was datafile resulting in dataabse crash...
    2. why did the database not do crash recovery i.e
    use redo logs? why did we have to use backup?Since the file is corrupted you need to replace it with a last backup and apply logs to bring it consistent state....
    Again ..This is what i have understood so far
    correct me if i am wrong

  • ARC0: media recovery disabled in Alert.log? What is ist?

    Hello this is Standing in my Alert.log;
    Dump file c:\timDB\oracle\dump\bgdump\tim1ALRT.LOG
    Tue Jun 21 13:08:18 2005
    ORACLE V8.1.7.0.0 - Production vsnsta=0
    vsnsql=e vsnxtr=3
    Windows NT Version 4.0 Service Pack 6, CPU type 586
    Tue Jun 21 13:08:18 2005
    Thread 1 advanced to log sequence 5496
    Current log# 4 seq# 5496 mem# 0: C:\TIMDB\ORA_BACKUP\TIM\ORA_REDO\TIM1LOG4.RDO
    Current log# 4 seq# 5496 mem# 1: C:\TIMDB\ORA_DB\TIM\ORA_REDO2\TIM1LOG4.RDO
    Tue Jun 21 13:08:18 2005
    ARC0: media recovery disabled
    What is Wrong wiht my Oracle?

    This problem occurs because an archive process has been started but it has nothing to do because the database is in NOARCHIVELOG mode. This could be rather serious if it is expected that the database runs in ARCHIVELOG mode.
    This happens when only log_archive_start = true. Which means an archive process is started on database startup, but because the database is not actually in archivelog mode, the archiver reports the above message.
    To verify use v$database view. The LOG_MODE is NOARCHIVELOG even though log_archive_start = true.
    Put the database in archivelog mode:
    1.1. Mount the database.
    1.2. Issue the command: ALTER DATABASE ARCHIVELOG;
    Jaffar

  • HP Media recovery files missing

    My HP ENVY 17 Notebook PC has unwanted files that would take me forever to find and delete so i try to reset it to factory settings but the message on the screen tells me to insert a media recovery disc. i do not have the disc and im getting frustrated. i have searched online multiple times and nothing has helped, also i was told by a support agent to buy a media disc online BUT at the moment i dont got the money for that. Any other way i can get my media files back on here? 

    @TristenLayh ,
    Hello and thank you for posting on the HP support forum.  This link will help you with obtaining the recovery media.
    HP PCs - Obtaining HP Recovery Discs or an HP USB Recovery Drive
    Please let me know if you are in need of any more help.
    Thank you again for posting and have a great day.
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    D5GR
    I work on behalf of HP

  • SYSAUX DATAFILE CONSTANTLY REQUIRES MEDIA RECOVERY

    Hello,
    Can anyone help me with this reoccurring problem in my Oracle 10g EE R2 database? My sysaux datafile is always going offline and requires media recovery before it can be brought back online. I have created additional datafiles but that didn't resolve the issue.
    Thank you.

    As for your "Failed to find ARCH for message..."
    Check this out:
    Cause
    Bug 4704334 - ''TKCRRSARC: (WARN) FAILED TO FIND ARCH FOR MESSAGE (MESSAGE:0X1)''
    These messages are warning messages and are a consequence of the internal archive process spawning and releasing.
    There can be different reasons for this message to appear, but it is in fact related to internal work.
    Solution
    These are only diagnostic messages and can be safely ignored.
    However, there are two options:
    Option 1
    Ignore the messages.
    Option 2
    Increase the log_archive_max_processes equal to/or greater than 10
    *Testing information about Option 2
    log_archive_max_processes=2 may still cause messages, and 4 may cause less.
    Recommended setting is 10 or higher as testing has verified that messages disappeared completely at this setting.
    References
    Bug 4704334 - ''TKCRRSARC: (WARN) FAILED TO FIND ARCH FOR MESSAGE (MESSAGE:0X1)''

  • Can't Cancel the Process Of Media Recovery Creation and Start A New One

    help me cancel the process of media recovery creation and start it all over again because i found that i need four disks to make the recovery creation. i made the first disk but i need to get another three disks for the process to be completed. It says that "media recovery creation has not been completed", so i want to cancel the whole opeation and start from the beginning later when i am ready for it. How can i do that, any steps or instructions to solve this issue would be appreciated.
    Computer: HP Pavilion dv6-6120se
    OS: Windows 7 home premium x64
    This question was solved.
    View Solution.

    You can only create one set of recovery discs. So once the process is completed, you will not be able to create another.
    -------------How do I give Kudos? | How do I mark a post as Solved? --------------------------------------------------------

  • Trouble Creating Media Recovery Disc

    I'm getting an error when attempting to create a Media Recovery Disc. The error is "unable to read file D:\SOURCES\BOOT.WIM - error code 020150-20-00000000". The D drive is my DVD/CD drive. How can I resolve this issue?

    Satellite C655-S5225 (PSC08U-06P038)
    I was hoping we could find a download for the Recovery Disc Creator program. Either it or the recovery partition is probably corrupt.
    If the computer is in warranty, I think you should call Toshiba's tech support at 800-457-7777.
    -Jerry

  • RMAN recovery Issue

    Hi Expert,
    I having a issue when do db recovery with following error. My db is not in archivelog mode. Kindly advise Tks
    channel dev1: restore complete
    Finished restore at 20-AUG-10
    Starting recover at 20-AUG-10
    starting media recovery
    unable to find archive log
    archive log thread=1 sequence=1
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01190: controlfile or data file 1 is from before the last RESETLOGS
    ORA-01110: data file 1: '/export/home/oracleas/oradata/orcl/system01.dbf'
    released channel: dev1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 08/20/2010 15:12:34
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 1 lowscn 8165752
    Recovery Manager complete.

    Hi,
    Information as per below:
    RMAN> list incarnation of database;
    using target database controlfile instead of recovery catalog
    List of Database Incarnations
    DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
    1 1 ORCL 1236121495 PARENT 1 20-JUN-06
    2 2 ORCL 1236121495 CURRENT 743480 15-JAN-10
    3 3 ORCL 1236121495 ORPHAN 8165752 20-AUG-10
    RMAN> list backup;
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    1 Full 1G DISK 00:01:58 20-AUG-10
    BP Key: 1 Status: AVAILABLE Compressed: NO Tag: TAG20100820T122103
    Piece Name: /export/home/oracleas/infra/backup/01llqgtf_1_1
    List of Datafiles in backup set 1
    File LV Type Ckp SCN Ckp Time Name
    1 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/system01.dbf
    2 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/undotbs01.dbf
    3 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/sysaux01.dbf
    4 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/users01.dbf
    5 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/portal.dbf
    6 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ptldoc.dbf
    7 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ptlidx.dbf
    8 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ptllog.dbf
    9 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/ias_meta01.dbf
    10 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/discopltm1.dbf
    11 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/discopltc1.dbf
    12 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/dcm.dbf
    13 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/oss_sys01.dbf
    14 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/wcrsys01.dbf
    15 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_rt.dbf
    16 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_dt.dbf
    17 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_idx.dbf
    18 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/b2b_lob.dbf
    19 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/orabpel.dbf
    20 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/bam.dbf
    21 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/oca.dbf
    22 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/uddisys01.dbf
    23 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/attrs1_oid.dbf
    24 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/battrs1_oid.dbf
    25 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/gcats1_oid.dbf
    26 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/gdefault1_oid.dbf
    27 Full 8165751 20-AUG-10 /export/home/oracleas/oradata/orcl/svrmg1_oid.dbf
    28 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/very_large_data.dbf
    29 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/very_large_indexes. dbf
    30 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/large_indexes.dbf
    31 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/medium_data.dbf
    32 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/medium_indexes.dbf
    33 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/small_data.dbf
    34 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/small_indexes.dbf
    35 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mygst/TBS_MYGST.DBF
    36 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/very_large_data_k b.dbf
    37 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/very_large_indexe s_kb.dbf
    38 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/large_data_kb.dbf
    39 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/large_indexes_kb. dbf
    40 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/medium_data_kb.db f
    41 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/medium_indexes_kb .dbf
    42 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/small_data_kb.dbf
    43 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/small_indexes_kb. dbf
    44 Full 8165751 20-AUG-10 /export/home/oracleas/oradata_mykbgst/TBS_MYKBGST.DBF

  • Rman recovery issue in oracle database 10g

    hi all,
    i have two backups of database one is full and of 3 days previous than sysdate and one is incremental level 1 of sysdate.i have recover database successfully upto 3 days previous and open database with resetlogs but recovering the incremental backup i got the following error
    RMAN> restore database until time "to_date('06/10/09 13:09:00','MM/DD/YY HH24:MI
    *:SS')";*
    *Starting restore at 10-JUN-09*
    *using channel ORA_DISK_1*
    *RMAN-00571: ===========================================================*
    *RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============*
    *RMAN-00571: ===========================================================*
    *RMAN-03002: failure of restore command at 06/10/2009 14:23:13*
    *RMAN-20207: UNTIL TIME or RECOVERY WINDOW is before RESETLOGS time*
    what should i do in this regard to recover upto sysdate with rman

    RMAN> reset database to incarnation 2;
    using target database control file instead of recovery catalog
    database reset to incarnation 2
    RMAN> restore database until time "to_date('06/10/09 01:09:00','MM/DD/YY HH24:MI
    *:SS')";*
    *Starting restore at 11-JUN-09*
    *allocated channel: ORA_DISK_1*
    *channel ORA_DISK_1: sid=155 devtype=DISK*
    *RMAN-00571: ===========================================================*
    *RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============*
    *RMAN-00571: ===========================================================*
    *RMAN-03002: failure of restore command at 06/11/2009 10:28:42*
    *RMAN-06026: some targets not found - aborting restore*
    *RMAN-06023: no backup or copy of datafile 4 found to restore*
    *RMAN-06023: no backup or copy of datafile 3 found to restore*
    *RMAN-06023: no backup or copy of datafile 2 found to restore*
    *RMAN-06023: no backup or copy of datafile 1 found to restore*
    *RMAN> restore database until time "to_date('06/10/09 13:09:00','MM/DD/YY HH24:MI*
    *:SS')";*
    *Starting restore at 11-JUN-09*
    *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.2.0\ORADATA\WINDB\SYSTEM01.DBF*
    *restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\WINDB\UNDOTBS01.DBF*
    *restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\WINDB\SYSAUX01.DBF*
    *restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\WINDB\USERS01.DBF*
    *restoring datafile 00005 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\WINDB\PROJECT1.DBF*
    *restoring datafile 00006 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\WINDB\LIMS1.DBF*
    *restoring datafile 00007 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\WINDB\FMADATA01.DBF*
    *channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC*
    *OVERY_AREA\WINDB\BACKUPSET\2009_06_10\O1_MF_NNND1_TAG20090610T130709_52YTFH6T_.B*
    *KP*
    *channel ORA_DISK_1: restored backup piece 1*
    *piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WINDB\BACKUPSET\2009_0*
    *6_10\O1_MF_NNND1_TAG20090610T130709_52YTFH6T_.BKP tag=TAG20090610T130709*
    *channel ORA_DISK_1: restore complete, elapsed time: 00:01:26*
    *Finished restore at 11-JUN-09*
    *RMAN> recover database until time "to_date('06/10/09 13:09:00','MM/DD/YY HH24:MI*
    *:SS')";*
    *Starting recover at 11-JUN-09*
    *using channel ORA_DISK_1*
    *starting media recovery*
    *archive log thread 1 sequence 59 is already on disk as file C:\ORACLE\PRODUCT\10*
    *.2.0\FLASH_RECOVERY_AREA\WINDB\ARCHIVELOG\2009_06_10\O1_MF_1_59_52YVW5X9_.ARC*
    *archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\WINDB\ARCHIVEL*
    *OG\2009_06_10\O1_MF_1_59_52YVW5X9_.ARC thread=1 sequence=59*
    *media recovery complete, elapsed time: 00:00:02*
    *Finished recover at 11-JUN-09*
    *RMAN>*
    then after performing the recovery when i tried to open the database
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    i have also tried to open it with resetlogs
    any suggestion to open it now ?

  • RMAN Restore Error - media recovery requesting unknown log: thread 1 seq 7

    Im using RMAN to copy a database to another server. The new server is IDENTICAL to the old one. By identical I mean it has the same sever name, ip address, operating system, Oracle version and directory structure.
    The new server already has the instance created, (same name as the old server instance, paths etc)
    The backup files have been manually restored to the new server, same locations as they were on the old one. ( RMAN did an automatic controlfile backup and also the archivelogs on the old server ).
    Ive restored the control file on the new server from the RMAN backup pieces.
    Ive catalogued the RMAN backup pieces on the new server.
    I know the last sequence available in the archivelogs backup by running on the new server :
    list backup of archivelog all;
    List of Backup Sets
    ===================
    BS Key Size Device Type Elapsed Time Completion Time
    5 14.43M DISK 00:00:03 11-MAY-11
    BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163502
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
    011_05_11\O1_MF_ANNNN_TAG20110511T163502_6WOC5833_.BKP
    List of Archived Logs in backup set 5
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 2 550217 10-MAY-11 556559 11-MAY-11
    1 3 556559 11-MAY-11 559776 11-MAY-11
    1 4 559776 11-MAY-11 560093 11-MAY-11
    1 5 560093 11-MAY-11 560794 11-MAY-11
    BS Key Size Device Type Elapsed Time Completion Time
    7 15.50K DISK 00:00:01 11-MAY-11
    BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163653
    Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
    011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
    List of Archived Logs in backup set 7
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 6 560794 11-MAY-11 560851 11-MAY-11
    So far its all going swimmingly well.
    Now I want to restore the datafiles and recover. So I ran :
    RMAN run { restore database; recover database; alter database open resetlogs; }
    This gave me the output below which goes great but I get a final error, I think the error is because its looking for an archive log thats not in the backup set, but it should be. However, I think SCN 560851 is for a log that hadnt been created yet on the old server when the backup was ran ?
    How do I address resolving the error ? Its worth pointing out log, "archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
    \2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741" isnt on the old server either which is why its not in the backup set.
    I can do a alter database open reset logs but Id prefer to know why its failing.
    Any help would be much appreciated.
    RMAN> run { restore database; recover database; alter database open resetlogs; }
    Starting restore at 11-MAY-11
    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.2.0\ORADATA\SAT\SYSTEM01.DBF
    restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\UNDOTBS01.DBF
    restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSAUX01.DBF
    restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\USERS01.DBF
    channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
    11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP tag=TAG20110511T163507
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
    Finished restore at 11-MAY-11
    Starting recover at 11-MAY-11
    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=6
    channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
    OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
    channel ORA_DISK_1: restored backup piece 1
    piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
    11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP tag=TAG20110511T163653
    channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
    \2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC thread=1 sequence=6
    channel default: deleting archive log(s)
    archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
    \2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741
    unable to find archive log
    archive log thread=1 sequence=7
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 05/11/2011 18:15:42
    RMAN-06054: media recovery requesting unknown log: thread 1 seq 7 lowscn 560851
    RMAN>
    Edited by: user12173666 on 11-May-2011 10:28

    You need to do incomplete recovery i.e. to ask RMAN to restore/recover to some specific point in time. This is usually done with some UNTIL clause or SET UNTIL statement. Example in your case:
    SET UNTIL SEQUENCE 7;See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta065.htm#RCMRF160.

  • RMAN-06054: media recovery requesting unknown archived log

    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 05/16/2013 09:03:43
    RMAN-05501: aborting duplication of target database
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 34751 and starting SCN of 8923445274I am receiving the error above on performing RMAN Active cloning, please advise how to resolve this

    In addition to what was said, I can think of two other possibilities for RMAN-6054 during duplicate: bugs such as 12625205 (also see 8554110); duplicate was run earlier without removing the old restored files (Note 1549172.1). In the first case, just specify SCN or find the actual log file and speficy log sequence, instead of time. In the latter case, remove the old restored files or speficy noresume.
    Edited by: user11989003 on May 29, 2013 10:17 AM

  • Recovery Issue

    Hello Team,
    I did recovery using recover datbas***** until cancel.
    Mistake:- Gave wrong undo tablespace name,
    Error cam while recover:- disconnected forced, alert log says:- undo tbs not found.
    So, now i did resetlogs also and now when i do recover until cancel, it says seq1#, now
    is there any query to know what redo log is required for recover??

    ====== incase undo_tablespace is having wrong tablespace name ====
    ORA-30012: undo tablespace 'UNDOTBS1' does not exist or of wrong type
    in our case undo_tablespace='UNDOTBS1'
    change it to undo_tablespace='UNDOTBS'
    select * from v$DATABASE_INCARNATION
    INCARNATION# RESETLOGS_CHANGE# RESETLOGS PRIOR_RESETLOGS_CHANGE# PRIOR_RES STATUS RESETLOGS_ID PRIOR_INCARNATION# FLASHBACK_DATABASE_ALLOWED
    1 1 02-AUG-07 0 PARENT 629553575 0 NO
    2 7.6915E+12 21-SEP-11 1 02-AUG-07 CURRENT 762412057 1 NO
    SQL> recover database until time '2011-05-08 22:01:00' using backup controlfile;
    ORA-00283: recovery session canceled due to errors
    ORA-19907: recovery time or SCN does not belong to recovered incarnation
    above failed
    so we bluff oracle to recover from redo logs as all SCN was same
    SQL> select * from v$logfile;
    GROUP# STATUS TYPE MEMBER IS_
    4 ONLINE /restore-11/POS/posebu-db/corppos-data02/oradata/EBUPOSPR/redo4_01.log NO
    4 ONLINE /restore-11/POS/posebu-db/corppos-data01/oradata/EBUPOSPR/redo4_02.log NO
    3 ONLINE /restore-11/POS/posebu-db/corppos-data02/oradata/EBUPOSPR/redo3_01.log NO
    3 ONLINE /restore-11/POS/posebu-db/corppos-data01/oradata/EBUPOSPR/redo3_02.log NO
    NO
    SQL> select * from v$log;
    GROUP# THREAD# SEQUENCE# BYTES MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM
    1 1 0 1073741824 2 YES UNUSED 0
    4 1 1 1073741824 2 NO CURRENT 7.6915E+12 21-SEP-11
    3 1 0 1073741824 2 YES UNUSED 0
    2 1 0 1073741824 2 YES UNUSED 0
    SQL> recover database until cancel using backup controlfile;
    ORA-00279: change 7691479663660 generated at 09/21/2011 05:10:48 needed for thread 1
    ORA-00289: suggestion : /restore-11/POS/posebu-db/corppos-archive01/EBUPOSPR/1_1_762412057.arc
    ORA-00280: change 7691479663660 for thread 1 is in sequence #1
    Specify log: {<RET>=suggested | filename | AUTO | CANCEL}
    /restore-11/POS/posebu-db/corppos-data02/oradata/EBUPOSPR/redo4_01.log
    Log applied.
    Media recovery complete.
    SQL> select hxfil file_id, fhtnm tablespace_name from x$kcvfh;
    FILE_ID TABLESPACE_NAME
    1 SYSTEM
    2 UNDOTBS
    3 SYSAUX
    4 USERS
    5 CORP_POS_TAB_TS
    6 CORP_POS_IDX_TS
    7 CORP_POS_MIG_TS
    8 USERS
    9 CORP_POS_MIG_TS
    SQL> elect file#, checkpoint_change#, checkpoint_time, error from v$datafile_header;
    SP2-0734: unknown command beginning "elect file..." - rest of line ignored.
    SQL> select file#, checkpoint_change#, checkpoint_time, error from v$datafile_header;
    FILE# CHECKPOINT_CHANGE# CHECKPOIN ERROR
    1 7.6915E+12 21-SEP-11
    2 7.6915E+12 21-SEP-11
    3 7.6915E+12 21-SEP-11
    4 7.6915E+12 21-SEP-11
    5 7.6915E+12 21-SEP-11
    6 7.6915E+12 21-SEP-11
    7 7.6915E+12 21-SEP-11
    8 7.6915E+12 21-SEP-11
    SQL> col CHECKPOINT_CHANGE# for 9999999999999
    SQL> l
    1* select file#, checkpoint_change#, checkpoint_time, error from v$datafile_header
    SQL> /
    FILE# CHECKPOINT_CHANGE# CHECKPOIN ERROR
    1 7691479663749 21-SEP-11
    2 7691479663749 21-SEP-11
    3 7691479663749 21-SEP-11
    4 7691479663749 21-SEP-11
    5 7691479663749 21-SEP-11
    6 7691479663749 21-SEP-11
    7 7691479663749 21-SEP-11
    8 7691479663749 21-SEP-11
    SQL> select hxfil file_id, fhscn scn, fhthr thread, fhrba_seq sequence, fhsta status from x$kcvfh;
    FILE_ID SCN THREAD SEQUENCE STATUS
    1 7691479663749 1 1 8192
    2 7691479663749 1 1 0
    3 7691479663749 1 1 0
    4 7691479663749 1 1 0
    5 7691479663749 1 1 0
    6 7691479663749 1 1 0
    7 7691479663749 1 1 0
    8 7691479663749 1 1 0
    SQL> select * from v$recover_file;
    no rows selected
    SQL> alter database open resetlogs;
    Database altered.
    =================================================================
    Best regards
    Shishir Tekade.

Maybe you are looking for

  • Keeping disc image mounted.

    Hi folks, I have a .dmg file that needs to be burned on a dual layer disc, problem is i dont have any of those, i'd like to mount the DMG file and use it as a boot disc but mounted dmg files always dissapear when you restart. Is there a way to use a

  • What drive should, I use to replace my iMac hard drive?

    My mid 2007 24-inch iMac has a 500Gb hard drive that is always running out of disk space, so I want to replace it with a 1TB hard drive. What make/model is recommended?  I do not want somthing that is going to overheat oe fail after a few months.

  • IMovie doesn't starts!!

    I have a big problem.. iMovie '08 doesn't start! 1. First I tried to delete the home/library/preferences/: com.apple.garageband.cs com.apple.garageband.plist com.apple.iApps.plist com.apple.iMovie.plist but nothing ... 2. Second I tried ti delete Mac

  • Waveform chart slow to read samples AIs when sending AOs

    Hi all, I am using labview to sample AI signals and send AO signals sampling at 4k with 400 samples to read... The AOs are triggered using buttons on the frontal (E-stim or M-Stim).. When the E-stim button is pushed it will generate a square-wave sig

  • Creating a simple url link in WebDynpro

    Hello, I would like to create a simple link in web dynpro. meaning that a text i will have will be linked to an address in my computer, for example: "My Documents" will link to c:\douments and settings\my documents\ I tried to use LinkToUrl but it se