Obsolete backups are not deleted

Hello

I am facing the following problem:

System: 11.2.0.1.0 not patched on Windows Server 2008 R2 (this is a customers machine and it has no interest in patching-_-)

RMAN> show all;

CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO 'F:\db_backup\rman\XXX\%F';
CONFIGURE DEVICE TYPE DISK PARALLELISM 1 BACKUP TYPE TO BACKUPSET; # default
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   'F:\db_backup\rman\XXX\backup_%U';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE COMPRESSION ALGORITHM 'BASIC' AS OF RELEASE 'DEFAULT' OPTIMIZE FOR LOAD TRUE ; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO 'D:\ORACLE\11.2.0\DATABASE\XXX.ORA';

NAMETYPEVALUE

------------------------------------ ----------- ------------------------------

control_file_record_keep_timeinteger7

My script for the work:

@echo off

SET ORACLE_HOME=D:\Oracle\11.2.0
SET ORACLE_SID=XXXX
SET NLS_LANG=GERMAN_GERMANY.WE8MSWIN1252
SET NLS_DATE_FORMAT=yyyy-mm-dd:hh24:mi:ss
SET BACKUPDIR=D:\db_backup\rman\XXX
SET SCRIPTDIR=D:\db_backup\scripts
SET LOGDIR=D:\db_backup\logs

%ORACLE_HOME%\bin\rman.exe target / cmdfile=%SCRIPTDIR%\rman_command.rman msglog %LOGDIR%\%ORACLE_SID%_backup.log

exit

The rman_command.rman file:

sql 'alter system archive log current';
crosscheck backup;
crosscheck archivelog all;
delete noprompt obsolete device type disk;
delete noprompt expired backup;
backup database plus archivelog delete input;
exit

So I want to keep only the backups that have less than 3 days. And the older then 3 days should be discarded. But my problem is, that sometimes rman stops just delete old backups. And keeps all old backups. I also noticed that overnight stop to delete older backups is the same when the database has rebounded. For example, if the database has rebounded on June 28, 2015, then after June 28, rman always delete the backups. So I have now all bakups since that data. What I also noticed that rman stops remove the actual backups but don't not continue delete the backup control file.

Is this a bug?

OK, I got it. There is a corruption of block in the database which prevents the full backup at some point in its execution.

Guys, thanks a lot for your help!

Tags: Database

