Purge the Archivelogs Dataguard

Hi all

11.2.0.3

How can I set up my database PRIMARY and STANDBY auto purge all archivelogs (both primary and standby) already applied in waiting?

While I don't have to worry about full archivelog in my FRA.

Thank you all,

pK

Hello

You should not care about people not confident in this respect.

See the blog post I linked above. There is a bug in 11.2 and there is a solution. And there is a request to check when the archivelogs recoverable or not.

I put in place that to several customers, where there is no 'archivelog delete' at all and Oracle manages the FRA. Just be sure that one of the following is executed frequently

either RMAN > sql "begin dbms_backup_restore.refreshagedfiles; end; « ; or rerun the CONFIGURE ARCHIVELOG

In any case, it is good to monitor the use of FRA of space, then you should be alerted if they are not purged as you want.

Kind regards

Franck.

Tags: Database

Similar Questions

  • Ye olde issue of 'delete the archivelogs standby '.

    11.2.0.2.0

    According to the note
    Configure RMAN to purge the archivelogs after application on hold [728053.1 ID]

    Oracle must remove the archive logs if we have deletion policy, the value "delete applied pending", I put on primary and standby. Monitoring alerts log we see

    "Deleted oracle managed file/path/to/year/archive/log".

    so we think cool, remove them automatically. It comes, when it removes it? Now my day is in sync, but my journal alerts is only sporadically showing my logs being removed that were applied for hours I can verify clearly.

    Oracle automatically removes the archivelogs only when he needs to free up space in the FRA (db_recovery_file_dest).

    Hemant K Collette

  • Save the list of all the archivelog

    Hi all

    9i

    RHEL5

    I am creating dataguard standby physical database using 469493.1.

    I've already run > restore database;

    Then the next step is >

    RMAN > backup from the list of the archivelog all;

    List of backup sets

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

    Time of accomplishment time BS key size Device Type

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

    354M 6 00:00 DISK: 22 JULY 14, 15

    BP key: 6 location: AVAILABLE Tag: TAG20150714T034252

    Part name: /u02/oradev/devdb/9.2.0/dbs/06qc0a5s_1_1

    List of newspapers archived on backup the value 6

    The next time that THRD Seq YVERT low low time next YVERT

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

    1 29 5977353607141 JULY 12, 15 5977353877566 JULY 13, 15

    1 30 5977353877566 13 JULY 15 5977354126757 JULY 13, 15

    1 31 5977354126757 13 JULY 15 5977354376204 JULY 13, 15

    1 32 5977354376204 13 JULY 15 5977354521053 JULY 14, 15

    1 33 5977354521053 14 JULY 15 5977354532621 JULY 14, 15

    RMAN > recover database until the sequence 34;

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

    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.

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

    RMAN-00558: error occurred during parsing of order entry

    RMAN-01005: syntax error: found ';': expected an a: 'thread '.

    RMAN-01007: file 35 line 1 column: entry standard

    Why the syntax error

    Help, please...

    Thank you very much

    JC

    You can go ahead and specify:

    RECOVER UP TO THE 34 THREAD 1 SEQUENCE DATABASE

    However, you normally would

    {

    SET UP 34 THREAD SEQUENCE 1.

    RECOVER THE DATABASE;

    }

    The SET until and RECOVER as separate orders.  See example in RMAN commands, 57-59

    Hemant K Collette

  • Purge the rman backup

    Hello, since the alert.log file find this error:

    Errors in the /u01/oratest/diag/rdbms/test/TEST1/trace/TEST1_arc3_25352.trc file:
    ORA-19809: limit exceeded for file recovery
    ORA-19804: cannot retrieve 12582912 bytes limit 59055800320 disk space
    ARC3: 19809 creation error archive log file ' DATA01'+.
    Sea 25 09:51:58 Jan 2012
    Errors in the /u01/oratest/diag/rdbms/test/TEST1/trace/TEST1_arc0_25306.trc file:
    ORA-19815: WARNING: 59055800320 bytes db_recovery_file_dest_size is 100.00% used and has 0 bytes remaining available.
    ************************************************************************
    You have choice to free up space in the recovery area:
    + 1. Consider changing the RMAN RETENTION POLICY. If you are using Data Guard +.
    then consider changing POLICY of DELETE ARCHIVELOG RMAN.
    + 2. Back up files on a tertiary device such as a tape using RMAN.
    SAFEGUARDING RECOVERY AREA command.
    + 3. Add disk space and increase the db_recovery_file_dest_size setting to +.
    reflect the new space.
    + 4. Delete unnecessary files by using the RMAN DELETE command. If operation +.
    the system control has been used to remove the files, and then use the RMAN DUPLICATION and
    Commands DELETE has EXPIRED.
    ************************************************************************
    Errors in the /u01/oratest/diag/rdbms/test/TEST1/trace/TEST1_arc0_25306.trc file:
    ORA-19809: limit exceeded for file recovery
    ORA-19804: cannot retrieve 12582912 bytes limit 59055800320 disk space
    ARC0: error creating 19809 archive log file ' DATA01'+.

    So I'm trying to purge the rman backup, but I have an error message:


    rman target = oratest@oraprdlnx1:~$ /+.
    Recovery Manager: release 11.2.0.1.0 - Production on sea Jan 25 09:47:30 2012
    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.
    connected to target database: TEST (DBID = 2044700519)

    + RMAN > show all; +.

    using the control file of the target instead of recovery catalog database
    RMAN settings for database with db_unique_name TEST are:
    CONFIGURE REDUNDANCY 1 RETENTION STRATEGY; # by default
    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 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/oratest/product/11.2.0/dbhome_1/dbs/snapcf_TEST1.f'; # by default

    + RMAN > allocate channel for maintenance of type; disc +.

    allocated channel: ORA_MAINT_DISK_1
    channel ORA_MAINT_DISK_1: SID = 237 instance = type of TEST1 = DISK

    + RMAN > crosscheck backup; +.

    "" element of verified backup: turned out to be "AVAILABLE"
    backup handle piece = RECID = 68 = 758320264 STAMP DATA01/test/autobackup/2011_08_04/s_758320263.794.758320265 +.
    Cut objects 1

    RMAN > delete obsolete; ** +

    RMAN retention policy apply to the order
    RMAN retention policy is set to 1 redundancy
    Remove the following obsolete backups and copies:
    Making key time filename/handle type
    -------------------- ------ ------------------ --------------------
    Backup Set 25 July 4, 11
    Backup total 25 4 July 11 1omgk64v_1_1
    Backup Set 26 July 4, 11
    Backup total 26 July 4, 11 1pmgk650_1_1
    Backup Set 24 July 4, 11
    Total backup, 24 4 July 11 1qmgk650_1_1
    Backup Set 21 July 4, 11
    Backup total 21 4 July 11 1rmgk650_1_1
    Backup Set 28 July 4, 11
    28 1vmgk69v_1_1 July 4, 11 total backup
    Save game 29 July 4, 11
    Backup total 29 July 4, 11 20mgk6a0_1_1
    Backup Set 30 July 4, 11
    Backup total 30 4 July 11 21mgk6a0_1_1
    Save game 31 July 4, 11
    Backup total 31 July 4, 11 22mgk6a0_1_1
    Backup Set 34 4 July 11
    Backup total 34 4 July 11 c-2044700519-20110704-07
    Backup Set 35 July 4, 11
    Total backup, 35 26mgk8ib_1_1 4 July 11
    Backup Set 36 4 July 11
    Backup total 36 4 July 11 c-2044700519-20110704-08
    Backup Set 41 4 July 11
    Backup total 41 4 July 11 28mgk94i_1_1
    Backup Set 42 4 July 11
    Backup total 42 4 July 11 29mgk94j_1_1
    Backup Set 37 July 4, 11
    Backup total 37 4 July 11 2amgk94j_1_1
    Backup Set 40 July 4, 11
    Backup total 40 July 4, 11 2bmgk94j_1_1
    Backup Set 38 July 4, 11
    Backup total 38 4 July 11 2cmgk95c_1_1
    Backup Set 39 July 4, 11
    Backup total 39 4 July 11 2dmgk95k_1_1
    Backup Set 43 July 4, 11
    Backup total 43 July 4, 11 c-2044700519-20110704-09
    Backup Set 46 4 July 11
    Backup total 46 4 July 11 2fmgk99f_1_1
    Backup Set 47 July 4, 11
    Backup total 47 4 July 11 2gmgk99g_1_1
    Backup Set 44 4 July 11
    Backup total 44 4 July 11 2hmgk99g_1_1
    Backup Set 48 4 July 11
    Backup total 48 4 July 11 2imgk99g_1_1
    Backup Set 45 4 July 11
    Backup total 45 4 July 11 2jmgk9a9_1_1
    Backup Set 50 4 July 11
    Backup total 50 4 July 11 2kmgk9aq_1_1
    Backup Set 49 July 4, 11
    Backup total 49 4 July 11 2lmgk9aq_1_1
    Backup Set 51 4 July 11
    51 4 July total backup has 11 c-2044700519-20110704-0
    Backup Set 56 4 July 11
    Total backup 56 2rmgk9qb_1_1 July 4, 11
    Backup Set 55 July 4, 11
    Backup total 55 4 July 11 2smgk9qb_1_1
    Backup Set 58 4 July 11
    Backup total 58 4 July 11 b c-2044700519-20110704-0
    Backup Set 60 4 July 11
    Total backup 60 2umgk9tb_1_1 July 4, 11
    Backup Set 61 4 July 11
    Backup total 61 4 July 11 2vmgk9tc_1_1
    Backs up the entire 62 4 July 11
    Backup total 62 4 July 11 30mgk9tc_1_1
    Backup Set 66 4 July 11
    Backup total 66 4 July 11 34mgk9ua_1_1
    Backs up the entire 65 4 July 11
    Backup total 65 4 July 11 35mgk9ua_1_1
    Backup Set 67 4 July 11
    Total backup, July 4, 11 c-2044700519-20110704-0 67C
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the delete command to the 25/01/2012 09:48:42
    RMAN-06091: any string allocated for maintenance (of a suitable type)

    How can I purge the db dest file recovery?

    Thank you!!!

    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-03002: failure of the delete command to the 25/01/2012 09:48:42
    RMAN-06091: any string allocated for maintenance (of a suitable type)

    There is a metalink note that talks about this error.

    Met RMAN-03002 and RMAN-06091 when deleting obsolete backups [567555.1 ID]
    RMAN could not remove obsolete in right Backupsets change Sbt_tape to disk and again Server [ID 1287755.1]

    HTH

    Kind regards
    Nagendra Chillale

    Published by: NC on January 25, 2012 17:00

  • In the Sierra how to purge the Macintosh HD

    I have a MacBook Pro (retina, 15 inches, early 2013) and am upgrading of El Cap of Sierra.

    Sierra storage tab "about this Mac" said that the Macintosh HD 70 GB which is purgeable.

    How to purge the Macintosh HD?

    http://www.Macworld.com/article/3101944/Macs/how-to-use-optimized-storage-in-Mac os - sierra.html

    If you look closely at the screenshot above, you can see a small white-with-gray-striped section. This is what Apple calls Purgeable, and it indicates that these are really old files that you possibly can archive, save it in the cloud or delete to free up storage space.

    You need to do the above manually

  • How to purge the windows live photo gallery database of missing files

    I recently moved most of my photos on a removable drive from SD. Of course, photo gallery can not find them and I can't point the Pb on a removable drive. Please tell us how do I purge the database of photo gallery of found files.

    Might be interesting to try to rename the Photo Live
    Gallery database file.

    The "Pictures.pd4, .pd5 or .pd6' (according to
    on the version of your photo gallery), database includes
    inches and metadata and is located at the following
    location.

    C:\Users\[username]\AppData\Local\Microsoft\
    Windows Photo Gallery\Pictures.pd4, .pd5.
    or .pd6

    The file ends with a advanced
    Research of pd4 pd5 and pd6.

    Reach... Start / Search / Advanced search.

    Check the box... "include not indexed, hidden,
    and the file system"enter pd4, pd5 pd6 in the
    Name field

    Rename the .pd5 .pd4 or pd6 file should
    clean your library.

    Try a click right/rename it...      Pictures.OLD
    If you are not satisfied with the results... you can
    Delete the new file and rename the OLD file
    Back to Pictures.pd4, .pd5 or .pd6.

    Photo Gallery will return to what it was the first
    time that you opened it. The gallery will have to re-
    complete and you may lose some tags.

  • How do you set up when TMS purge the information from its database?

    Hi all

    I would purge the Pb on my TMS server and cannot find information on how to do it.

    My server is encountering the limit of 4 GB for the DB SQL 2005 I have running.  I want to prevent the server from suffocation, so I pulled back the number of days THAT TMS stores for newspapers but he cannot find a way to initiate a purge so the DB can make room for new conferences.

    I know what's happening every night at midnight, but I prefer to be able to open the purge now.

    Is anyway to do this?  Is there a way to change the default time of calendar purge?

    Thanks for the help,

    Shawn

    You cannot manually start the jobs of the TMS product interfaces.  They will work based on the calendar automatically in the background.

    To see when they will work, Goto administrative tools-> active and look for the work listed as "purge the data expired in the tables.

    BTW, if you upgrade to SQL Express 2008 2012, the database limit is much higher (10 GB).  In addition, support for 2005 will be removed from newer versions of TMS little.

  • Because of the archivelogs had places in + FRA diskgroup

    Dear Sir.

    Because of the archivelogs had places in + FRA diskgroup

    Thanks in advance,

    IVW

    The quick recovery area is a directory managed by Oracle. Once configured, RMAN would use FRA as the default location for files backup and restore RMAN. Archivelogs and files of RMAN backup effective additional 1 used for the restoration of the database.

    Archivelogs do not need to be stored in FRA and you can specify a different location, but there are several advantages, for example, RMAN automatically identify and find the backup and restore files stored in FRA.

  • It is safe to delete the archivelogs FRA?

    Hello

    I'm running an Oracle 12 c database and running a backup script every week:

    RMAN > BACKUP of DATA PLUS ARCHIVELOG;

    The archivelog should therefore be connected, no? Today I got an ora-00257. The current solution is to resize the area of 6 GB to 20 GB backup. But I guess it will grow only if I do not say on the subject.

    So I searched this forum and the web to find an adequate solution. I found a thread that recommends the race

    RMAN > overlap archivelog all;

    RMAN > delete all. expired archivelog

    I didn't run it without being sure of what will be removed. So I ran the overlap and the suite:

    RMAN > list expired archivelog all;

    It does not work... After some research, I discovered that the archivelog must be safeguarded in accordance with the retention policy that is currently on the default 1. Since there are already 3 full backups, why are there no expired archivelogs?

    How to remove the log file archive that they suggest to remove some files archive and run the overlap, but is this safe to do? I mean, they must be saved, because I used the command backup so archivelog, right?

    I'm open to suggestions. (I thought affecting conservation status 1 week should be good, but maybe you guys have better solutions).

    You mixed outdated and obsolete.

    Please check the discussion Re: what is the difference between the obsolete backups RMAN expried vs?

  • Recover a database using the archivelogs

    We have restored a backup of cold base using avamar from one server to another. All data, controlfiles, pfiles files are in place right after restoration. It is a 9i database. All I have to do now is to recover the database to a point in time which is 3 days after the last cold backup. I have all necessary archivelogs that transferred to destination Ark. Here are the steps that I think we need to do to recover the database using the archivelogs until the point in time with RMAN:

    RUN {}

    BOOTABLE MEDIA;

    RECOVER THE DATABASE;

    ALTER DATABASE OPEN;

    }

    Please let me know if I'm missing something here.

    your third step is able, as sybrand_b said that your DB is already in a consistent state.

    The backup controlfile clause must notify oracle that SNA to controlfile is not common and needs recovery to bring back to the most recent State, is recommended to use the backup controlfile clause if you are recovering from an old controlfile or recreated controlfile.

    Mark post below to roll forward from a cold backup.

    Hemant Oracle DBA blog: RollForward from backup to cold

  • Thumbnails gone after having purged the cache!

    After serving my central cache in Bridge, my thumb nails have all disappeared.  I am new to the use of CC and a new MacBook Pro, but on my old unit with the PS when I want to purge the cache, I couldn't always display all the thumb nails.  Can not know whats going on.  Thanks for any help!

    [Ask the right help forum... Moved from non-technical Forum Lounge on deck forum... MOD]

    Hello

    The instructions to purge the cache deletes all files in the folder (in the last bridge).  They must rebuild if you open the file again in Bridge

  • RMAN is not the removal of the archivelogs

    Hi all

    When I look at my archivelogs I can see that there are still some very old (+ 2 months ago) archivelogs.

    If I look at RMAN with: list of the archivelogs all; they do not appear in RMAN-calatlog.

    My retention policy is a 5 day recovery window.

    Every Sunday, I take a backup L0 and during the week an incremental L1.

    I also save the archivelogs daily.

    After the backup, I run every day the following remove script

      ALLOCATE CHANNEL C1 TYPE DISK;
      CROSSCHECK BACKUP;
      CROSSCHECK BACKUPSET;
      CROSSCHECK ARCHIVELOG ALL;
      CROSSCHECK DATAFILECOPY ALL;
      DELETE NOPROMPT OBSOLETE; 
      DELETE NOPROMPT EXPIRED BACKUP;
    

    Is there a reason why RMAN will not remove the archivelogs in the file system, but remove them the rman catalog?

    Right now my archivelocation fills with archivelogs not referenced...

    Hello

    I don't understand why entries in the controlfile can crushed...

    If you don't want to delete this information automaticly from controlfile you can increate CONTROL_FILE_RECORD_KEEP_TIME value.Well when new record is come usable space will expand if there are not aged record.

    Already as seen above used records reach to upper limit for archivelog.So when the new record is coming, old folder will remove the controlfile. If the journal entry archive is older than CONTROL_FILE_RECORD_KEEP_TIME value. archivelog information is a candidate for the removal of controlfile.

    Yasin

  • Why I always get an error message on my cache in Bridge when I have already purged the central cache?

    I am having trouble in bridge with my cache. When I open the bridge I get the error message, 'the bridge has encountered a problem and cannot read the cache. Please try to purge central cache in the Cache preferences to correct the situation. "I've done this twice now and still get this error message pop up. In addition, my vertical thumbnails do not rotate automatically as they usually do the usual icon that indicates that a raw data file has been aligned in camera raw (to the right of the thumbnail) has disappeared and my rankings are not displayed to the top. I really need the functionality that I'm used I'm editing photos for customers. I'd like TO help! Thank you in advance!

    Answering my own question here, but if anyone else has this problem, try to hold Cmd-Opt-Shift when launching Bridge and choose Cache Purge. For some reason any purge the cache it worked for me vs go to Preferences.

  • If I purge the cache of RAW in Lightroom, it removes all changes applied to my photos?

    Hello everyone,

    I'm sorry maybe that this topic has already been discussed on the forum, I'm new. After reading a lot here, now I have questions !

    My 1. question is simple: if I purge the cache of RAW in Lightroom, it removes all changes applied to my photos?

    I thank ofr you your help.

    Dala

    My 1. question is simple: if I purge the cache of RAW in Lightroom, it removes all changes applied to my photos?

    # Your changes are stored in the Lightroom catalog file.

  • I'm unable to open the photo files in Bridge. I use a pc and receive the following notice in Adobe Bridge "bridge met a mind is impossible to read the cache. Please try to purge the central cachepreferencestocorrect the situation. "I have purged the cache

    I can't open photos in Bridge.  On my pc, I got a message saying that the bridge could not read the cache and suggested I purge the cache in the preferences.  I did and now cannot open some files photo 270 000.  Can anyone help?

    Hi Elsa

    Please see Troubleshooting of errors, freezes | Adobe Bridge | Windows, Mac OS and purge the cache when you reset preferences.

    Or you can follow the steps below.

    Windows: -.

    • Navigate to C:\Users\Username\AppData\Roaming\Adobe\Bridge Cs6
    • Rename the folder Cache Cache.Old

    Let us know if this helps

    Concerning

    ~ Assani

Maybe you are looking for