Help remove backups rman (delete the repository)

Hi all.

I will soon be administering a few databases Oracle (11g Rel2). Currently these DBs area in log mode archive with a backup rman in place policy.


I don't like this policy and you want to use my own, incremental backups from updadateable, so this is the plan I have in mind.


(1) disable mode archive.


(2) a clean shutdown and take a backup to cold.


(3) since after you disable archiving, backups RMAN ALL will be unusable, I want to remove them (including newspapers archive and backup sets).


(4) after the correct deletion, set up some persistent RMAN settings, such as retention policy, controlfile autobackup and optimization.


(5) turn on archiving


(6) to set up the new policy based backups backup incremental updateable with duplex location for archiving logs.


Help is requested on the best way to clean all the backups (3).


I can manually delete the backups and do overlap, but according to the Oracle Documentation "Delete backup" will be delete all backups for data recorded in the RMAN Repository.


So which is the best way easier and faster? Will delete backup include the archive logs?


Thanks in advance. Luis!


myluism wrote:

Can I still use them?

I would say it is "the wrong answer to evil. When you disable log mode archive, you can only back up the database when it is stopped and only to restore and recover the database until the last stop.

Looking at your plan, I wonder what you are trying to accomplish first log mode archive disabling and then enabling archive mode log again. Why do you think that this is necessary and what you're trying to accomplish.

You need not disable and enable log mode archive in order to eliminate the obsolete achivelogs.

If you are not satisfied with the retention policy, simply change it. All backups that are outside your retention policy will be considered as obsolete and you can remove them using RMAN delete obsolete, which will remove all files as well as the appropriate data backup from the RMAN Repository.

For example you can archivelog delete all the entries backup and then delete the backupset or remove them at the OS level, do overlap and then use delete noprompt expired archivelog all.

The retention policy applies to backup and archivelogs. However, you can have a separate archivelog deletion policy that applies to archivelogs.

Tags: Database

