Recover datafile without backup

9.2.0.4 archive log mode
I delete the data file for statspack, and I use cp do hot backup every day but I did not do backup for statspack tablespace, now i want restore the datafile,how can i do?(i try use alter database create datafile as, but faild with ora-1516).
thanks.

Well, you can't really have it both ways!
Either the file exists and needs recovery, or it doesn't, in which case referencing it will get you an ORA-01516 error.
You said you deleted the file (from the disk, presumably?). That would not have removed a reference to that file from the control file. Only a 'drop tablespace' command would have done that. Did you "delete the file" by issuing that command?
Because if you did, you can't recover the file, period.
The technique that others have mentioned (of re-creating a 'blank' file and applying all redo to it since the time of its original creation) only works if the control file is already aware of the nature and characteristics of the original file. If you did a 'drop' command to remove the original, you've wiped the control file's awareness of the files attributes and properties and, short of restoring a backup you don't possess, you're stuffed, I'm afraid.

Similar Messages

  • Recover Database without backup

    Hi Joel,
    I have read most of your postings regarding database recovery, but still encounter problems.
    The background is: Our NT server was crashed last weekend, due to harddisk failure. We are able to retrieve back all the datafile, control file, everything in tact. But after recovery, the OS fails to recognize the ORacle and require reinstallation. We don't know how to re-associate this new instance of Oracle with the old databases that we have created.
    I did create a new DB in the new instance, copy back the datafiles, control files to replace it, and run the recreate control file command that you have suggested. At the very final step, when doing recovery, it shows this message:
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: 'D:\ORACLE\ORADATA\ELOS\SYSTEM01.DBF'
    ---tried to do a recovery as suggested:
    SQL> recover automatic database;
    ORA-00279: change 3329263 generated at 04/19/2004 12:00:26 needed for thread 1
    ORA-00289: suggestion : D:\ORACLE\ORA90\RDBMS\ARC00061.001
    ORA-00280: change 3329263 for thread 1 is in sequence #61
    ORA-00278: log file 'D:\ORACLE\ORA90\RDBMS\ARC00061.001' no longer needed for
    this recovery
    ORA-00308: cannot open archived log 'D:\ORACLE\ORA90\RDBMS\ARC00061.001'
    ORA-27041: unable to open file
    OSD-04002: unable to open file
    O/S-Error: (OS 2) The system cannot find the file specified.
    ---Tried a search on the machine, but failed to find such file.
    How can I proceed from here?
    Thanks and regards,
    Suhandy

    if the datafile does not contains tables that are needed for some application , or not belong to system,sysaux tablespace , offline datafile can be some solution.
    To recover a datafile without backup you need alll the archives from the date that the datafile is created.
    Please make a procedure for backup
    A sample backup script can be founded http://mikegeorgiou.blogspot.com/2007/04/user-manage-backup-9i.html

  • Recovery of a lost datafile without backup

    Its the demo for recovery of a lost datafile without backup,but you should have database in archivelog
    in order to make complete recovery,otherwise in noarchivelog mode you may lose some data.Every steps is
    self explainatory so i feel need'nt to add some textual description during demo
    If any findings can be elaborate more please do comments.
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 8 10:35:24 2008
    Copyright (c) 1982, 2004, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    SQL> select name from v$database
      2  /
    NAME
    ORCL
    SQL> create tablespace my_tablespace datafile 'C:\oracle\product\10.1.0\oradata\orcl\my_datafile.dbf' size 500M
      2  /
    Tablespace created.
    SQL> set linesize 1000
    SQL> select * from v$tablespace
      2  /
           TS# NAME                           INC BIG FLA
             0 SYSTEM                         YES NO  YES
             1 UNDOTBS1                       YES NO  YES
             2 SYSAUX                         YES NO  YES
             4 USERS                          YES NO  YES
             3 TEMP                           YES NO  YES
             6 EXAMPLE                        YES NO  YES
             9 MY_TABLESPACE                  YES NO  YES
    7 rows selected.
    SQL> alter user scott default tablespace my_tablespace
      2  /
    User altered.
    SQL> conn scott/tiger@orcl
    Connected.
    SQL> create table my_table as select * from all_objects
      2  /
    Table created.
    SQL> desc my_table
    Name                                                                                                                                                                          
    OWNER                                                                                                                                                                         
    OBJECT_NAME                                                                                                                                                                   
    SUBOBJECT_NAME                                                                                                                                                                
    OBJECT_ID                                                                                                                                                                     
    DATA_OBJECT_ID                                                                                                                                                                
    OBJECT_TYPE                                                                                                                                                                   
    CREATED                                                                                                                                                                       
    LAST_DDL_TIME                                                                                                                                                                 
    TIMESTAMP                                                                                                                                                                     
    STATUS                                                                                                                                                                        
    TEMPORARY                                                                                                                                                                     
    GENERATED                                                                                                                                                                     
    SECONDARY                                                                                                                                                                     
    SQL> conn sys/sys@orcl as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\>cd C:\oracle\product\10.1.0\oradata\orcl
    C:\oracle\product\10.1.0\oradata\orcl>dir *.dbf
    Volume in drive C has no label.
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\oradata\orcl
    02/08/2008  10:41 AM       157,294,592 EXAMPLE01.DBF
    02/08/2008  10:41 AM       524,296,192 MY_DATAFILE.DBF
    02/08/2008  10:41 AM       283,123,712 SYSAUX01.DBF
    02/08/2008  10:41 AM       482,353,152 SYSTEM01.DBF
    02/07/2008  11:43 PM       104,865,792 TEMP01.DBF
    02/08/2008  10:41 AM        31,465,472 UNDOTBS01.DBF
    02/08/2008  10:41 AM        56,369,152 USERS01.DBF
                   7 File(s)  1,639,768,064 bytes
                   0 Dir(s)  63,114,174,464 bytes free
    C:\oracle\product\10.1.0\oradata\orcl>del my_datafile.dbf
    C:\oracle\product\10.1.0\oradata\orcl>dir *.dbf
    Volume in drive C has no label.
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\oradata\orcl
    02/08/2008  10:41 AM       157,294,592 EXAMPLE01.DBF
    02/08/2008  10:41 AM       283,123,712 SYSAUX01.DBF
    02/08/2008  10:41 AM       482,353,152 SYSTEM01.DBF
    02/07/2008  11:43 PM       104,865,792 TEMP01.DBF
    02/08/2008  10:41 AM        31,465,472 UNDOTBS01.DBF
    02/08/2008  10:41 AM        56,369,152 USERS01.DBF
                   6 File(s)  1,115,471,872 bytes
                   0 Dir(s)  63,638,204,416 bytes free
    C:\oracle\product\10.1.0\oradata\orcl>
    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-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\MY_DATAFILE.DBF'
    SQL> select * from v$recover_file
      2  /
         FILE# ONLINE  ONLINE_ ERROR                                                                CHANGE# TIME
             6 ONLINE  ONLINE  FILE NOT FOUND                                                             0
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\MY_DATAFILE.DBF'
      2  as 'C:\ORACLE\PRODUCT\10.1.0\ORADATA\ORCL\MY_DATAFILE01.DBF'
      3  /
    Database altered.
    C:\oracle\product\10.1.0\oradata\orcl>dir my_*.dbf
    Volume in drive C has no label.
    Volume Serial Number is F49D-FF2B
    Directory of C:\oracle\product\10.1.0\oradata\orcl
    02/08/2008  10:53 AM       524,296,192 MY_DATAFILE01.DBF
                   1 File(s)    524,296,192 bytes
                   0 Dir(s)  63,110,365,184 bytes free
    C:\oracle\product\10.1.0\oradata\orcl>
    SQL> recover tablespace my_tablespace
    Media recovery complete.
    SQL> alter database open
      2  /
    Database altered.
    SQL> conn scott/tiger@orcl
    Connected.
    SQL> desc my_table
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    OBJECT_NAME                                        VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                          NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                            DATE
    LAST_DDL_TIME                                      DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> Khurram
    http://oraware.blogspot.com/

    When the create tablespace information is in the current control file and database is in archive log mode,
    SQL>recover datafile 6;
    won't help??

  • Recover db without backup sets rman

    Hi,
    Is there any way to restore the database without backup sets. We have the recent incremental backup, however the backupsets have failed.
    Please advise.

    user12075620 wrote:
    RMAN backupsets are defined to have a retention period and moving the backup from disk to tape and then freeing the space on the disk.
    where did you get this definition?
    RMAN can store backup data in a logical structure called a backup set, which is the smallest unit of an RMAN backup. A backup set contains the data from one or more datafiles, archived redo logs, or control files or server parameter file. Backup sets, which are only created and accessed through RMAN, are the only form in which RMAN can write backups to media managers such as tape drives and tape libraries.
    A backup set contains one or more binary files in an RMAN-specific format. This file is known as a backup piece. A backup set can contain multiple datafiles. For example, you can back up ten datafiles into a single backup set consisting of a single backup piece. In this case, RMAN creates one backup piece as output. The backup set contains only this backup piece.
    http://docs.oracle.com/cd/B28359_01/backup.111/b28270/rcmcncpt.htm#i1008641
    You will need to define your problem in detail if you know what the problem is. what are you trying to achieve?

  • Does anyone know how to recover photos without backup?

    Just want to ask if is it possible to recover photos without icloud or itunes backup?
    Here's the thing... Im gonna sync my ipadmini to my computer then it asks if i want to backup my ipad.... Then i select the name of the ipadmini to backup.. Unfortunately the one i have selected was my other ipad2.. I got confused with the name of my 2 ipads... So my ipad2 setting and photos is now on my ipadmini.. Is it possible to retrieve the photos of ipadmini? But sadly i didnt backed it up before.. Is there a third party app or software to retrieve those? Please help... Thanks

    See:
    RECOVER DELETED MESSAGES FROM IPHONE TEXT CONTACTS PHOTOS SMS VIDEO PICTURES
    You have to sent the iPod to them.

  • Restore datafile without any Backup

    Hi,
    IBM AIX
    Oracle 10.2.0
    We have a problem in our database.
    One of our datafile was missing in the location.
    Database is in open mode. We dont have any backup of that physical file.
    Is there anyway to restore that datafile without backup.
    Plz Advice.....
    TIA,

    what is this file is it datafile or archive log file ..'/oracle/u01/app/oracle/oracle/product/10.2.0/db_1/logarchive/7603_1_594490386.dbf'.
    Can you check if this file is physically present.
    If its archive log file and not present physically do this
    When the recovery process suggests the non-existent archive log,you need to provide the path to the current online redo log. The current
    log can be determined from the following query:
    SELECT MEMBER
    FROM V$LOGFILE F,
    V$LOG L
    WHERE L.STATUS = 'CURRENT'
    AND L.GROUP# = F.GROUP#;
    Once you know the current log, restart the recovery procedure and provide the
    path to the log when prompted:
    yeah juct check the date after Enrique's comment When the recovery process suggests the non-existent archive log,
    you need to provide the path to the current online redo log. The current
    log can be determined from the following query:
    SELECT MEMBER
    FROM V$LOGFILE F,
    V$LOG L
    WHERE L.STATUS = 'CURRENT'
    AND L.GROUP# = F.GROUP#;
    Once you know the current log, restart the recovery procedure and provide the
    path to the log when prompted:
    Just check the date after Enrique;s comments
    Edited by: user445775 on Nov 1, 2008 9:43 AM

  • Urgent help : Need to recover a database without backup and archivelogs

    Hi,
    We are in urgent need to recover a database without backup and archivelogs
    one datafile seems corrupted
    SQL> recover automatic database until cancel using BACKUP CONTROLFILE;
    ORA-00279: change 10527325422479 generated at 07/27/2011 03:13:04 needed for
    thread 1
    ORA-00289: suggestion : /pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc
    ORA-00280: change 10527325422479 for thread 1 is in sequence #181845
    ORA-00278: log file '/pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc' no
    longer needed for this recovery
    ORA-00308: cannot open archived log
    '/pys/u5/oradata/PYS/PYSarch/arch0001.0000181845.arc'
    ORA-27037: unable to obtain file status
    HP-UX Error: 2: No such file or directory
    Additional information: 3
    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: '/pys/u2/oradata/PYS/pay_system_01.dbf'

    N Gasparotto wrote:
    bsac14 wrote:
    my database is in no archive mode
    can you please tell how to restore
    yes it is a datafile corruptionYou did not say how you defined that's a datafile corruption. You provide minimum to zero information.
    I just need to bring the database up,no need any exact data
    I can refresh from prod laterThen drop and recreate database. Basically and since you are not in archive mode, no recover is possible. Period.
    Nicolas.Hi,
    How did you come to the conclusion that your datafile is corrupted? Can you provide and supported logs?
    Regards .....

  • How to recover datafile.when control file auto backup is off

    hi friend
    i took hot backup of my database using following command
    rman>backup database;
    in my case controlfile auto backup is off.
    and i have lost my all controlfiles as well as datafiles except spfile.
    i have recovered control file using dbms_backup_restore package.
    know i am able to mount database using following command
    rman> startup mount;
    when i wrote following command
    rman> restore database;
    i got following error
    RMAN-06023: no backup or copy of datafile name found to restore
    enven i have backup of datbase.
    can anybody tell me how to recover datafiles in this case.
    thanking you
    sohail

    hi,
    I think you might have a problem here as the error from RMAN is described in the following metalink note
    Doc ID: Note:100565.1
    You should change you backup script to be something like
    rman {
    backup database include current controlfile;
    do you have any earlier backups of your database?
    regards
    Alan

  • RMAN-05556: not all datafiles have backups that can be recovered to SCN

    Oracle 11.2.0.2 SE-One
    Oracle Linux 5.6 x86-64
    Weekly refresh of a test db from prod, using rman DUPLICATE DATABASE, failed with “RMAN-05556: not all datafiles have backups that can be recovered to SCN”
    Background Summary:
    Weekly inc 0 backup of production starts on Sunday at 0100, normally completes around 1050.  Includes backups of archivelogs
    Another backup of just archivelogs runs on Sunday at 1200, normally completes NLT 1201.
    On the test server, the refresh job starts on Sunday at 1325.  In the past this script used a set until time \"to_date('`date +%Y-%m-%d` 11:55:00','YYYY-MM-DD hh24:mi:ss')\"; -- hard-coded for ‘today at 11:55’.
    For a variety of reasons I decided to replace this semi-hard coding of the UNTIL with a value determined by querying the rman catalog, getting the completion time of the inc 0 backup.  This tested out just fine in my vbox lab, even when I deliberately drove some updates and log switches during the period the backup was running.  But the first time to go live I got the above reported error.
    Details:
    The key part of the inc 0 backup is this (run from a shell script)
    export BACKUP_LOC=/u01/backup/dbprod
    $ORACLE_HOME/bin/rman target=/ catalog rman/***@rmcat<<EOF
    configure backup optimization on;
    configure default device type to disk;
    configure retention policy to recovery window of 2 days;
    crosscheck backup;
    crosscheck archivelog all;
    delete noprompt force obsolete;
    delete noprompt force expired backup;
    delete noprompt force expired archivelog all;
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '$BACKUP_LOC/%d_%F_ctl.backup';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '$BACKUP_LOC/%U.rman' MAXPIECESIZE 4096 M;
    sql "alter system archive log current";
    show all;
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    backup as compressed backupset incremental level 0 database tag tag_dbprod;
    sql "alter system archive log current";
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    list recoverable backup;
    EOF
    The archivelog-only backup (runs at noon) looks like this:
    export BACKUP_LOC=/u01/backup/dbprod
    $ORACLE_HOME/bin/rman target=/ catalog rman/***@rmcat<<EOF
    configure backup optimization on;
    configure default device type to disk;
    configure retention policy to recovery window of 2 days;
    crosscheck backup;
    crosscheck archivelog all;
    delete noprompt force obsolete;
    delete noprompt force expired backup;
    delete noprompt force expired archivelog all;
    configure controlfile autobackup on;
    configure controlfile autobackup format for device type disk to '$BACKUP_LOC/%d_%F_ctl.backup';
    CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '$BACKUP_LOC/%U.rman' MAXPIECESIZE 4096 M;
    sql "alter system archive log current";
    show all;
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    list recoverable backup;
    EOF
    And the original refresh looked like this:
    >> a step to ftp the backups from the prod server to the test server, and some other housekeeping  <<, then
    cd /backup/dbtest
    echo "connect catalog rman/***@rmcat" >  /backup/dbtest/dbtest_refresh.rman
    echo "connect target sys/*******@dbprod" >> /backup/dbtest/dbtest_refresh.rman
    echo "connect auxiliary /"             >> /backup/dbtest/dbtest_refresh.rman
    echo "run {"                           >> /backup/dbtest/dbtest_refresh.rman
    echo "set until time \"to_date('`date +%Y-%m-%d` 11:55:00','YYYY-MM-DD hh24:mi:ss')\";"  >> /backup/dbtest/dbtest_refresh.rman
    echo "duplicate target database to DBTEST;"  >> /backup/dbtest/dbtest_refresh.rman
    echo "}" >> /backup/dbtest/dbtest_refresh.rman
    So, my mod to the refresh was
    bkup_point=`sqlplus -s rman/***@rmcat <<EOF1
    set echo off verify off feedback off head off pages 0 trimsp on
    select to_char(max(completion_time),'yyyy-mm-dd hh24:mi:ss')
    from rc_backup_set_details
    where db_name='DBPROD'
    and backup_type='D'
    and incremental_level=0
    exit
    EOF1`
    cd /backup/dbtest
    echo "connect catalog rman/***@rmcat"     > /backup/dbtest/dbtest_refresh.rman
    echo "connect target sys/*******@dbprod"    >> /backup/dbtest/dbtest_refresh.rman
    echo "connect auxiliary /"                >> /backup/dbtest/dbtest_refresh.rman
    echo "run {"                              >> /backup/dbtest/dbtest_refresh.rman
    echo "set until time \"to_date('${bkup_point}','YYYY-MM-DD hh24:mi:ss')\";"  >> /backup/dbtest/dbtest_refresh.rman
    echo "duplicate target database to DBTEST;" >> /backup/dbtest/dbtest_refresh.rman
    echo "}"                                  >> /backup/dbtest/dbtest_refresh.rman
    Now the fun begins.
    First, an echo in the refresh script confirmed the ‘bkup_point’:
    =======================================================
    We will restore to 2013-08-25 10:41:38
    =======================================================
    Internally, rman reset the ‘until’ as follows:
    executing command: SET until clause
    Starting Duplicate Db at 25-Aug-2013 15:35:44
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: SID=162 device type=DISK
    contents of Memory Script:
       set until scn  45633141350;
    Examining the result of LIST BACKUP (the last step of all of my rman scripts) the full backup shows this:
    BS Key  Type LV Size       Device Type Elapsed Time Completion Time    
    5506664 Full 61.89M     DISK        00:00:03     25-Aug-2013 02:11:32
            BP Key: 5506678   Status: AVAILABLE  Compressed: NO  Tag: TAG20130825T021129
    Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-00_ctl.backup
      SPFILE Included: Modification time: 24-Aug-2013 22:33:08
      SPFILE db_unique_name: DBPROD
      Control File Included: Ckp SCN: 45628880455   Ckp time: 25-Aug-2013 02:11:29
    BS Key Type LV Size       Device Type Elapsed Time Completion Time    
    5507388 Incr 0 206.03G    DISK        08:30:00     25-Aug-2013 10:41:30
      List of Datafiles in backup set 5507388
      File LV Type Ckp SCN    Ckp Time             Name
      1    0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/datafile/system.258.713574775
      >>>>>>>>> snip lengthy list <<<<<<<<<
      74   0 Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/event_i2.dbf
      Backup Set Copy #1 of backup set 5507388
      Device Type Elapsed Time Completion Time      Compressed Tag
      DISK        08:30:00     25-Aug-2013 10:41:36 YES        TAG_DBPROD
        List of Backup Pieces for backup set 5507388 Copy #1
        BP Key  Pc# Status      Piece Name
        5507391 1   AVAILABLE   /u01/backup/dbprod/eeoi55iq_1_1.rman
        >>>>>>>>>>>>> snip lengthy list <<<<<<<<<<<
        5507442 52  AVAILABLE   /u01/backup/dbprod/eeoi55iq_52_1.rman
    Notice the slight difference in time between what is reported in the LIST BACKUP and what was reported by my query to the catalog.
    Continuing with the backup list, the second archivelog  backup in the script generated six backupsets.  The fifth set  showed:
    BS Key Size       Device Type Elapsed Time Completion Time    
    5507687 650.19M DISK        00:02:18     25-Aug-2013 10:54:53
            BP Key: 5507694   Status: AVAILABLE  Compressed: YES  Tag: TAG20130825T104156
    Piece Name: /u01/backup/dbprod/ekoi643j_1_1.alog
      List of Archived Logs in backup set 5507687
      Thrd Seq     Low SCN    Low Time             Next SCN   Next Time
      1    1338518 45632944587 25-Aug-2013 05:58:18 45632947563 25-Aug-2013 05:58:20
        >>>>>>>>>>>>> snip lengthy list <<<<<<<<<<<
      1    1338572 45633135750 25-Aug-2013 10:08:21 45633140240 25-Aug-2013 10:08:24
      1    1338573 45633140240 25-Aug-2013 10:08:24 45633141350 25-Aug-2013 10:30:06
      1    1338574 45633141350 25-Aug-2013 10:30:06 45633141705 25-Aug-2013 10:41:51
      1    1338575 45633141705 25-Aug-2013 10:41:51 45633141725 25-Aug-2013 10:41:55
    Notice the availability of the archivelogs including the referenced scn.
    Investigation of the ftp portion of the refresh script confirmed that all backup pieces were copied from the prod server.
    So what am I overlooking?  Having reverted back to the original script to get the refresh completed,

    HemantKChitale wrote:
    So, technically, you only need the database and archivelogs backed up by the database script and not the noon run of the archivelog backup.
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    backup as compressed backupset incremental level 0 database tag tag_dbprod;
    sql "alter system archive log current";
    backup as compressed backupset archivelog all delete all input format "$BACKUP_LOC/%U.alog";
    Yet, why does backupset 5 of the noon archivelog backup show archivelogs from 10:30 to 10:40  if they had been deleted by the database backup script which has a delete input ?  It is as if the database backup script did NOT delete the archivelogs and the noon run was the one to backup the archivelogs (again ?)
    No, that is from the morning full backup.  Note the 'Completion Time" of 25-Aug-2013 10:54:53
    However, the error message seems to point to a datafile.  Why would reverting the recovery point to 11:55 make a difference, I wonder.
    As do I.
    Also puzzling to me are the times associated with the completion of the backups.  I don't recall ever having to scrutinize a backup listing this closely so I'm sure it's just a matter of filling in some gaps in my understanding, but I noticed this.  The backup report (list backup;) shows this for the inc 0 backup:
    BS Key  Type LV Size  
    Device Type Elapsed Time Completion Time
    5507388 Incr 0  206.03G
    DISK   
    08:30:00
    25-Aug-2013 10:41:30   ------- NOTE THE COMPLETION TIME ----
      List of Datafiles in backup set 5507388
      File LV Type Ckp SCN
    Ckp Time        
    Name
      1
    0  Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/datafile/system.258.713574775
    ------ SNIP ------
      74   0  Incr 45628880495 25-Aug-2013 02:11:38 +SMALL/dbprod/event_i2.dbf
      Backup Set Copy #1 of backup set 5507388
      Device Type Elapsed Time Completion Time 
    Compressed Tag
      DISK   
    08:30:00
    25-Aug-2013 10:41:36 YES   
    TAG_DBPROD   ------- NOTE THE COMPLETION TIME ----
    List of Backup Pieces for backup set 5507388 Copy #1
    BP Key  Pc# Status 
    Piece Name
    5507391 1   AVAILABLE   /u01/backup/dbprod/eeoi55iq_1_1.rman
    ------ SNIP ------
    5507442 52  AVAILABLE   /u01/backup/dbprod/eeoi55iq_52_1.rman
    Then the autobackup of the control file immediatly following:
    BS Key  Type LV Size  
    Device Type Elapsed Time Completion Time
    5507523 Full
    61.89M
    DISK   
    00:00:03
    25-Aug-2013 10:41:47   ------- NOTE THE COMPLETION TIME ----
    BP Key: 5507587   Status: AVAILABLE  Compressed: NO  Tag: TAG20130825T104144
    Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-01_ctl.backup
      SPFILE Included: Modification time: 25-Aug-2013 05:57:15
      SPFILE db_unique_name: DBPROD   
      Control File Included: Ckp SCN: 45633141671   Ckp time: 25-Aug-2013 10:41:44
    Then the archivelog backup immediately following (remember, this created a total of 5 backupset, I'm showing number 4)
    BS Key  Size  
    Device Type Elapsed Time Completion Time
    5507687 650.19M
    DISK   
    00:02:18
    25-Aug-2013 10:54:53   ------- NOTE THE COMPLETION TIME ----
    BP Key: 5507694   Status: AVAILABLE  Compressed: YES  Tag: TAG20130825T104156
    Piece Name: /u01/backup/dbprod/ekoi643j_1_1.alog
      List of Archived Logs in backup set 5507687
      Thrd Seq
    Low SCN
    Low Time        
    Next SCN   Next Time
      1
    1338518 45632944587 25-Aug-2013 05:58:18 45632947563 25-Aug-2013 05:58:20
    ------ SNIP ------
      1
    1338572 45633135750 25-Aug-2013 10:08:21 45633140240 25-Aug-2013 10:08:24
      1
    1338573 45633140240 25-Aug-2013 10:08:24 45633141350 25-Aug-2013 10:30:06
      1
    1338574 45633141350 25-Aug-2013 10:30:06 45633141705 25-Aug-2013 10:41:51
      1
    1338575 45633141705 25-Aug-2013 10:41:51 45633141725 25-Aug-2013 10:41:55
    and the controlfile autobackup immediately following:
    BS Key  Type LV Size  
    Device Type Elapsed Time Completion Time
    5507984 Full
    61.89M
    DISK   
    00:00:03
    25-Aug-2013 10:55:07   ------- NOTE THE COMPLETION TIME ----
    BP Key: 5508043   Status: AVAILABLE  Compressed: NO  Tag: TAG20130825T105504
    Piece Name: /u01/backup/dbprod/DBPROD_c-3960114099-20130825-02_ctl.backup
      SPFILE Included: Modification time: 25-Aug-2013 05:57:15
      SPFILE db_unique_name: DBPROD
      Control File Included: Ckp SCN: 45633142131   Ckp time: 25-Aug-2013 10:55:04
    and yet, querying the rman catalog
    SQL> select to_char(max(completion_time),'yyyy-mm-dd hh24:mi:ss')
      2  from rc_backup_set_details
      3  where db_name='DBPROD'
      4  and backup_type='D'
      5  and incremental_level=0
      6  ;
    TO_CHAR(MAX(COMPLET
    2013-08-25 10:41:38
    SQL>
    which doesn't match (to the second) the completion time of either the full backup or the associated controlfile autobackp.
    Hemant K Chitale
    I hope this posts in a readable, understandable manner.  I really struggeled with the 'enhanced editor', which I normally use.  When I pasted in blocks from the rman report, it kept trying to make some sort of table structure out of it .... guess I'll have to follow that up with a question in the Community forum ....

  • Recovering a datafile from backup in different server

    Hi All,
    I usually take hot backup of datafiles to different server like this because i dont have enough space in same server. I
    SQL> alter tablespace XXXX begin backup;
    host scp /bu1/oradaTA/XXXXX/XXXXX [email protected]:/db1dw/oradata/backup/dec2010/XXXX
    alter tablespace OPS end backup;
    If i want to recover the datafile can i normally do the offline drop of that datafile and copy the datafile from backup which is in differnet server thorugh scp and make the datafile online??? and the database is in archivelog mode but i dont care abt the log files. i just need to recover the datafile as it was from last backup.
    or do we need to use any recover datafile commands?? if need to use any recover datafile command from where it will recover the datafile??
    i dont have any scripts for backup or recovery , i just take manual scp of the datafiles.
    Help plzz, thanks in advance.....

    SQL> alter tablespace XXXX begin backup;
    host scp /bu1/oradaTA/XXXXX/XXXXX [email protected]:/db1dw/oradata/backup/dec2010/XXXX
    alter tablespace OPS end backup;What is the version you are using? is it 9i if not you can peform backup at database level instead of tablespace level.
    If i want to recover the datafile can i normally do the offline drop of that datafile and copy the datafile from backup which is in differnet server thorugh scp and make the datafile online??? and the database is in archivelog mode but i dont care abt the log files. i just need to recover the datafile as it was from last backup.Why offline drop to recover? Are you sure what are you doing?
    or do we need to use any recover datafile commands?? if need to use any recover datafile command from where it will recover the datafile??1) alter system switch logfile;
    2) select max(sequence#) from v$archived_log;
    For Ex:
    Sequence -- 100
    3) alter database begin backup;
    4) copy all the datafiles to another server(bcoz you not have space in same server)
    5) alter database end backup;
    6) select max(sequence#) from v$archived_log;
    For Ex:
    Sequence -- 110
    Then copy these generated 10 archives to new server also.

  • Recover datafile using cold backup in archivelog mode

    Hi,
    I have lost one of my datafiles i.e New.dbf from the disk. I have full database cold backup of last sunday. Also I have the archives. Is it possible to restore and recover only the lost datafile? Please help.

    If you used RMAN to create the backup, then use RMAN again to restore that one datafile alone (RESTORE DATAFILE n) and then recover it (RECOVER DATAFILE n).
    If you didn't use RMAN but you are sure that the backup was a COLD Backup, manually restore the datafile and then issue a RECOVER DATAFILE n from the SQLPlus command.
    In either case you must ensure that the datafile is OFFLINE before you restore the file -- or take it OFFLINE with ALTER DATABASE DATAFILE n OFFLINE IMMEDIATE before doing the restore.
    After the RECOVER is completed, you must bring it ONLINE with an ALTER DATABASE DATAFILE n ONLINE
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Recover database after lossing system tablespace without backup

    Hi
    My database fail because of hardware failure and then system tablespace corrupted. other tablespaces and control files are OK. Can I recover my database without backup of system tablespace?

    hi,
    if you have not taken the physical backup (inconsistent or consistent) then you can not recocver it. you need to have some backup up strategy with RMAN or Manual. Do you have hardware (Disk) Mirroring to cover the media failure??
    Atleast if you have the logical backups?? then create the database and import it..
    Thanks
    --Raman.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HT4972 how to recover lost data in i  phone 4 without backup and how to activate i phone 4 without sim after update to ios 5.1.1

    how to recover lost data in i  phone 4 without backup and how to activate i phone 4 without sim after update to ios 5.1.1

    Not possible in both cases.

  • Update from 3.1.3 to 4.x CORRUPTED WITHOUT BACKUP! How to recover data

    My screen stays in recovery mode. Cannot switch to normal boot mode.
    I cannot restore from iTune, since I need the photo data in my phone.
    Anybody know how do I recover the data?
    Thanks!

    vycon wrote:
    ...I did use iTune to update. But I chose upgrade without backup.
    I am not sure what will happen if I click restore now.
    Most likely, you will lose everything. Data, photos, installed apps (they still are in iTunes, btw), etc.
    Unless you had flagged to sync your photos on iTunes: you can found them (at least, the last synced ones) in the folder you told to store photo data.
    If you using a Mac, check your iPhoto app, or Pictures folder. If windows, check your Images folder, to see if they were in. Good luck!

  • How to recover Notes without a backup?

    My husband wrote his vows on the iPhone 3. He synced his phone to iTunes, but didn't check the box to backup Notes. The vows are no longer on his phone. Is there anyway recover the vows?

    Use iPhone Data Recovery.
    Choose the recovery mode of to recover from iTunes backup file.
    Then, all your iPhone data will be scanned out and you can choose those you want and recover them and save them on your computer.
    <Link Edited By Host>

Maybe you are looking for