Similar Questions

  • 'obsolete' backups do not being deleted

    Hello

    env: Oracle 10 g 2 on ASM, REHL 5.8 64bits

    Here is the configuration of RMAN:

    RMAN > show all.

    RMAN configuration parameters are:

    CONFIGURE RETENTION POLICY TO RECOVERY OF 7-DAY WINDOW;

    CONFIGURE BACKUP OPTIMIZATION # by default

    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 10 TYPE OF BACKUP BACKUPSET.

    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 CHANNEL DEVICE TYPE DISK MAXPIECESIZE 5 G;

    CONFIGURE MAXSETSIZE TO UNLIMITED; # by default

    CONFIGURE ENCRYPTION OF DATABASE # by default

    CONFIGURE THE ENCRYPTION ALGORITHM "AES128"; # by default

    CONFIGURE THE NONE ARCHIVELOG DELETION POLICY; # by default

    CONFIGURE SNAPSHOT CONTROLFILE NAME TO ' / app/oracle/product/10.2.0/dbee/dbs/snapcf_ypca.f'; # by default

    RMAN >

    I have (of the) script that delete obsolete backups (outside the window of 7 days recovery) as follows:

    = run through crontab =.

    RMAN target / catalog log ${RMANID}/${RMANPW}@${RMANSID} = ${TMPFILE} < < EOF

    REMOVE WINDOW OF 7 DAYS NOPROMPT OBSOLETE RECOVERY;

    cross-checking of backup;

    delete expired backup noprompt.

    Catalogue of resynchronization;

    output

    =============

    But what I see in the created log file by running the script that is today:

    not found obsolete backups

    And yesterday's paper shows that only "automatic" backup files have been deleted as follows:

    Remove the following obsolete backups and copies:

    Making key time filename/handle type

    -------------------- ------ ------------------ --------------------

    2100912 17 December 13 backup set

    Total backup, 2100918 17 December 13 /ora_backup/SID/autobackup/2013_12_17/o1_mf_s_834412085_9c14r6cs_.bkp

    2112202 18 December 13 of backup set

    Total backup, 2112204 18 December 13 /ora_backup/SID/autobackup/2013_12_18/o1_mf_s_834497354_9c3r0v1r_.bkp

    remove the item from backup

    backup handle=/ora_backup/SID/autobackup/2013_12_17/o1_mf_s_834412085_9c14r6cs_.bkp recid = 3063 stamp = 834412086 piece

    remove the item from backup

    backup handle=/ora_backup/SID/autobackup/2013_12_18/o1_mf_s_834497354_9c3r0v1r_.bkp recid = 3074 stamp = 834497355 piece

    2 objects deleted

    RMAN >

    And when I run after a command, I see a lot of obsolete backups (until December 18):

    RMAN > obsolete report.

    And when I run the same command that is in the script on the RMAN prompt, RMAN removes all obsolete backups without problem:

    RMAN > delete noprompt obsolete;

    Backups are stored on the disk and then moved to tape by the storage team. I'm only responsible for keeping backups of 7 days on the disk. I have to make sure that obsolete backups are deleted so that there is enough free space on the NAS share allocated for backups. Right now it's full of 71%.

    Why RMAN is not delete the rest of the files?

    Please notify.

    Best regards

    And it won't delete. It is a normal behavior of RMAN. Read carefully this line:

    A recovery window is a period of time that begins at the present time and extends backward in time to the point of recovery.

    Example, today is December 26, and your retention period is 7 days... If you go back 7 days, which would be December 19... RMAN will not delete backups because you need on 15 December (backup Sunday level 0) to make the recovery. Lets say if it removes all backups before December 19, then you cannot recover the database with only 19 December backup, you must certainly level 0 backup for backup, which is December 15. So once again,

    A recovery window is a period of time that begins at the present time and extends backward in time to the point of recovery.


    Make sure you read this link, this is a great example explaining your scenario:

    Recovery window


    http://Web.NJIT.edu/info/limpid/doc/backup.102/b14191/rcmconc1007.htm

  • Rsync backup does not delete files on the target

    Hello

    I have a disc on a Windows Server 2012 machine running DeltaCopy.

    I have a RN312 on OS 6.4.2 with a configured rsync backup to save the action (which is the root of the drive) to the local NAS.

    I then go into the settings - Advanced - tab and tick the "remove files deleted on the target."

    I also add ' / $RECYCLE. BIN' and ' / System Volume Information "as being excluded.

    The first is fine - there are a few errors but they are due to the System Volume Information I think that - even if its exclusion.

    But if I can delete a file on the source (the server) and run it again the file are not deleted on the target (SIN).

    Any suggestions?

    Connects here - https://www.sendspace.com/file/z90ynm

    Thank you
    A

    What version of Rsync using DeltaCopy? Have you tried to copy a new version of Rsync and other utilties of cygwin for example in DeltaCopy directory?

  • temporary internet files are not deleted

    How to fix... internet .temporary files are not deleted after cleaning disc running on windows 7, IE9

    Hello

    1. have there been recent changes to the system before the show?

    2 have you installed security software installed on your system?

    Method 1:

    Follow the link below, disable the security software and try to delete the temporary Internet files.

    Disable the anti-virus software

    http://Windows.Microsoft.com/en-us/Windows7/disable-antivirus-software

    Note: make sure that you enable the antivirus software once you have completed troubleshooting.

    Method 2:

    Follow the link, take possession of the file/folder and then try to delete temporary Internet files.

    Appropriating a file or a folder

    http://TechNet.Microsoft.com/en-us/library/cc753659.aspx

    Method 3:

    Follow the link below and do a Virus Scan and then try to delete the files.

    Check if it helps.

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Let us know if it helps.

  • Why Flash cookies are not deleted the first time I'm leaving Firefox?

    I am running XP, Firefox 16.0.1 and Flash Player 11.4.402.287 and have Firefox configured to 'Clear history of Firefox closing', with 'Cookies' (among others) checked "settings to erase history. I also have Flash Player configured to "Block all sites to store information on this computer."

    As I understand it, from Firefox 4 and Flash Player 10.3, have Firefox configured in this way should cause cookies Flash should be deleted out of Firefox. I also understand that even though I have Flash configured as I do, a list of websites that try to plant a cookie Flash is always recorded in the main settings.sol cookie.

    I noticed, however, that this list of empty Flash cookies is not removed the first time I have quit Firefox; on the contrary, the list is deleted after launch and then leaving Firefox again.

    Here is a step-by-step example:

    (1) Control Panel-> Flash Player-> storage tab-> storage Local to Site-> button settings confirm that the list is empty

    (2) output, that manage Flash Player settings

    (3) launch Firefox-> go to http://www.Hulu.com/ and click on a video to start playing

    (4) recovery Control Panel-> Flash Player-> storage-> Local website storage settings... tab button-> make sure that the list indicates http://www.Hulu.com/, 0 bytes, block

    (5) leave the Flash Player Settings Manager

    (6) Firefox exit

    (7) raise Control Panel-> Flash Player-> storage-> storage settings Local to Site-> NOTE THAT THE LIST SHOWS AGAIN http://www.Hulu.com/, 0 bytes, block

    (8) leave the Flash Player Settings Manager

    (9) restart Firefox

    (10) raise Control Panel-> Flash Player-> storage-> storage settings Local to Site-> NOTE THAT THE LIST SHOWS AGAIN http://www.Hulu.com/, 0 bytes, block

    (11) exit the Flash Player Settings Manager

    (12) exit Firefox

    (13) stimulus Control Panel-> Flash Player-> storage-> storage settings Local to Site-> NOTE THAT THE LIST IS now EMPTY

    Once again, my question is - why this list is not emptied the first time around?

    Safe mode disables plugins, I think not, so that you can put those aside for now.

    I suggest disable all non-essential extensions. We all tend to accrue to those who are not really necessary. You can do so here:

    Orange Firefox button or classic menu Tools > Modules > category: Extensions

    If the kernel extensions, you really like the cause of the same problem, then I think you will have to just live with it. Please note that Flash is followed correctly your bet as a block, so I don't think that something is actually stored.

  • Why files are not deleted in research appearing in the trash?

    I went to search - files/folders. JPG - and there were 6,000 points---(mon fils m'a dit de vérifier là)

    -When I play OKBridge - all the people on the bridge were there---(j'ai laissé un message OK à ce sujet)

    I used shift - delete to delete them all, but they are not in the trash - please help - KC222

    SHIFT + delete deletes the files selected without moving them to the trash. You will need to use data recovery software to recover these files.

    When a file is deleted in this way, it is actually marked as unused space on your hard drive. Windows can replace the files during normal use, making them unrecoverable. It is therefore important to use your computer as little as possible until what they are retrieved. There are several data recovery on the strong programs - do a search on the web for them.

    Finally a tip for the future, if all the data are important to support you.

  • Why my emails are not deleted the gmail server when I remove it from my Inbox?

    I use POP on Thunderbird version 31.7.0. I put the box "Leave Messages on server" and box "until I delete them. (Some articles say that the message is "until I have delete or move them from the Inbox" but my option just says "until I delete them".) It is perhaps a matter of version). When I delete a message from my Inbox, it is NOT deleted from the gmail Server inbox. This means that I have to delete them in two places, which is a pain, and I will probably try a different e-mail program if I can't solve this problem. Can you please help me in PLAIN English. I'm not a techie.

    I read the email in Thunderbird and then deleted. I compacted files. Then, I went into the Inbox, gmail and up-to-date, but email is still there. I did all the steps in the correct order or is there something else I'm missing.

  • Why my deleted messages are not deleted?

    TToday deleted all my emails on my phone returned not deleted. Why.

    Your e-mail account is set up as a POP account?

  • Messages are not deleted from the server

    There are thousands messages left on the server despite 'Leave massages on server' is not checked - I use POP on port 995

    What email provider? Google and Hotmail/Live? Outlook both ignore the instructions to delete the mail unless you change the setting in your account on their site.

  • Records related to the deleted email accounts are not deleted.

    Thunderbird (currently 24.6.0, Windows) current account settings window shows the folders the and RSS for RSS. I used to have 2 email accounts, but a long time ago I stopped using Thunderbird for them. When I removed the using the button 'delete account '. They were (and are) no longer appear.
    The other day, I went to transfer Thunderbird settings using MozBackup to another system. On this system, I could see the two accounts (including e-mail messages).
    Then, I checked in the Thunderbird profiles folder in Application Data. The accounts were still there.
    So my question is - how do I completely remove old email accounts. I read elsewhere that the e-mail account cannot be deleted. But the sub account in the profile folder folders can be deleted without causing other problems?

    Folder

    mail \server name
    IMAPMail\server name
    

    Delete server name records removes any residual mail account.

    Note the deletion of such a dossier for an active account is something of a disaster.

    See http://kb.mozillazine.org/Recovering_deleted_mail_accounts what you ask, but says file name a bit

  • Two favorites are not deleted when I clicked on delete then how do I get them off the computer?

    I tried to put them in another file and then remove them. Did not work. I tried dragging them anywhere I could including the search bar and the trash to see if that would go down my list of bookmarks and see if I could delete or remove them from these places. Nothing has worked. How can I get them off?

    Can you do a right click > delete from the menu or the toolbar?

    You can also try the library complete (Ctrl + Shift + b) dialog box.

  • Email IMAP are not deleted on the server

    I searched and found a few similar questions, but no real resolution. Just setup my Backflip with multiple IMAP e-mail accounts. In each case, if I delete an E-mail from the phone and then check with a client on the Office some time later, the emails that I deleted from the phone appear on the desktop and are still on the IMAP server. I also have a sync Corporate account by looking at an Exchange Server and works fine, Emails that is removed from the phone light up on the server. Please notify. Email management/removal is a major requirement of my phone.

    @TwistedNut,

    You can try the K9 email client. In some cases it runs better then the stock email app.

  • When updates are performed on the computer, they take a lot of space. Why the ancients are not deleted?

    All updates.

    The update uninstall method in Windows Vista is quite different from that in Windows XP.

    Uninstaller for each update folder no longer exists in Vista and the uninstall information is stored by the Volume Shadow Copy service.

    After each update, Volume Shadow Copy service backup only the updated files.

    So with Vista, it's a differential backup, rather than a full backup files for uninstall
    in Windows XP.

    This safeguard mechanism is used to save disk space.

    TaurArian [MVP] 2005-2010 - Update Services

  • having problems with the trash icon - documents are not deleted when deleting

    original title: problems with the trash icon

    I DELETED THE ICON TO THE TRASH BY ACCESS WHEN I PUT NOW THE TRASH DOESN'T DESSAPEAR WHEN ITS EMPTY

    Hello

    How to restore the Recycle Bin on the desktop under Vista
    http://www.Vistax64.com/tutorials/168608-Recycle-Bin-restore.html

    Hope this helps

  • LOB index are not deleted when delete a table

    Hello

    I dropped a table with a blob column by running 'drop table table_name ". When I try to recreate, Oracle complained that this object already exists.

    I checked dba_tables, the table disappeared. Then I checked dba_lobs, the lob index is still there with the name of the table and the name of the renamed lob segment in "BIN$ XIlKa53KaoDgRAAUTw8jtg == $0". I have to purge recyclebin. Now, I don't see any line in recyclebin, but business index is still in dba_lobs. As a result, I still can't recreate the table.

    How can I remove the index of business so that I can recreate the table? How am I supposed to drop a table with lob columns so that I no longer experience this problem?

    Thank you.

    user632535 wrote:
    It's the Oracle 10 g.

    I just found the solution. I have flashback the table before the fall, and then performed "drop table t purge. I am able to recreate the table now.

    I tried to imitate this problem, with some variations, 10.2.0.3 and couldn't get the anomaly appears - what is your exact version?

    I think you did your oil change and recreate your in the scheme of the difference, like the purge should make it impossible to do a "flashback table from before the fall." If this isn't the case, then something went wrong with the purge if he hid the table since the return of flame, but not did not fall out of the database.

    Concerning
    Jonathan Lewis
    http://jonathanlewis.WordPress.com
    http://www.jlcomp.demon.co.UK

    "The premature temptation to theories of shape on the lack of data is the scourge of our profession."
    Sherlock Holmes (Sir Arthur Conan Doyle) in "the Valley of fear."

Maybe you are looking for