Similar Questions

  • The front last backup RMAN delete file even if redundancy on 3 days

    Dear Oracle gurus

    My environment
    Node 2 11g R2 Cluster with ASM
    Database 11.2.0.3.0

    I got to know that file below is delete by RMAN even if redundancy on 3 days
    * 19M rman_bkp_3uo9vf2f_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013 * is removed

    can you please provide a reason or recommendations to correct the backup configuration

    =========Before Backup========================================
    917M rman_bkp_1jo97nk1_1_1_ORCL_20130509_DATAFILE_LVL0_09_05_2013
    Rman_bkp_1ko97nk1_1_1_ORCL_20130509_DATAFILE_LVL0_09_05_2013 669M
    Rman_bkp_1ro9ac02_1_1_ORCL_20130510_DATAFILE_LVL1_10_05_2013 101M
    64M rman_bkp_1so9ac02_1_1_ORCL_20130510_DATAFILE_LVL1_10_05_2013
    116M rman_bkp_23o9d0br_1_1_ORCL_20130511_DATAFILE_LVL1_11_05_2013
    Rman_bkp_24o9d0br_1_1_ORCL_20130511_DATAFILE_LVL1_11_05_2013 85M
    1003M rman_bkp_2bo9fko2_1_1_ORCL_20130512_DATAFILE_LVL0_12_05_2013
    689M rman_bkp_2co9fko2_1_1_ORCL_20130512_DATAFILE_LVL0_12_05_2013
    87M rman_bkp_2jo9i942_1_1_ORCL_20130513_DATAFILE_LVL1_13_05_2013
    Rman_bkp_2ko9i942_1_1_ORCL_20130513_DATAFILE_LVL1_13_05_2013 73M
    110M rman_bkp_2so9ktg1_1_1_ORCL_20130514_DATAFILE_LVL1_14_05_2013
    Rman_bkp_2to9ktg1_1_1_ORCL_20130514_DATAFILE_LVL1_14_05_2013 103M
    115M rman_bkp_34o9nhs2_1_1_ORCL_20130515_DATAFILE_LVL1_15_05_2013
    88M rman_bkp_35o9nhs2_1_1_ORCL_20130515_DATAFILE_LVL1_15_05_2013
    1011M rman_bkp_3co9q682_1_1_ORCL_20130516_DATAFILE_LVL0_16_05_2013
    701M rman_bkp_3do9q682_1_1_ORCL_20130516_DATAFILE_LVL0_16_05_2013
    226M rman_bkp_3ko9sqkk_1_1_ORCL_20130517_DATAFILE_LVL1_17_05_2013
    215M rman_bkp_3lo9sqkl_1_1_ORCL_20130517_DATAFILE_LVL1_17_05_2013
    * 230M rman_bkp_3so9vf1v_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013 *.
    * 568M rman_bkp_3to9vf20_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013 *.
    * 19M rman_bkp_3uo9vf2f_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013 *.
    ===========================================================================

    ===================After Backup========================================================
    -rw - r - 1 oracle oinstall 1049755648 12 May 20:05 rman_bkp_2bo9fko2_1_1_ORCL_20130512_DATAFILE_LVL0_12_05_2013
    -rw - r - 1 oracle oinstall 720715776 12 May 20:05 rman_bkp_2co9fko2_1_1_ORCL_20130512_DATAFILE_LVL0_12_05_2013
    -rw - r - 1 oracle oinstall 91013120 13 May 20:05 rman_bkp_2jo9i942_1_1_ORCL_20130513_DATAFILE_LVL1_13_05_2013
    -rw - r - 1 oracle oinstall 75726848 13 May 20:05 rman_bkp_2ko9i942_1_1_ORCL_20130513_DATAFILE_LVL1_13_05_2013
    -rw - r - 1 oracle oinstall 114327552 14 May 20:05 rman_bkp_2so9ktg1_1_1_ORCL_20130514_DATAFILE_LVL1_14_05_2013
    -rw - r - 1 oracle oinstall 107782144 14 May 20:05 rman_bkp_2to9ktg1_1_1_ORCL_20130514_DATAFILE_LVL1_14_05_2013
    -rw - r - 1 oracle oinstall 120307712 15 May 20:05 rman_bkp_34o9nhs2_1_1_ORCL_20130515_DATAFILE_LVL1_15_05_2013
    -rw - r - 1 oracle oinstall 91226112 15 May 20:05 rman_bkp_35o9nhs2_1_1_ORCL_20130515_DATAFILE_LVL1_15_05_2013
    -rw - r - 1 oracle oinstall 1058840576 16 May 20:05 rman_bkp_3co9q682_1_1_ORCL_20130516_DATAFILE_LVL0_16_05_2013
    -rw - r - 1 oracle oinstall 733757440 16 May 20:05 rman_bkp_3do9q682_1_1_ORCL_20130516_DATAFILE_LVL0_16_05_2013
    -rw - r - 1 oracle oinstall 236716032 17 May 20:05 rman_bkp_3ko9sqkk_1_1_ORCL_20130517_DATAFILE_LVL1_17_05_2013
    -rw - r - 1 oracle oinstall 224174080 17 May 20:05 rman_bkp_3lo9sqkl_1_1_ORCL_20130517_DATAFILE_LVL1_17_05_2013
    -rw - r - 1 oracle oinstall 594411520 18 May 20:06 rman_bkp_3to9vf20_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013
    -rw - r - 1 oracle oinstall 240123904 18 May 20:06 rman_bkp_3so9vf1v_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013
    -rw - r - 1 oracle oinstall 1073741824 19 May 20:06 rman_bkp_45oa23eh_1_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013
    -rw - r - 1 oracle oinstall 1073741824 19 May 20:06 rman_bkp_44oa23eg_1_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013
    -rw - r - 1 oracle oinstall 254590976 19 May 20:06 rman_bkp_45oa23eh_2_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013
    -rw - r - 1 oracle oinstall 709885952 19 May 20:07 rman_bkp_44oa23eg_2_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013
    -rw - r - 1 oracle oinstall 19234816 19 May 20:07 rman_bkp_46oa23f7_1_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013
    ==================================================================================


    Configuration of RMAN
    bash-$3.2 rman target /.

    Recovery Manager: release 11.2.0.3.0 - Production the Sun may 19 14:34:26 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

    connected to target database: ORCL (DBID = 3171721304)

    RMAN > show all.

    using the control file of the target instead of recovery catalog database
    RMAN settings for database with db_unique_name ORCLDR are:
    CONFIGURE REDUNDANCY 3 RETENTION STRATEGY;
    CONFIGURE BACKUP OPTIMIZATION
    SET UP DEFAULT DISK DEVICE TYPE; # by default
    CONFIGURE CONTROLFILE AUTOBACKUP ON;
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO "%F" # by default
    SET UP THE DEVICE TYPE DISK PARALLELISM 1 BACKUP BACKUPSET TYPE; # by default
    CONFIGURE BACKUP OF DATA TO DISK FILE TYPE DEVICE TO 1; # by default
    CONFIGURE BACKUP ARCHIVELOG FOR DEVICE TYPE DISK TO 1; # by default
    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default
    CONFIGURE ENCRYPTION OF DATABASE # by default
    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default
    CONFIGURE COMPRESSION ALGORITHM 'BASIC' AND 'DEFAULT' LIBERATION OPTIMIZE FOR TRUE LOAD; # by default
    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_orcldr2.f'; # by default

    RMAN > exit
    =========================================================================================
    RMAN Full Backup Script
    RMAN level 0
    #! / bin/bash
    . /Home/Oracle/.bash_profile
    logloc = 'date' + rman_backup_lvl0_orcldr_ %m %y hour %M %S %d ".log
    Target of $ORACLE_HOME/bin/rman = / log = / backup/RMAN_Log / $logloc < < EOF
    run
    {
    allocate channels ch1 type disk maxpiecesize = 1024 M;
    allocate channel ch2 type disk maxpiecesize = 1024M;
    database backup incremental level 0 FORMAT ' / backup/RMAN_Backup/rman_bkp_%U_%d_%T_DATAFILE_LVL0_%D_%M_%Y'
    include current controlfile more archivelog delete all entries
    tag 'datafile_full ';
    }
    delete noprompt obsolete;
    EXIT;
    EXPRESSIONS OF FOLKLORE
    =========================================================================================

    Backup logs
    -bash-3, $ 2 cat rman_backup_lvl0_ORCLdr_190513200501.log

    Recovery Manager: release 11.2.0.3.0 - Production the Sun may 19 20:05:01 2013

    Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.

    connected to target database: ORCL (DBID = 3171721304)

    RMAN >
    RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 >
    using the control file of the target instead of recovery catalog database
    allocated channel: ch1
    channel ch1: SID = instance 1753 = ORCLdr2 = DISK device type

    allocated channel: ch2
    channel ch2: SID = 5 = device type ORCLdr2 = DISK instance


    From backup may 19, 13
    Current archived log
    archived journal of wire 1 to jump with sequence 84; already saved
    skip the journal archived thread 2 with sequence 79; already saved
    channel ch1: Startup archived log backup set
    channel ch1: specifying the newspapers archived in the backup set
    archived journal entry thread = 2 sequence = 81 RECID = 388 STAMP = 815810424
    archived journal entry thread = 1 sequence = 85 RECID = 385 STAMP = 815793508
    archived journal entry thread = 1 sequence = 86 RECID = 389 STAMP = 815810426
    archived journal entry thread = 1 sequence = 87 RECID = 391 STAMP = 815828071
    channel ch1: from room 1 to May 19, 13
    channel ch2: Startup archived log backup set
    channel ch2: specifying the newspapers archived in the backup set
    archived journal thread = sequence 2 = 82 entry RECID = 396 STAMP = 815861105
    archived journal entry thread = 1 sequence = 88 RECID = 393 = 815846442 STAMP
    archived journal entry thread = 1 sequence = 89 RECID = 397 STAMP = 815861108
    channel ch2: from room 1 to May 19, 13
    channel ch1: finished piece 1 to May 19, 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/42oa23bp_1_1 tag = DATAFILE_FULL comment = NONE
    channel ch1: from part 2 to May 19, 13
    channel ch2: finished piece 1 to May 19, 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/43oa23bp_1_1 tag = DATAFILE_FULL comment = NONE
    channel ch2: from part 2 to May 19, 13
    channel ch1: finished part 2 to May 19, 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/42oa23bp_2_1 tag = DATAFILE_FULL comment = NONE
    channel ch1: from 3 to 19 May 13 piece
    channel ch2: finished part 2 to May 19, 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/43oa23bp_2_1 tag = DATAFILE_FULL comment = NONE
    channel ch2: complete set of backups, time: 00:01:10
    channel ch2: archived deletion or newspapers
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_2_82_814540431.arc RECID archived log file = 396 STAMP = 815861105
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_88_814540431.arc RECID archived log file = 393 = 815846442 STAMP
    RMAN-08137: WARNING: log archived not deleted, necessary for intelligence or upstream collection procedure
    Archive log file name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_89_814540431.arc thread = 1 sequence = 89
    channel ch2: archived deletion or newspapers
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_84_814540431.arc RECID archived log file = 383 STAMP = 815774802
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_2_79_814540431.arc RECID archived log file = 378 STAMP = 815774705
    channel ch1: finished part 3 to 19 May 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/42oa23bp_3_1 tag = DATAFILE_FULL comment = NONE
    channel ch1: complete set of backups, time: 00:01:25
    channel ch1: archived deletion or newspapers
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_2_81_814540431.arc RECID archived log file = 388 STAMP = 815810424
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_85_814540431.arc RECID archived log file = 385 STAMP = 815793508
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_86_814540431.arc RECID archived log file = 389 STAMP = 815810426
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_87_814540431.arc RECID archived log file = 391 STAMP = 815828071
    Backup finished on 19 May 13

    From backup may 19, 13
    channel ch1: start the incremental level 0 datafile backup set
    channel ch1: specification-datafile in the backup set (s)
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statistics2013_5.dbf 00009
    Enter a number of file datafile = 00001 name=+ORASYS/ORCLdr/datafile/system.257.814500985
    Enter a number of file datafile = name=+ORASYS/ORCLdr/datafile/undotbs1.259.814500991 00003
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/app2.dbf 00006
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/app.dbf 00008
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users01.dbf 00011
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users03.dbf 00013
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users05.dbf 00015
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users07.dbf 00017
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_5.dbf 00019
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_7.dbf 00021
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_9.dbf 00023
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_11.dbf 00025
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdrmaxdat.dbf 00027
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/sidradcdr.dbf 00029
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statistics2013_8.dbf 00031
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statistics2013_10.dbf 00033
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/interimcdr2013_5.dbf 00037
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/nterimcdr2013_7.dbf 00039
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/interimcdr2013_9.dbf 00041
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/nterimcdr2013_11.dbf 00043
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/nterimcdrmaxdat.dbf 00045
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/sidradinterimcdr.dbf 00047
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/reports.dbf 00048
    channel ch1: from room 1 to May 19, 13
    channel ch2: start the incremental level 0 datafile backup set
    channel ch2: specification-datafile in the backup set (s)
    Enter a number of file datafile = name=+ORASYS/ORCLdr/datafile/sysaux.256.814500977 00002
    Enter a number of file datafile = 00005 name=+ORASYS/ORCLdr/datafile/undotbs2.258.814500987
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/namestatistics.dbf 00035
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/gidstatistics.dbf 00036
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/stat01.dbf 00007
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statistics2013_6.dbf 00010
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users02.dbf 00012
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users04.dbf 00014
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users06.dbf 00016
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/users08.dbf 00018
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_6.dbf 00020
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_8.dbf 00022
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_10.dbf 00024
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/cdr2013_12.dbf 00026
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/unameradcdr.dbf 00028
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statistics2013_7.dbf 00030
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statistics2013_9.dbf 00032
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/statisticsmaxdate.dbf 00034
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/radintdr2013_6.dbf 00038
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/radiusintcdr2013_8.dbf 00040
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/radinterimcdr2013_10.dbf 00042
    Enter a number of file datafile = name=+ORADATA1/ORCLdr/datafile/tb2013_12.dbf 00044
    Enter a file datafile 00046 name=+ORADATA1/ORCLdr/datafile/tberimcdr.dbf = number
    Enter a number of file datafile = name=+ORASYS/ORCLdr/datafile/users.260.814500995 00004
    channel ch2: from room 1 to May 19, 13
    channel ch1: finished piece 1 to May 19, 13
    total, handle = / backup/RMAN_Backup/rman_bkp_44oa23eg_1_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013 tag = comment TAG20130519T200640 = NONE
    channel ch1: from part 2 to May 19, 13
    channel ch2: finished piece 1 to May 19, 13
    total, handle = / backup/RMAN_Backup/rman_bkp_45oa23eh_1_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013 tag = comment TAG20130519T200640 = NONE
    channel ch2: from part 2 to May 19, 13
    channel ch1: finished part 2 to May 19, 13
    total, handle = / backup/RMAN_Backup/rman_bkp_44oa23eg_2_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013 tag = comment TAG20130519T200640 = NONE
    channel ch1: complete set of backups, time: 00:00:22
    channel ch1: start the incremental level 0 datafile backup set
    channel ch1: specification-datafile in the backup set (s)
    channel ch2: finished part 2 to May 19, 13
    total, handle = / backup/RMAN_Backup/rman_bkp_45oa23eh_2_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013 tag = comment TAG20130519T200640 = NONE
    channel ch2: complete set of backups, time: 00:00:22
    including the current control in the backup set file
    channel ch1: from room 1 to May 19, 13
    channel ch1: finished piece 1 to May 19, 13
    total, handle = / backup/RMAN_Backup/rman_bkp_46oa23f7_1_1_ORCL_20130519_DATAFILE_LVL0_19_05_2013 tag = comment TAG20130519T200640 = NONE
    channel ch1: complete set of backups, time: 00:00:01
    Backup finished on 19 May 13

    From backup may 19, 13
    Current archived log
    channel ch1: Startup archived log backup set
    channel ch1: specifying the newspapers archived in the backup set
    archived journal entry thread = 2 sequence = 83 RECID = 399 STAMP = 815861227
    channel ch1: from room 1 to May 19, 13
    channel ch2: Startup archived log backup set
    channel ch2: specifying the newspapers archived in the backup set
    archived journal entry thread = 1 sequence = 90 RECID = 401 STAMP = 815861227
    channel ch2: from room 1 to May 19, 13
    channel ch1: finished piece 1 to May 19, 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/47oa23fd_1_1 tag = DATAFILE_FULL comment = NONE
    channel ch1: complete set of backups, time: 00:00:01
    channel ch1: archived deletion or newspapers
    name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_2_83_814540431.arc RECID archived log file = 399 STAMP = 815861227
    channel ch2: finished piece 1 to May 19, 13
    piece handle=/u01/app/oracle/product/11.2.0/db_1/dbs/48oa23fd_1_1 tag = DATAFILE_FULL comment = NONE
    channel ch2: complete set of backups, time: 00:00:01
    channel ch2: archived deletion or newspapers
    RMAN-08137: WARNING: log archived not deleted, necessary for intelligence or upstream collection procedure
    Archive log file name=+ORAFRA/ORCLdr/archivelog/logbd0ca058_1_90_814540431.arc thread = 1 sequence = 90
    Backup finished on 19 May 13

    From control file and SPFILE Autobackup 19 May 13
    room handle=/u01/app/oracle/product/11.2.0/db_1/dbs/c-3171721304-20130519-00 comment = NONE
    File control finished and Autobackup SPFILE to 19 May 13
    output channel: ch1
    output channel: ch2

    RMAN >
    RMAN >
    RMAN retention policy apply to the order
    RMAN retention policy is set to 3 redundancy
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID = instance 1753 = ORCLdr2 = DISK device type
    Remove the following obsolete backups and copies:
    Making key time filename/handle type
    -------------------- ------ ------------------ --------------------
    8 4 may control file copy 13 /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_ORCLdr1.f
    Game save 40 9 May 13
    Save the piece 40 9 May 13/backup/RMAN_Backup/rman_bkp_1jo97nk1_1_1_ORCL_20130509_DATAFILE_LVL0_09_05_2013
    Save game 39 may 9, 13
    Save the song 39 9 May 13/backup/RMAN_Backup/rman_bkp_1ko97nk1_1_1_ORCL_20130509_DATAFILE_LVL0_09_05_2013
    Backs up the entire 42 9 May 13
    Backup total 42 9 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/1mo97nkl_1_1
    Backs up the entire 43 9 May 13
    Backup total 43 9 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/1no97nkl_1_1
    Save game 46 may 10, 13
    Backup total 46 may 10, 13 /u01/app/oracle/product/11.2.0/db_1/dbs/1po9abvp_1_1
    Game backup 45 may 10, 13
    Backup total 45 10 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/1qo9abvp_1_1
    Save game 47 10 May 13
    Save room 47 10 May 13/backup/RMAN_Backup/rman_bkp_1ro9ac02_1_1_ORCL_20130510_DATAFILE_LVL1_10_05_2013
    Backs up the entire 48 may 10, 13
    Save the piece 48 10 May 13/backup/RMAN_Backup/rman_bkp_1so9ac02_1_1_ORCL_20130510_DATAFILE_LVL1_10_05_2013
    Backs up the entire 50 10 May 13
    Backup total 50 10 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/1uo9ac0l_1_1
    Backs up the entire 51 may 10, 13
    Backup total 51 may 10, 13 /u01/app/oracle/product/11.2.0/db_1/dbs/1vo9ac0l_1_1
    Backs up the entire 54 may 11, 13
    Backup total 54 may 11, 13 /u01/app/oracle/product/11.2.0/db_1/dbs/21o9d0bi_1_1
    Save game 53 may 11, 13
    Backup total 53 may 11, 13 /u01/app/oracle/product/11.2.0/db_1/dbs/22o9d0bi_1_1
    Save game 55 may 11, 13
    Save the piece 55 may 11, 13/backup/RMAN_Backup/rman_bkp_23o9d0br_1_1_ORCL_20130511_DATAFILE_LVL1_11_05_2013
    Backs up the entire 56 may 11, 13
    Save the song 56 11 May 13/backup/RMAN_Backup/rman_bkp_24o9d0br_1_1_ORCL_20130511_DATAFILE_LVL1_11_05_2013
    Backs up the entire 58 may 11, 13
    Backup total 58 may 11, 13 /u01/app/oracle/product/11.2.0/db_1/dbs/26o9d0cj_1_1
    Save game 59 may 11, 13
    Backup total 59 may 11, 13 /u01/app/oracle/product/11.2.0/db_1/dbs/27o9d0cj_1_1
    Backs up the entire 62 12 May 13
    Backup total 62 12 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/29o9fknp_1_1
    Save game 61 12 May 13
    Backup total 61 12 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/2ao9fknp_1_1
    Save game 77 14 May 13
    Backup total 77 14 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/c-3171721304-20130514-00
    Game backup 101 16 May 13
    Backup total 101 16 May 13 /u01/app/oracle/product/11.2.0/db_1/dbs/c-3171721304-20130516-00
    Backs up the entire 114 18 May 13
    Save the song 117 may 18, 13/backup/RMAN_Backup/rman_bkp_3uo9vf2f_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_1jo97nk1_1_1_ORCL_20130509_DATAFILE_LVL0_09_05_2013 RECID = 40 STAMP = 814997122
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_1ko97nk1_1_1_ORCL_20130509_DATAFILE_LVL0_09_05_2013 RECID = STAMP 39 = 814997122
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/1mo97nkl_1_1 element of backup RECID = STAMP 42 = 814997141
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/1no97nkl_1_1 element of backup RECID = STAMP 43 = 814997141
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/1po9abvp_1_1 element of backup RECID = STAMP 46 = 815083513
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/1qo9abvp_1_1 element of backup RECID = STAMP 45 = 815083514
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_1ro9ac02_1_1_ORCL_20130510_DATAFILE_LVL1_10_05_2013 RECID = STAMP 47 = 815083522
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_1so9ac02_1_1_ORCL_20130510_DATAFILE_LVL1_10_05_2013 RECID = 48 STAMP = 815083522
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/1uo9ac0l_1_1 element of backup RECID = STAMP 50 = 815083541
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/1vo9ac0l_1_1 element of backup RECID = STAMP 51 = 815083541
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/21o9d0bi_1_1 backup RECID piece = 54 STAMP = 815169906
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/22o9d0bi_1_1 element of backup RECID = STAMP 53 = 815169906
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_23o9d0br_1_1_ORCL_20130511_DATAFILE_LVL1_11_05_2013 RECID = STAMP 55 = 815169915
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_24o9d0br_1_1_ORCL_20130511_DATAFILE_LVL1_11_05_2013 RECID = STAMP 56 = 815169917
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/26o9d0cj_1_1 element of backup RECID = STAMP 58 = 815169939
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/27o9d0cj_1_1 element of backup RECID = 59 STAMP = 815169939
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/29o9fknp_1_1 element of backup RECID = 62 STAMP = 815256313
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/2ao9fknp_1_1 backup RECID piece = 61 = 815256313 STAMP
    remove the item from backup
    handle=/U01/app/Oracle/product/11.2.0/Db_1/DBS/c-3171721304-20130516-00 element of backup RECID = 101 STAMP = 815601943
    remove the item from backup
    backup piece handle = / backup/RMAN_Backup/rman_bkp_3uo9vf2f_1_1_ORCL_20130518_DATAFILE_LVL1_18_05_2013 RECID = 117 STAMP = 815774800
    20 objects deleted

    RMAN-06207: WARNING: 2 items could not be removed for DISC due channels
    RMAN-06208: status do not match. Use the OVERLAP command to set status
    RMAN-06210: list of relevant objects
    RMAN-06211: =.
    RMAN-06212: filename/Type object Handle
    RMAN-06213: --------------- ---------------------------------------------------
    RMAN-06214: copy of the data /u01/app/oracle/product/11.2.0/db_1/dbs/snapcf_ORCLdr1.f file
    RMAN-06214: /u01/app/oracle/product/11.2.0/db_1/dbs/c-3171721304-20130514-00 piece of backup


    RMAN >
    RMAN >

    Complete recovery manager.
    -bash - $3.2

    Concerning
    Hitgon

    Published by: hitgon on May 20, 2013 02:09

    Published by: hitgon on May 20, 2013 02:15

    It contained a real data file? Or was it a backup controlfile? A backup controlfile may be outdated if another backup controlfile does not capture the same information it contains.

    Hemant K Collette

  • BACKUPS RMAN DELETE

    Hi all

    We backup 11203-db with rman (11203). One of our databases has been removed (by design). Now we have backups remains in the rman catalog I see when you set the appropriate dbid. As the PB in question no longer exists I cannot connect to the ddb and therefore cannot delete these backups.

    Is it possible to delete the catalog rman backups.

    Any help appreciated.

    AMAZON

    Hello

    • Use CHANGE ... UNCATALOG to delete the records in the catalog.

    ex:

    RMAN > Change backuppiece ' / u01/oracle/RMAN/mydb/mydb_user01_01.bak' uncatalog;

    Thank you

  • I can not remove when I delete the AutoComplete. Still other elements in there.

    Tried to use: tools, internet options, content, settings, delete the semi-automatic entered history.  Still does not at all.

    Try to use free CCleaner utility . Attention: USE ONLY THE CLEANING PART OF THIS PROGRAM. Don't USE TOOLS REGISTER. MS - MVP - Elephant Boy computers - don't panic!

  • Is it possible to remove massive revisions with the repository Manager

    Hello

    I use UCM 11 g.

    I'm planing to remove all revisions which have the ContentType "DataSheet." It's about 10,000 revisions. I start Manager repository and filtering all content ContentType "DataSheet."
    My problem is that I can delete only 200 items at once, cause Repository Manager shows me only the first 200 revisions. It is very time consuming.

    Is there another way to do this?

    THX
    Tobi

    Use check them...

    Describe your request to export to cath all 'data' in the balance sheet

    make sue that you choose the option for all revisions

    Then when you choose export in the Actions menu tick the checkbox to remove items after export

    In this way they will be deleted and you will always have laid hand upward of them in archives on the file system - so if you need you can restore.

    Tim

  • I have a problem with stop emails from the box fan to my email inbox. Please can you help me to permanently delete the email in the fan box to my account

    Please can help me with the removal of the emails from my Inbox my account permanently fan. Also the emails coming from mirandera, please I tried everything to remove these shippers and I have been in vain, that's why I ask you not now to help me get rid of these senders of emails. Thank you.

    Hi Rachel,

    Thank you for your response and keep us updated.

    Be assured that we will be standing your answer. If there are updates on the question, do not hesitate to let us know and we will follow up with you as soon as possible.

  • How to restore backup rman to the new host with the structure of the various files on windows?

    Here are the steps that I follow...

    1 oradim create new instance

    2 startup nomount pfile = 'C:\inittest.ora'

    3. restore conrolfile of 'c:\name.bak '.

    I found this file control point to the oradata folder as directed by the original host

    4. Alter database mount

    Mounted DB.

    5 restore database completed with error

    switch to the previous backup

    RMAN-00571: ==================================================

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

    RMAN-00571: ==================================================

    RMAN-03002: failure of the restore command at the 12:17:55 08/12/2014

    RMAN-06026: some targets not found - abandonment of restoration

    RMAN-06023: no backup or copy of the file 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

    So, it is possible to restore and recover the rman backup to the new host with the structure of different file...?

    Hello

    Try to rename the log file to roll forward online to the desired path on the destination server, and then open with resetlogs.

    SQL > alter database file rename ' G:\APP\ORADATA\HOOP\REDO01. JOURNAL "to"";

    Kind regards

    Shivananda

  • Behavior of abnormal (Tag Date and place of automatic backup) RMAN script

    Hi all

    I have 11 GR 1 material running on Sun SOLARIS 10.

    The parameter default RMAN for backup of control file is on DISK (format: u02/oracle/backup/rman/control/%F.ctl)


    I have the RMAN script following (L0.rman):
    Run {}
    allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    tag backup "${CURRENT_DATETIME}" additional 0 filesperset 3 format 'DB_%T_%U.dbf' database more archivelog;
    output channel ch1.
    }
    host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME) /';


    This is called by the following (L0.sh) script:
    #! / bin/bash
    CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
    export ORACLE_SID = EDWH
    export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
    mkdir/u02/oracle/backup/rman/$(echo $CURRENT_DATETIME)
    RMAN nocatalog target / cmdfile = L0.rman log = L0_EDWH_$ CURRENT_DATETIME.log


    The anomalies are as follows:

    1. the backupsets are created with a literal tag "${CURRENT_DATETIME}" instead of "201010051915" - why?
    FYI, the command 'host' at the bottom of L0.rman successfully copies the file in the right directory (/ u02/oracle/backup/rman/201010051915 /).

    2. after the backup finishes, the automatic backup for the control and spfile is taken on SBT_TAPE instead of DISK - why?

    Any help will be appreciated.

    1. well, this $CURRENT_DATETIME is variable shell, RMAN does not interpret it (she can't and doesn't have to.) HOST calls the external commands by spawning the shell in non-interactive mode and when placing the order for her, and since you have exported the variable is available to all processes having engineered and develop properly, then files are copied in the expected location. If you remove the '; CURRENT_DATETIME export"from your shell script, you will see files copied in/u02/oracle/backup rman / / because the variable will not be in the environment of the layed shell (it will be local to the script) and will expand to the empty string. You must pass $CURRENT_DATETIME to the RMAN script as a variable substitution so that the shell expands it before calling RMAN, like this:

    L0. RMAN: {code}
    Run {}
    allocate channels ch1 type SBT_TAPE parms 'ENV=(TDPO_OPTFILE=/opt/tivoli/tsm/client/oracle/bin64/tdpo.opt) ';
    backup format tag & 1 extra strength 0 filesperset 3 'DB_%T_%U.dbf' database archivelog;
    output channel ch1.
    }
    host ' cp /oracle/app/oracle/product/11.1.0/db_1/network/admin/tnsnames.ora/u02/oracle/backup/rman / $ CURRENT_DATETIME /';
    {code}
    L0.sh: {code}
    #! / bin/bash
    CURRENT_DATETIME = "$(date + 20 %y %m %d %H %M)»;) export CURRENT_DATETIME
    export ORACLE_SID = EDWH
    export ORACLE_HOME=/oracle/app/oracle/product/11.1.0/db_1
    mkdir/u02/oracle/backup/rman / $ CURRENT_DATETIME
    RMAN nocatalog target / cmdfile = L0.rman using $CURRENT_DATETIME log = L0_EDWH_$ CURRENT_DATETIME.log
    {code}

    Note the * & 1 * variable substitution in the RMAN script and * using * keyword in the RMAN command line.

    2. control file record is taken to the same media, that the last backup, this is normal. You can't "CONFIGURE CONTROLFILE AUTOBACKUP ON the DISC" or something like that, you can only enable or disable it and specify format for various types of devices. Default device type does not play here, you are precisely the configured default device type substitution tape backup.

  • delete the log file archive

    Hello
    I use oracle 10g on linux, I want to delete archive log file automatically, there is no way to do this.or can someone tell me scripts to do this.ur help on this is very appreciated

    Respect, s
    Umair Iqbal

    Hello

    Can you please let us know why you want to delete the log file archive?

    BTW, you can use RMAN to achieve by archiving log backup and delete the original file using the following command:

    Backup archivelog all delete input;
    

    Concerning

  • I accidentally delete the record microphone to sound property. sleekbook 14 tsb132tx

    help please, I accidentally delete the record microphone to sound property.

    where can I download the microphone for my sleekbook 14 B132tx TS.

    help please someone.

    Thanks in advance.

    Hello

    Do a right-click the speaker icon in the taskbar, then select recording devices.

    Right-click on an empty area of the next window and enter a tick against the "Show disabled devices" and "Show disconnected devices".

    If your microphone will now appear in the list of devices, right click, and then select activate.

    Kind regards

    DP - K

  • disadvantages of backup RMAN of DATAGUARD

    Hello

    What are the drawbacks, backup RMAN to the DG on production?


    is it appropriate to the RMAN BACKUP in DG?


    Thanks in advance!

    sachinpawan wrote:
    to provide data to test people, we will stop log apply, we have good communication...

    If you manually stop, then you will offset in standby mode. Here, you can not reach to take backup to standby with up-to-date data.
    or
    You can try that option as well, to enable archive transport & stop MRP fool the most recent data will not apply, then you can go for an archive backup. Apart from that I do not think that this option.

  • How to remove the old backup RMAN

    Hello Experts,

    Please English me to remove my old backups RMAN. We act in RMAN backup on a daily basis on the disc. you want to delete the previous day from the disk backup.

    Any help?

    Ideally if your backup is automatic, you need to add a line "delete noprompt obsolete device type disk;" at the end of backup scripts based on your retention policy clean the old not required for backups.

    HTH.

  • Do not lock - automate the deletion of backups RMAN old day after a success

    Hi all

    Admin: Do not lock this thread. I moved here the database instance based on the suggestion of another Member, and the question to this forum. If you want to lock a thread, lock one in the forum of the database, not this one.

    I am looking for a way to automate the deletion of backups RMAN old days only after the occurrence of a success. At the present time, I have daily backups of L0 via crontab, and I need to create a script that can tell if a successful backup is done, then delete the old L0 if it has. Any suggestions on how to start? I'm stuck in code to see if a successful backup has been performed.

    Oracle 11.2.0.3

    Exadata (4 nodes)

    Linux 5.10

    * a from database forum

    A backup is completed when the backup command is complete.

    You have two 'blocks execution' in your rman script.

    Put the DELETE OBSOLETE between the end of the last execution block and EXIT:

    OUTPUT CHANNEL fs1b;
    OUTPUT CHANNEL fs2b;
    OUTPUT CHANNEL fs3b;
    CHANNEL fs4b;
    CHANNEL fs5b;
    CHANNEL fs6b;
    CHANNEL fs7b;
    CHANNEL fs8b;

    }

    remove the backup noprompt obsolete;
    "exit";

    You also want to do some other household:

    cross-checking of backup;

    delete expired backup noprompt.

    overlap archivelog all;

    delete noprompt expired archivelog all;

  • RMAN will remove backups within the recovery window

    Salvation;


    I didn't have idea on recovery_window

    recovery_window = > number of days in which the backups must be kept for purposes of recovery


    Backups within the recovery window can be removed or

    RMAN will remove backups within the recovery window?

    If you issue a DELETE, rman cannot stop or prevent you. It will allow you to delete the backups, even the last backup taken 1 minute ago, even when there is no other backup.

    The retention window only to rman control * auto * deletion of backups - backups obsolete because they are beyond the retention window.

    Hemant K Collette

  • How to remove the definition of backups RMAN of SBT without access to the Court?

    Hello

    I have a restore with RMAN scenario where I have a controlfile with many information backup (many backups) around 100-200.

    The last backup occurred at the target on the JOB, but now I need to restore from the last backup that is taken (at the level of the disc) and in the other node, because we like to clone the production database.

    Then all the info controlfile rman metadata is 'dirty '.

    Normally I do the following:

    New target site:

    I restore the backup controlfile.

    Then:

    overlap backupset;

    delete noprompt expired backupset;

    Now the news of rman controlfile are removed.

    Now, I save my RMAN backup.

    Catalog starts by ' / backup/test1 / '.

    To complete this control register and catalog my file rman backups in this case a backup set.

    After that, I start my restore and recover commands.

    The problem I found is: because the backups were taken to SBT to the target site, but in this site I have not access to the SBT, the work of does ' t crosschek.

    How can I fix it to remove rman controlfile 'old' backups done sbt?

    Thank you very much

    Arturo

    V$ BACKUP_SET query and generate a list of commands 'CHANGE BACKUPSET '?

    Hemant K Collette

Maybe you are looking for