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??

Similar Messages

  • 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.

  • How can I retrieve texts and photos from a lost iPhone without backup?

    I recently lost my iPhone at a concert and unfortunately, it was never connected with iCloud, nor was it backed up to iTunes. I got a new iPhone and connected it to iTunes. I have my contacts (taken from my sister's iPhone) and voicemails, but nothing else. I would really like my old text messages and photos, but have no idea what to do in order to get them. Please help! And like I said, backing up will not work, and I tried to use iphonebackupextractor.com also.

    Let me get this straight.....You lost your phone.  You never backed it up, either to your computer or to a cloud service.
    How in the world would you expect to get data back?

  • 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

  • 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

  • Datafile Lost but no backup available

    Version:11g
    We are archivelog mode.
    We inadvertantly lost a datafile and due to some reasons the RMAN backup is not accesible. But all archived logs are available. Is it possible for me to recover the datafile?

    Hi friend,
    We can perform complete recovery in four situations.
    1. System datafile corrupted with recent backup.
    2. non-system datafile corrupted with backup.
    3. non-system datafile corrupted without backup.
    4. Disk corrupted and recreating non system datafile.
    steps
    Recovery of a Missing Datafile that has no backups (database is open).
    If a non system datafile that was not backed up since the last backup is missing,
    recovery can be performed if all archived logs since the creation
    of the missing datafile exist.
    Pre requisites: All relevant archived logs.
    1. alter tablespace <tablespace_name> offline immediate;
    2. alter database create datafile '/user/oradata/u01/dbtst/newdata01.dbf';
    3. recover tablespace <tablespace_name>;
    4. alter tablespace <tablespace_name> online;
    If the create datafile command needs to be executed to place the datafile on a
    location different than the original use:
    alter database create datafile '/user/oradata/u01/dbtst/newdata01.dbf' as
    '/user/oradata/u02/dbtst/newdata01.dbf'
    for more information about complete recovery scenarios
    download the below document
    blogs.oracle.com/.../gems/BackupAndRecoveryChecklist.pdf

  • Can anyone help me in iphone mobile, i had lost my data in phone, because i restore my phone without backup, how can i get my old data, i lost my photos and videos... help me

    can anyone help me in iphone mobile, i had lost my data in phone, because i restore my phone without backup, how can i get my old data, i lost my photos and videos... help me

    Sorry Raj,
    If you did not back up your information, and you have now restored your phone, then your information is not recoverable.
    Sorry,
    GB

  • Datafile lost. No backups or archivelogs

    DB version: 11.2.0.2
    In our newly created DB which is in NOARCHIVELOG mode, we lost a datafile in one of our tablespaces (accidently removed).
    We don't have RMAN backups or archivelogs since the DB creation.
    What is the most we could do ?

    Thank you Hemant, Najat
    Yes. After mentioning that the DB is in NOARCHIVELOG mode, I didn't have to mention "We don't have RMAN backups or archivelogs since the DB creation" .Sorry to confuse you.
    This was the only datafile in that tablespace. So, i guess I have to add another one before dropping the lost datafile (from control file)
    This is what I am going to do
    alter tablespace mytbs add datafile '/u04/oradata/orcl_mytbs01_a.dbf' size 1g;
    alter tablespace mytbs drop datafile '/u04/oradata/orcl_mytbs01.dbf';  --- The lost datafile

  • I have a feeling this has been up here a lot.  I updated ios 6 to my phone with no problems but I also back my phone up.  I decided to help the wife out and update hers and something went wrong data lost.  All contacts, photos, etc without backup, help.

    I have a feeling this has been up here a lot.  I updated ios 6 to my phone (4S) with no problems but I also back my phone up.  I decided to help the wife out and update hers and something went wrong data lost.  All contacts, photos, etc without backup, help.

    if you have no back up in icloud or itunes the best you can do is sync with your computer and get back  what you can from there

  • 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.

  • I restored my iPhone 3GS without backup I lost everything that I had on iOS photos, contacts and messages. All I have are the apps and files I had before I upgraded to iOS. Is it possible to get back all that I have lost?

    Hi all, I restored my iPhone 3GS without backup and it took all recent messages, contacts, photos and videos. All I am left with is the content I had before I upgraded to iOS. Can these lost files be retrieved? Please help.

    Look... I don't have my crystal ball handy. I don't know how or if you had your backup set up. You don't adequately describe what you're missing. Stating that "All I am left with is the content I had before I upgraded to iOS" doesn't tell me anything at all... When did you upgrade? Apparently, you had a backup from that time, and when you restored, you restored from that backup. If you had no other backups in between then and now, then anything since that time is gone. Permanently.

  • Can I Select from table skipping extents linked with lost datafiles?

    Hi~,
    I need your help to recover my database.
    I'm using oracle 9.2.0.8 at Fedora 3 with no-archive mode.
    and I don't have any backup.
    Last night, I experenced hard disk failure.
    I tried OS-level recovery, but I lost some datafiles of tablespace.
    anyway, I wanted to recover my database without data of lost datafiles.
    so, I issued "alter database datafile offline drop" and
    start oracle instance.
    But, datafiles were not removed from dba_data_files view and
    extents linked with lost datafiles were not removed from dba_extents view!
    Selecting query of some table containing extents linked with lost data files,
    I got "ORA-00376: file xxx cannot be read at this time" message.
    So, my question is that..
    HOW CAN I SELECT FROM THAT TABLE WITHOUT SCANNING EXTENTS LINKED WITH LOST DATA FILES?
    Thanks.

    Hi,
    Without being in archivelog and without backup, one can't do any sort of recovery. That's why backups and archivelog are so so important.
    The offline data file command never does actually drop the datafile. It merely indicates to the control file that now the said tablespace will also be dropped. This won't update any view that the files are not supposed to be used or shown to you anymore.
    This is what documentation says about the recovery of the database in the NoARch mode,
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007937
    You do need a backup in order to get those tables being read. Oracle doesn't have any feature which can offline/skip the missing extents for you and let you read the data without them.
    HTH
    Aman....

  • 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 .....

  • 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 ....

  • Is it possible to decrypt EFS files without backup certificate- windows xp,vista,win-7,win8

    hi,
    i have windows xp and and i did the  format c:\  without take any EFS certificate backup ,is it possible to decrypt efs files without backup certificate , i have lot off files like Microsoft office and pdf , how can i recover the file and decrypt
    Any software to decrypt the files , mostly word and excel files , any solution please let me know as soon ad possible.
    Thx
    PV

    PV
    If you formatted the entire "C" drive (Format C:\) then you don't need to decrypt them but rather recover them.  Recovery is somewhat doubtful but one application you can try is called recuva. 
    You will not recover 100% of the files and may not recover any
    http://www.piriform.com/recuva
    Wanikiya and Dyami--Team Zigzag

Maybe you are looking for

  • How to install a gtx285 in windows xp with Bootcamp on a Mac

    I have installed a gtx285 video card on my Mac Pro and all is fine, but I want to also run my windows xp installation on my Mac Pro (used Bootcamp) and I am not sure how to go about it. The card is already in the machine but if I boot up in windows i

  • SQL Developer does not attach the selected glossary

    I am trying to use a glossary to control abbreviations when generating the Relational Model from the LDM. I go to Tools > Preferences, then select Naming Standards, click on the + to add the glossary, select my glossary, then OK. When I follow that s

  • Question about battery maintenance and longevity

    I have a question about the efficacy of the built-in battery maintenance of the Lenovo Power Manager utility; specifically how it pertains to my W520, if that makes any difference. With my previous laptop (an HP), any time I knew it would be parked o

  • 2GB only with linux

    hello! is there a solution for oracle 8i (or 9i) on linux to use more than 2GB for a sigle user. i cant create larger tablesspaces. can i combine tablespaces or say "this user can use tbspace1 and tbspace2"?? thanks in advance thomas otto

  • 4620 printer proxy server

    I have an HP 4620 officejet printer that is hooked up wirelessly but says I need a proxy server address to connect which I don't have. A little help?