Backup set /piece info

Hi,
Application guy deleted few rows.
So I am asked to do tablespace point time recovery in 11.2.0.3 on aix using old backup(two week before taken).
I would like to check how many backup set and piece name in a L0 backup.Is there any query?
Most of the V$backup_* views contains the following columns
RECID
STAMP
SET_STAMP
SET_COUNT
what is the use of it?
We taking backup in disk on production machine.We going to do TPIR on test machine.So that we moved particular backup set to tape.Os team changed TPO file settings.
While restoring control file,we got the following info.
channel t1: no autobackup in
Even we specified until time clause.
How to check what are the control file's and backup piece aviable in a tape?
Thanks.

Try:
SPOOL LOG TO rman_bkp_ts.log
RUN {
  SET UNTIL TIME 'trunc(sysdate)-14';
  RESTORE TABLESPACE
    ORCL_DATA, ORCL_INDEX, SYSAUX, SYSTEM, UNDOTBS1, USERS
    PREVIEW;
}:p

Similar Messages

  • Can not restore data files from backup set

    I am trying to restore Server A's backup data to Server B (they are all oracle11g) using rman. The restore commands is below:
    rman target /;
    shutdown immediate;
    startup nomount;
    restore controlfile from '/usr/local/oracle/backup/20100418/ctl_xxx'
    alter database mount;
    catalog start with '/usr/local/oracle/backup/20100418/';
    restore database;
    recover database;
    alter database open resetlogs;
    For the first time, it works. But when i tried to restore another backup data by the same way:
    rman target /;
    shutdown immediate;
    startup nomount;
    restore controlfile from '/usr/local/oracle/backup/20100425/ctl_xxx'
    alter database mount;
    catalog start with '/usr/local/oracle/backup/20100425/';
    restore database;
    recover database;
    alter database open resetlogs;
    The second time, i found that rman restore the old backup data, which means that it restore the data file under '/usr/local/oracle/backup/20100418/' instead of '/usr/local/oracle/backup/20100425/'.
    So I run 'list backup of database summary' to see the backup set lists in control file.
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    910 B 0 A DISK 18-APR-10 1 1 NO TAG20100418T020007
    945 B 0 A DISK 25-APR-10 1 1 NO TAG20100425T020007
    But when i run ‘restore database preview summary’ to see the backup set list to restore
    List of Backups
    ===============
    Key TY LV S Device Type Completion Time #Pieces #Copies Compressed Tag
    910 B 0 A DISK 18-APR-10 1 1 NO TAG20100418T020007
    there's no backup set 945 at all. that's why i could not restore data file under '/usr/local/oracle/backup/20100425/' at the second time.
    So, why two backup list is different ? how can i restore datafile under '/usr/local/oracle/backup/20100425/' ?
    My backup script is below:
    run{
    allocate channel c1 type disk;
    backup incremental level 0 as backupset format '$DIR/`date +%Y%m%d`/data_%d_c0_%T_%u' database;
    sql 'alter system archive log current';
    backup archivelog from time 'sysdate-14' format '$DIR/`date +%Y%m%d`/log_%d_%T_%u';
    backup current controlfile format '$DIR/`date +%Y%m%d`/ctl_%d_%T_%I_%u';
    release channel c1;
    Thanks
    Edited by: user13055376 on 2010-4-29 上午1:20

    yeah, I am sure Tag: TAG20100425T020007 exists
    RMAN> list backupset 945;
    List of Backup Sets
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    945 Incr 0 6.40G DISK 00:05:46 25-APR-10
    BP Key: 945 Status: AVAILABLE Compressed: NO Tag: TAG20100425T020007
    Piece Name: /usr/local/oracle/backup/20100425/data_QIANGL_c0_20100425_thlbvjt7
    List of Datafiles in backup set 945
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/system01.dbf
    2 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/sysaux01.dbf
    3 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/undotbs01.dbf
    4 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/users01.dbf
    5 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/dict01.dbf
    6 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/support01.dbf
    7 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/supportindex01.dbf
    8 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/log01.dbf
    9 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/logindex01.dbf
    10 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/lobindex01.dbf
    11 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/data01.dbf
    12 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/indexes01.dbf
    13 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/image001.dbf
    14 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/tongbuimage001.dbf
    15 0 Incr 2498880165194 25-APR-10 /usr/local/oracle/oradata/qiangl/imagebackup001.dbf
    My purpose is to use the newest backupset of Server A to update Server B. So if Server A crush, Server B will be useful. Is there any other way to do that ?
    retention policy :'configure retention policy to redundancy 4'
    And Server A do LV0 backup every 7 day, and do LV1 backup ervery other day.
    Edited by: user13055376 on 2010-4-29 上午3:45

  • Is there a way to only catalog backup set not in the catalog? "CATALOG START WITH" generates double entry.

    The DB version is 11.1.0.7.
    The "CATALOG START WITH" not only catalog backup set that are not in the RMAN catalog, but also catalog a second copy for files that are already in the catalog.
    Files are not a second copy; they are the same file in the same directory.
    Having two copies in the catalog, through an error when deleting explicitly the backups.
    We have to add the force clause to avoid the error.
    RMAN> delete FORCE backup tag 'offsite-1';
    The force clause ignores any I/O error.
    The delete is part of our scheduled offsite backup script, which returns a false positive error when the force clause is ommited.
    I don't want the force clause, in order to be notify if the backup set that are expected to be on disk are no more there, e.g., if someone had deleted files manually at the OS level bypassing rman.
    Is there a way to only catalog backup set not in the catalog?
    or May be remove the copy #2 entry from the catalog?
    Find bellow a test case example:
    RMAN> list backup summary TAG 'OFFSITE-1';
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time    #Pieces #Copies Compressed Tag
    12      B  F  A DISK        11-JUN-13 09:41:45 1       1       NO         OFFSITE-1
    13      B  F  A DISK        11-JUN-13 09:43:31 1       1       NO         OFFSITE-1
    14      B  A  A DISK        11-JUN-13 09:43:33 1       1       NO         OFFSITE-1
    15      B  F  A DISK        11-JUN-13 09:43:34 1       1       NO         OFFSITE-1
    RMAN> CATALOG START WITH 'C:\backups\offsite_disk\IBISdatabase\scheduled_offsite';
    searching for all files that match the pattern C:\backups\offsite_disk\IBISdatabase\scheduled_offsite
    cataloging done
    List of Cataloged Files
    =======================
    File Name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\06OBTJEP_1_1
    File Name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\07OBTJI3_1_1
    File Name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\08OBTJI5_1_1
    File Name: C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\scheduled_offsite\09OBTJI6_1_1
    RMAN> list backup summary TAG 'OFFSITE-1';
    List of Backups
    ===============
    Key     TY LV S Device Type Completion Time    #Pieces #Copies Compressed Tag
    12      B  F  A DISK        11-JUN-13 09:41:45 1       2       NO         OFFSITE-1
    13      B  F  A DISK        11-JUN-13 09:43:31 1       2       NO         OFFSITE-1
    14      B  A  A DISK        11-JUN-13 09:43:33 1       2       NO         OFFSITE-1
    15      B  F  A DISK        11-JUN-13 09:43:34 1       2       NO         OFFSITE-1
    RMAN> DELETE BACKUP TAG 'OFFSITE-1';
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    24      18      1   1   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1   <<--- same file
    30      18      1   2   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1   <<--- same file
    25      19      1   1   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
    31      19      1   2   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
    26      20      1   1   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
    32      20      1   2   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
    27      21      1   1   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1
    33      21      1   2   AVAILABLE   DISK        C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1
    deleted backup piece
    backup piece handle=C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1 RECID=24 STAMP=821470356
    deleted backup piece
    backup piece handle=C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1 RECID=25 STAMP=821470356
    deleted backup piece
    backup piece handle=C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1 RECID=26 STAMP=821470356
    deleted backup piece
    backup piece handle=C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1 RECID=27 STAMP=821470357
    Deleted 6 objects
    RMAN-06207: WARNING: 4 objects could not be deleted for DISK channel(s) due
    RMAN-06208:          to mismatched status.  Use CROSSCHECK command to fix status
    RMAN-06210: List of Mismatched objects
    RMAN-06211: ==========================
    RMAN-06212:   Object Type   Filename/Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: Backup Piece    C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\06OBTJEP_1_1
    RMAN-06214: Backup Piece    C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\07OBTJI3_1_1
    RMAN-06214: Backup Piece    C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\08OBTJI5_1_1
    RMAN-06214: Backup Piece    C:\BACKUPS\OFFSITE_DISK\IBISDATABASE\SCHEDULED_OFFSITE\09OBTJI6_1_1

    Hi JM,
    Your demo with Oracle 10.2.0.5
    At line 36 you answered "No" to "Do you really want to catalog the above files (enter YES or NO)?".
    Just repeate your demo and answer Yes.
    Even if he might have replied with "YES" then also, the RMAN search for the files which it can recognize as a valid rman backup file. Else it would show the list of files which are not recognized by RMAN as a valid file.
    RMAN> catalog start with '/home/oracle/scripts';
    using target database control file instead of recovery catalog
    searching for all files that match the pattern /home/oracle/scripts
    List of Files Unknown to the Database
    =====================================
    File Name: /home/oracle/scripts/RMAN_BACKUP.sh
    File Name: /home/oracle/scripts/rman_clone.log
    File Name: /home/oracle/scripts/Db_Refresh.sh
    File Name: /home/oracle/scripts/rman_erp.scr
    File Name: /home/oracle/scripts/RMAN_14FEB.log
    File Name: /home/oracle/scripts/nid.sh
    File Name: /home/oracle/scripts/Full_Clone.sh
    File Name: /home/oracle/scripts/rman_staging.scr
    Do you really want to catalog the above files (enter YES or NO)? yes
    cataloging files...
    no files cataloged
    List of Files Which Where Not Cataloged
    =======================================
    File Name: /home/oracle/scripts/RMAN_BACKUP.sh
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/rman_clone.log
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/Db_Refresh.sh
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/rman_erp.scr
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/RMAN_14FEB.log
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/nid.sh
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/Full_Clone.sh
      RMAN-07517: Reason: The file header is corrupted
    File Name: /home/oracle/scripts/rman_staging.scr
      RMAN-07517: Reason: The file header is corrupted
    About the RMAN catalog, it will not catalog the same file twice. It will only catalog the files which are not known to the database.
    See this demo. (/backup/RMAN/STAGING/ is the location where all the backup pieces are.)
    RMAN> catalog start with '/backup/RMAN/STAGING/';
    searching for all files that match the pattern /backup/RMAN/STAGING/
    no files found to be unknown to the database
    This was the location based test, Another demo showing piece by piece catalogging .
    RMAN> list backuppiece '/backup/RMAN/STAGING/ERP_CNTRL_c-13949842-20130724-00';
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    1323    1321    1   1   AVAILABLE   DISK        /backup/RMAN/STAGING/ERP_CNTRL_c-13949842-20130724-00
    RMAN> catalog backuppiece '/backup/RMAN/STAGING/ERP_CNTRL_c-13949842-20130724-00';
    cataloged backup piece
    backup piece handle=/backup/RMAN/STAGING/ERP_CNTRL_c-13949842-20130724-00 RECID=1324 STAMP=821717283
    RMAN> list backuppiece '/backup/RMAN/STAGING/ERP_CNTRL_c-13949842-20130724-00';
    List of Backup Pieces
    BP Key  BS Key  Pc# Cp# Status      Device Type Piece Name
    1324    1321    1   1   AVAILABLE   DISK        /backup/RMAN/STAGING/ERP_CNTRL_c-13949842-20130724-00
    Hope its understandable, if any query please revert.
    Happy to Help.
    Thanks and Regards,
    Prashant

  • HT201250 How do you let time machine know that a restored drive does not need a brand new backup set and just append to the old one?

    I had an external drive failure and had to buy a brand new drive.  I was able to restore my info onto a new drive, about 1.5 TB of data.  When I go to launch time machine now with the new drive connected and my backup connected, it treats the new drive as if it had different data and wants to create a whole new backup set when it should just append.  How do I get around this?
    I could just reformat the backup drive and start fresh again but would rather not do that if I can avoid it, just in case there were errors in copying etc.

    Hi
    I should have been more clear, sorry.  I work from a laptop.  I have 2 external drives - one for my projects which failed but has since been replaced and restored from a backup.   My 2nd external drive  is the time machine backup drive.
    When my project drive crashed, I bought a brand new drive and restored it using my time machine backup drive.
    Now the data exists on 2 drives - the time machine backup drive, and the new drive.  When I connect the backup drive now, it thinks my new drive has new data, probably since it is a new device/drive, and wants to do a brand new backup, when in fact the data already exists on that very drive.  It shouldn't have to back up all 1.5 TB when nothing has changed!
    Unless there is a way to tell time machine to simply append to the old backup, I think it will try and do a new backup (1.5 TB).  I'm thinking maybe I should just initialize my time machine backup drive now and start over so it is only one backup set of 1.5 TB instead of (2) sets of 1.5 TB!

  • How to extract controlfile from backup set?

    Hi
    If I use this "INCLUDE CURRENT CONTROLFILE" in backup command direct to tape and no catalog, How to extract controlfile from backup set from tape?
    Thanks,
    Taohiko
    Edited by: taohiko on Sep 17, 2009 7:54 AM

    yes
    list backup of controlfile
    will show you where controlfile backup piece reside with backup piece name
    after then
    restore controlfile from 'backup_piece_naem_with_its_full_path_from_above_command_result';Khurram

  • Duplicate an old RMAN backup set on Oracle 9.2.0.8 with no catalog

    Version: 9.2.0.8. We don't use an RMAN catalog
    Scenario: I need to duplicate a database to the same server with a different name so I can recover some old data. The restored backup set is about 20 days old
    and my RMAN retention is 1 day.
    Current date: 24 March 2011
    I try
    ./rman target sys/syspassword@pasdbt9i auxiliary /
    RMAN> duplicate target database to pastemp until time "to_date('04-MAR-2011 18:30:00','DD-MON-YYYY HH24:MI:SS')";
    Starting Duplicate Db at 24-MAR-11
    using target database controlfile instead of recovery catalog
    allocated channel: ORA_AUX_DISK_1
    channel ORA_AUX_DISK_1: sid=17 devtype=DI
    .using channel ORA_AUX_DISK_1
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 03/24/2011 12:00:11
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06026: some targets not found - aborting restore
    RMAN-06023: no backup or copy of datafile 13 found to restore
    RMAN-06023: no backup or copy of datafile 12 found to restore
    RMAN-06023: no backup or copy of datafile 11 found to restore
    RMAN-06023: no backup or copy of datafile 10 found to 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
    I presume this is happening because the target database has a retention of one day and is unaware of this rman backup that is about 20 days old.
    If this is true, is there a way of telling the target database about this old backup set that I now want to duplicate?
    From 10g onwards you can catalog a backup piece which might be the fix for this??
    I've got round the problem by restoring the database to a different server, but would still like to know if the above is possible.
    Can anyone offer any suggestions? thanks.

    Hi C3PO,
    I presume this is happening because the target database has a retention of one day and is unaware of this rman backup that is about 20 days old?Correct the backupset metadata is nolonger available.
    From 10g onwards you can catalog a backup piece which might be the fix for this??In 9i you can catalog image copies.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96565/rcmsynta11.htm#1005792
    Can anyone offer any suggestions?Another option would be setup a catalog and change the retention policy to 30 days and add extra diskspace.
    Regards,
    Tycho

  • Database restore  from a particular backup set using rman

    Hi all,
    My OS: UNIX
    DB : 10.2.0.1
    As i checked the database it will indicate datafile 5 is header corruption.
    yesterday i take complete online backup of the database using RMAN but now when i run restore database command it will show as
    ORA-19870: error reading backup piece /cms/BACKUP/ora_BSCS_set149_piece1_20111206_4lmth1qj_1_1
    ORA-19573: cannot obtain exclusive enqueue for datafile 6
    Database is open and datafile is physically present there
    So can anyone tell what to do next
    Edited by: Vikas Kohli on Dec 9, 2011 9:58 AM

    here are the result for the same:
    Starting restore at 09-DEC-11
    using channel ORA_DISK_1
    List of Backup Sets
    ===================
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    147 Incr 0 1.10G DISK 00:14:10 06-DEC-11
    BP Key: 147 Status: AVAILABLE Compressed: YES Tag: TAG20111206T085858
    Piece Name: /cms/BACKUP/ora_BSCS_set149_piece1_20111206_4lmth1qj_1_1
    List of Datafiles in backup set 147
    File LV Type Ckp SCN Ckp Time Name
    1 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/system01.dbf
    2 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/undotbs01.dbf
    3 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/sysaux01.dbf
    4 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/users01.dbf
    5 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/DATA.dbf
    6 0 Incr 9068988016235 06-DEC-11 /u01/app/oracle/oradata/BSCS/users02.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    149 Incr 1 11.49M DISK 00:00:07 07-DEC-11
    BP Key: 149 Status: AVAILABLE Compressed: YES Tag: TAG20111207T082737
    Piece Name: /cms/BACKUP/ora_BSCS_set151_piece1_20111207_4nmtjkbr_1_1
    List of Datafiles in backup set 149
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/system01.dbf
    2 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/undotbs01.dbf
    3 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/sysaux01.dbf
    4 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/users01.dbf
    5 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/DATA.dbf
    6 1 Incr 9068988069143 07-DEC-11 /u01/app/oracle/oradata/BSCS/users02.dbf
    BS Key Type LV Size Device Type Elapsed Time Completion Time
    151 Incr 1 115.07M DISK 00:01:24 08-DEC-11
    BP Key: 151 Status: AVAILABLE Compressed: YES Tag: TAG20111208T075327
    Piece Name: /cms/BACKUP/ora_BSCS_set153_piece1_20111208_4pmtm6nn_1_1
    List of Datafiles in backup set 151
    File LV Type Ckp SCN Ckp Time Name
    1 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/system01.dbf
    2 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/undotbs01.dbf
    3 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/sysaux01.dbf
    4 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/users01.dbf
    5 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/DATA.dbf
    6 1 Incr 9068988123314 08-DEC-11 /u01/app/oracle/oradata/BSCS/users02.dbf
    no backup of log thread 1 seq 411 lowscn 9068988025356 found to restore
    no backup of log thread 1 seq 412 lowscn 9068988167985 found to restore
    no backup of log thread 1 seq 413 lowscn 9068988203392 found to restore
    List of Archived Log Copies
    Key Thrd Seq S Low Time Name
    263 1 3 A 05-DEC-11 /u01/app/oracle/admin/BSCS/arch/BSCS/1_3_769127125.dbf
    273 1 13 A 07-DEC-11 /u01/app/oracle/admin/BSCS/arch/BSCS/1_13_769127125.dbf
    Media recovery start SCN is 9068988123314
    Recovery must be done beyond SCN 9068988123314 to clear data files fuzziness
    Finished restore at 09-DEC-11

  • Size of backup set

    Hi,
    can we define a value for BACKUP SET in RMAN configuration ? For me BACKUP SET is a logic notion then it has no sens to have a value. But in a NETBACKUP template I see :
    Size of backup piece (KB): 15000000
    Size of backup set (KB): 15000000
    At least the both size can not be equal.
    What do you think about ?
    Many thanks.

    A backup set can have 1 or more backup pieces so if it has only 1 backup piece (which is your case) then the size of backup set and backup piece will be same and if it has more than 1 backup piece then the size of backup set would be the sum of the size of all the pieces in that set.
    Daljit Singh

  • Database restore with just one backup set

    Hallo experts,
    I got a big problem with restoring my XE database. I have a newly created full backup from my XE. While saving the flashback_area I got a hard crash on my system but I saved the last backup set file on a server. Unfortunately I was not able to save other backup sets and I think, there was a special backup of my control files. The restore on another system does not work because of invalid piece.
    The data of this database is necessary for my work. Is there anybody out there who can help to restore the data with the existing backup set.
    I did not change the entire structure of my original XE database. I only created to schemas with data in. is there any solution to restore the data.
    Thanks for any help.
    Holger

    Hi you all,
    I think that somebody will be interested in the solution of my problem,so I post it here and in german on my website (www.datacubus.de).
    My XEdatabase is successfully restored and I walked through some undocumented and not supported features of ORACLE to win the challenge.
    The first fact is, that ORACLE XE has a very static structure if you use it as is. The datafiles are predefined and so a manual restore with a foreign backup piece seems to be possible.
    Here is my way:
    Create a backup of your controlfile
    ALTER DATABASE BACKUP CONTROLFILE TO TRACE;
    Shutdown your database
    shutdown immediate
    Start the database in nomount mode
    [holger@MSA04071]$ rman nocatalog target /
    RMAN> startup force nomount;
    RMAN> quit
    Restore the datafiles
    I used the following script to restore the datafiles from the backup piece without any check:
    declare
    devtype varchar2(256);
    v_file varchar2(255);
    done boolean;
    begin
    v_file:='/usr/lib/oracle/xe/app/oracle/flash_recovery_area/XE/backupset/o1_mf_nnndf_TAG20070420T234848_32lfb0w9_.bkp';
    devtype:= dbms_backup_restore.DeviceAllocate(type => '',ident => 'D1');
    dbms_backup_restore.RestoreSetDatafile;
    dbms_backup_restore.RestoreDatafileTo(dfnumber => 1,toname=>'/usr/lib/oracle/xe/oradata/XE/system.dbf');
    dbms_backup_restore.RestoreDatafileTo(dfnumber => 2,toname=>'/usr/lib/oracle/xe/oradata/XE/undo.dbf');
    dbms_backup_restore.RestoreDatafileTo(dfnumber => 3,toname=>'/usr/lib/oracle/xe/oradata/XE/sysaux.dbf');
    dbms_backup_restore.RestoreDatafileTo(dfnumber => 4,toname=>'/usr/lib/oracle/xe/oradata/XE/users.dbf');
    dbms_backup_restore.RestoreBackupPiece(done => done,handle => v_file,params => null);
    dbms_backup_restore.DeviceDeallocate;
    end;
    Start this script as sysdba. But by carefull. This only works if no entire change of datafiles had taken place!
    Reset DBID
    Because of the saved DBID within the datafile, the database can't be opened. But there is a little trick for resetting the DBID.
    shutdown;
    startup mount;
    execute dbms_backup_restore.zeroDbid(0);
    shutdown normal;
    Delete or rename existing Controlfile
    Edit trace file
    You have to modify your controlfile script as follows:
    1. Only use the CREATE CONTROLFILE... block
    2. Delete RECOVER DATABASE block
    3. Replace REUSE with SET
    4. Replace NORESETLOGS with RESETLOGS
    Create new control file
    Use the CREATE CONTROLFILE block for creation of a new control file.
    Open Database
    alter database open resetlogs;
    Much work but all my data is back and now I will backup the whole flashback_area to avoid further nightmares.
    Bye
    Holger

  • Backup set in the tape. copied into disk. how to recover using RMAN

    I have backup set in the tape. copied into disk. how to recover using RMAN
    any link and steps please

    It should be something like the following, but really you should read and understand the rman documentation first ...
    1. restore the controlfile
    sqlplus / as sysdba
    startup nomount
    exit
    rman
    connect target /
    restore controlfile from '/path to the controlfile backup piece';
    exit
    sqlplus / as sysdba
    alter database mount
    exit
    2. catalog the backup pieces
    rman
    connect target /
    catalog start with '/path to backup pieces';
    3. restore the database
    rman
    connect target /
    restore database
    4. recover the database
    rman
    connect target /
    recover database
    5. open the database
    sqlplus / as sysdba
    alter database open resetlogs;

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

  • Determine set until time from particular backup set

    Hi Gurus,
    First of all thank you for everybody reading my question.
    I am using database control file instead of recovery catalog.
    database 10gr2
    10.2.0.3
    os is suse linux
    Is there way (any magic query)
    you can determine sec part correctly for set until time looking backup set:
    7544 B F A DISK 28-AUG-11 1 1 YES PROD_FULL_BKUP_08.28.2011
    ALLOCATE AUXILIARY CHANNEL aux1 DEVICE TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL aux2 DEVICE TYPE DISK;
    ALLOCATE AUXILIARY CHANNEL aux3 DEVICE TYPE DISK;
    #SET UNTIL SEQUENCE 10008 thread 1;
    SET UNTIL TIME "TO_DATE('28-Aug-2011 03:40:32', 'dd-mon-YYYY hh24:mi:ss')";
    DUPLICATE TARGET DATABASE TO "11demo"
    I try hit and try for determining sec part.
    is there a proven way.
    '28-Aug-2011 03:40:31' worked
    '28-Aug-2011 03:40:38' didn't
    '28-Aug-2011 03:40:35' didn't.
    1)
    I look os time stamp set for backup.
    -rw-r----- 1 oracle oinstall 9281626112 2011-08-28 03:40 o1_mf_nnndf_PROD_FULL_BKUP_08_75mxdb7v_.bkp
    2) I add start time(03:00:00) +elapsed time.
    channel ORA_DISK_1: backup set complete, elapsed time: 00:40:35
    thanks

    I can get
    " list backup of archivelog all"
    BS Key Size Device Type Elapsed Time Completion Time
    7576 1.51G DISK 00:05:04 02-SEP-11
    BP Key: 7576 Status: AVAILABLE Compressed: YES Tag: ROD_ARC_09.02.2011
    Piece Name: /u02/flash_recovery_area/ROD/backupset/2011_09_02/o1_mf_ annnn_ADVPROD_ARC_09.02.20_7616s3fm_.bkp
    List of Archived Logs in backup set 7576
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 205824 3898563613 01-SEP-11 3898573074 01-SEP-11
    you can get "SET UNTIL SEQUENCE thread "
    correctly,
    But How does one find out the exact time the backup was completed?
    I simply used the timestamp from the Rman backup as an approximate indicator.
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: system01.dbf'
    released channel: aux1
    released channel: aux2
    released channel: aux3
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of Duplicate Db command at 09/01/2011 12:53:48
    RMAN-03015: error occurred in stored script Memory Script
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 13891 lowscn 4013222506 found to restore
    Edited by: 880674 on Sep 2, 2011 7:07 AM

  • RMAN backup set path

    I am restoring the production database to testing server. i have taken the cold backup of my catalog database and refreshed on development server so that i can have information about the production db in RMAN catalog db.
    i have copied the backup sets ( level 0 ) of my production db to development server. backup set path is not identical as production. so When i try to recover in dev server i am getting error file not found. ( not able to find the backup piece ) since it is point to production backup set path.
    how do i set or update the RMAN database about my testing server backup set path so that during the recovery rman reads from new location on the development.

    thank you.
    I am facing problem while restoring the database.
    i trying to restore from level 0 backup which we take daily basis. when i use the below command and while restoring one of the datafile referring the old backup set which is not available. i have valid backup sets taken yesterday. but rman refers the backup sets taken on day before yesterday.
    i am using the following command.
    rman << EOS
    connect catalog rman/rman@PSMTRRCT
    set dbid 4151495469;
    connect target /;
    startup nomount;
    run {
    allocate channel c1 type disk;
    set until time "to_date('9/mar/2011 23:00','dd/mon/yyyy hh24:mi')";
    restore controlfile;
    restore database;
    alter database mount;
    exit
    EOS
    LEVEL 0 backup which i have was taken on 9 mar. but rman refers the 8 march backup set for one particular datafile. since i dont have that backup set. restore fails.
    can you please help.

  • How to list all available backup sets

    Hi,
    we are using Oracle 11gR2. there is an requirement to list all avilable backup sets through shell scripts, we have retention period of 15days.
    below query gives me list of backup files but it was difficult to know which files was require for "catalog backuppiece"
    DBMS_RCVMAN.SETDATABASE(null,null,null,1536975101,null);
    SELECT PKEY,FNAME ,BS_COMPLETION_TIME
    FROM RMAN.RC_BACKUP_FILES
    where
    file_type='PIECE'
    AND
    STATUS = 'AVAILABLE';Backup sets looks below on Disk. all files starting with *"db11g_c-"* are required for catalog backuppiece.
    we like to know is there another better way to get this information. we want to list only those files required for cataloging.
    -rw-r-----   1 oracle   asmadmin     38M Sep 30 02:30 backup_ADB_DB_30092010_25lp5hle_1_1_69
    -rw-r-----   1 oracle   asmadmin    285M Sep 30 02:32 backup_ADB_DB_30092010_26lp5hm7_1_1_70
    -rw-r-----   1 oracle   asmadmin    145K Sep 30 02:32 backup_ADB_DB_30092010_27lp5hpr_1_1_71
    -rw-r-----   1 oracle   asmadmin    9.4M Sep 30 02:32 db11g_c-1536975101-20100930-00
    -rw-r-----   1 oracle   asmadmin     38M Oct  1 02:30 backup_ADB_DB_01102010_29lpaqdi_1_1_73
    -rw-r-----   1 oracle   asmadmin    286M Oct  1 02:32 backup_ADB_DB_01102010_2alpaqeb_1_1_74
    -rw-r-----   1 oracle   asmadmin    125K Oct  1 02:32 backup_ADB_DB_01102010_2blpaqi9_1_1_75
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  1 02:32 db11g_c-1536975101-20101001-00
    -rw-r-----   1 oracle   asmadmin     38M Oct  2 02:30 backup_ADB_DB_02102010_2dlpdepj_1_1_77
    -rw-r-----   1 oracle   asmadmin    287M Oct  2 02:32 backup_ADB_DB_02102010_2elpdeqd_1_1_78
    -rw-r-----   1 oracle   asmadmin    169K Oct  2 02:32 backup_ADB_DB_02102010_2flpdeub_1_1_79
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  2 02:32 db11g_c-1536975101-20101002-00
    -rw-r-----   1 oracle   asmadmin     48M Oct  3 02:30 backup_ADB_DB_03102010_2hlpg35h_1_1_81
    -rw-r-----   1 oracle   asmadmin    288M Oct  3 02:32 backup_ADB_DB_03102010_2ilpg36l_1_1_82
    -rw-r-----   1 oracle   asmadmin    123K Oct  3 02:32 backup_ADB_DB_03102010_2jlpg3aj_1_1_83
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  3 02:32 db11g_c-1536975101-20101003-00
    -rw-r-----   1 oracle   asmadmin     48M Oct  4 02:30 backup_ADB_DB_04102010_2llpinhk_1_1_85
    -rw-r-----   1 oracle   asmadmin    290M Oct  4 02:32 backup_ADB_DB_04102010_2mlpinio_1_1_86
    -rw-r-----   1 oracle   asmadmin    177K Oct  4 02:32 backup_ADB_DB_04102010_2nlpinmc_1_1_87
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 02:32 db11g_c-1536975101-20101004-00
    -rw-r-----   1 oracle   asmadmin    2.9M Oct  4 05:26 backup_ADB_DB_04102010_2plpj1s3_1_1_89
    -rw-r-----   1 oracle   asmadmin    289M Oct  4 05:28 backup_ADB_DB_04102010_2qlpj1s4_1_1_90
    -rw-r-----   1 oracle   asmadmin     13K Oct  4 05:28 backup_ADB_DB_04102010_2rlpj1vp_1_1_91
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 05:28 db11g_c-1536975101-20101004-01
    -rw-r-----   1 oracle   asmadmin    7.0K Oct  4 05:29 backup_ADB_DB_04102010_2tlpj21q_1_1_93
    -rw-r-----   1 oracle   asmadmin    3.0K Oct  4 05:29 backup_ADB_DB_04102010_2vlpj223_1_1_95
    -rw-r-----   1 oracle   asmadmin    289M Oct  4 05:36 backup_ADB_DB_04102010_2ulpj21r_1_1_94
    -rw-r-----   1 oracle   asmadmin    150K Oct  4 05:37 backup_ADB_DB_04102010_31lpj2gv_1_1_97
    -rw-r-----   1 oracle   asmadmin    289M Oct  4 05:37 backup_ADB_DB_04102010_30lpj22h_1_1_96
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 05:37 db11g_c-1536975101-20101004-02
    -rw-r-----   1 oracle   asmadmin    8.0K Oct  4 05:37 backup_ADB_DB_04102010_33lpj2h7_1_1_99
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 05:38 db11g_c-1536975101-20101004-03
    -rw-r-----   1 oracle   asmadmin    2.8M Oct  4 08:00 backup_ADB_DB_04102010_36lpjase_1_1_102
    -rw-r-----   1 oracle   asmadmin    290M Oct  4 08:02 backup_ADB_DB_04102010_37lpjasi_1_1_103
    -rw-r-----   1 oracle   asmadmin    270K Oct  4 08:02 backup_ADB_DB_04102010_38lpjb0g_1_1_104
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 08:02 db11g_c-1536975101-20101004-04
    -rw-r-----   1 oracle   asmadmin    215K Oct  4 08:14 backup_ADB_DB_04102010_3alpjbnl_1_1_106
    -rw-r-----   1 oracle   asmadmin    291M Oct  4 08:16 backup_ADB_DB_04102010_3blpjbnm_1_1_107
    -rw-r-----   1 oracle   asmadmin    110K Oct  4 08:16 backup_ADB_DB_04102010_3clpjbrl_1_1_108
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  4 08:16 db11g_c-1536975101-20101004-05
    -rw-r-----   1 oracle   asmadmin     34M Oct  5 02:30 backup_ADB_DB_05102010_3elplbtg_1_1_110
    -rw-r-----   1 oracle   asmadmin    291M Oct  5 02:32 backup_ADB_DB_05102010_3flplbu0_1_1_111
    -rw-r-----   1 oracle   asmadmin     27K Oct  5 02:32 backup_ADB_DB_05102010_3glplc1a_1_1_112
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  5 02:32 db11g_c-1536975101-20101005-00
    -rw-r-----   1 oracle   asmadmin     33M Oct  6 02:30 backup_ADB_DB_06102010_3ilpo09f_1_1_114
    -rw-r-----   1 oracle   asmadmin    291M Oct  6 02:32 backup_ADB_DB_06102010_3jlpo09u_1_1_115
    -rw-r-----   1 oracle   asmadmin     22K Oct  6 02:32 backup_ADB_DB_06102010_3klpo0dt_1_1_116
    -rw-r-----   1 oracle   asmadmin    9.4M Oct  6 02:32 db11g_c-1536975101-20101006-00Edited by: Sachin B on Oct 6, 2010 2:50 AM

    i got the solution :)
    EXEC DBMS_RCVMAN.SETDATABASE(null,null,null,1536975101,null);
    SELECT PKEY,FNAME ,BS_COMPLETION_TIME
    FROM RMAN.RC_BACKUP_FILES
    where
    file_type='PIECE'
    AND
    STATUS = 'AVAILABLE'
    AND
    BS_KEY IN
    (SELECT BS_KEY FROM RC_BACKUP_SET where db_id='1536975101' AND CONTROLFILE_INCLUDED='BACKUP');

  • Mac mini refuses to recognize existing TM backup set

    I just got my mac mini fixed with a new logic board, and I have it connected to a 250GB external FW drive. Time machine was running on a partition on the external drive quite happily since I bought it in November, but since getting it back from the repair, it refuses to recognize that there is an existing backup set on the drive. The hard drive is identical after the repair, machine name is identical, etc.
    The machine name is "Wintermute" and there is an existing directory in Backups.backupdb - when I try to run a backup run, it creates a directory "Wintermute 2" and bails out with insufficient disk space (it's trying to do a full backup)
    If I right-click Time Machine in the dock and select "Browse Other Time Machine disks" I can select the existing backup and it seems to be OK. However, I can't seem to continue adding to that backup set!
    Any suggestions?

    Here are the contents of my backup volume if it helps at all:
    bash-3.2$ ls -al
    total 16
    drwxrwxr-x  13 skye  skye    510 Jan 18 09:32 .
    drwxrwxrwt@  5 root  admin   170 Jan 18 10:50 ..
    -r--------   1 skye  skye     16 Nov  3 17:03 .0016cbac0d11
    -r--------   1 root  wheel    16 Jan 18 09:32 .0016cbac4103
    -rw-rw-r--@  1 skye  skye   6148 Jan 18 09:48 .DS_Store
    drwx------   3 skye  skye    102 Nov  3 16:57 .Spotlight-V100
    drwxrwxrwt@  3 skye  skye    102 Nov 29 20:34 .TemporaryItems
    d-wx-wx-wt   3 skye  skye    102 Jan 18 10:50 .Trashes
    -rw-r--r--   1 skye  skye      0 Nov  3 16:57 .com.apple.timemachine.supported
    drwx------  10 skye  skye    340 Jan 18 10:50 .fseventsd
    drwxr-xr-x+  3 root  skye    102 Jan 18 11:03 Backups.backupdb

Maybe you are looking for

  • How can I call the Class and have a PDF appear in seperate window?.

    I would like to call the class/interface ZCL_UIU_PRN_ACCOUNT2, method Collect_data and have a Smartform executed to produce a PDF document in a Seperate window. Where I have an issue is in opening another window to display the PDF. I know the Standar

  • How to find out the info regarding Solaris, server hang or shutdown.

    Hi As I am handling the Solaris 9 Server remotely. As in last week the server has stopped to respond suddenly, we have tried to ping, ssh which was not working. As ultimately we have asked the Data Centre Team to hard reboot the same, to resolve the

  • Order pdf browser plugin 2 license

    Mac Pro laptop OS10.6.7, running Firefox 3.6.17 When I attempt to open a .pdf document within Firefox one of two things happen: 1. the screen/tab freezes completely with a "Not registered" message shown under the frozen processing icon. Or 2. I get a

  • How does it connect to the database

    can anyone pls tell me how the below coding connect to the database, and if i want to change to use other type of connection, which part of the coding should i use? thank loginAction.jsp <%@ page contentType="text/html; charset=iso-8859-1" language="

  • Pair iPhone with alpine car radio

    My iPhone 5 won't pair with the Alpine radio in my car. The iPhone 4 did it with no problems.