Remove the primary archive logs

DB version: 11.2
Platform: Solaris

In standby, the following is returned:
select max(sequence#) from v$archived_log where applied='YES';

28427
This means that since elementary school, I can safely remove all the newspapers at least up the 28426 sequence using archiving
delete noprompt archivelog until sequence = 28426 ; 
Right?

You can do it like that if you want.

I would like to use RMAN to do and put RMAN, so he can't delete logs not applied.

Inside my RMAN backup, I added:

delete noprompt ARCHIVELOG until TIME ' SYSDATE-4';

Your default is probably

CONFIGURE THE NONE ARCHIVELOG DELETION POLICY;

But you can set applied pending

Discover E10700-02 Chapter 11

11.3.2 RMAN Configurations to the primary database

CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;

Best regards

mseberg

Tags: Database

Similar Questions

  • How can I remove the automatic archiving on the outlook of acrobat add-in functionality?

    How can I remove the automatic archiving on the outlook of acrobat add-in functionality? We do not want our users archiving emails automatically.

    ID prefer to do with GPO

    Hi ewming111,

    The wizard provides only the UI to configure Acrobat itself. You're talking about the function is provided by the PDFMaker add-in.

    The preference is apparently (starting from a quick test) HKU\S-1-5-21-762979615-2031575299-929701000-51250\Software\Adobe\Acrobat\PDFMaker\10.0\Ou tlook\Synchronization\Outlook\Enabled: 0x00000000.

    You can deploy via GPO, using the function of register of the wizard, or any other method that you use to propagate the settings.

    Kind regards

    Nicos

  • Removal of disk archiving logs

    Hello
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
    PL/SQL Release 11.2.0.3.0 - Production
    "CORE     11.2.0.3.0     Production"
    TNS for 32-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    We are putting in place our backup strategy. After that the archived logs were
    saved, we must remove them after 7 days. Also the files on the disk.

    RMAN does not remove logs archived to disk. Or am I wrong?

    If so, please provide a sample script.

    Thank you!

    RMAN does not remove logs archived to disk. Or am I wrong?

    Yes, you are.

    Use the command what archivelog backup and delete what dose of database no need

    Backup archivelog all delete input;
    
  • backup and backup backupset input remove, remove THE newspaper archive?

    Hi all
    I'm kinda new to RMAN and I'm going through the book Oracle Press backup and restore.

    I'm a bit confused. I thought that when you run a database backup more archivelogs entry delete or backup backupset any input remove... it would have save can delete your directories of log_archive_dest_n archiving logs?

    For example, my settings are:

    db_recovery_file_dest/data5/oradata/flash_recovery_area
    Log_archive_dest_1 location = / oradata/innocuite6/testdb5
    location of LOG_ARCHIVE_DEST_10 = USE_DB_RECOVERY_FILE_DEST

    (log_archive_dest_(2-9) are not defined

    Now, when I did a backup with remove entry, I see a difference ini the table v$ flash_recovery_area_usage:

    Start:
    FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    -------------------- ------------------ ------------------------- ---------------
    CONTROL 0 FILE 0 0
    REDO LOG 0 0 0
    ARCHIVED JOURNAL 10.46 10.46 72
    BACKUP 25,84 PIECE 17,22 59
    COPY OF IMAGE 0 0 0
    JOURNAL OF THE FLASHBACK 0 0 0
    JOURNAL ARCHIVED FOREIGN 0 0 0


    Final:
    FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES
    -------------------- ------------------ ------------------------- ---------------
    CONTROL 0 FILE 0 0
    REDO LOG 0 0 0
    JOURNAL ARCHIVE.33.33 4
    BACKUP 25.42 PIECE 12.22 61
    COPY OF IMAGE 0 0 0
    JOURNAL OF THE FLASHBACK 0 0 0
    JOURNAL ARCHIVED FOREIGN 0 0 0



    However, when I watch/data6/oradata/testdb5

    All logs files .dbf files are there... nothing is deleted.

    If you have this model in place, with newspapers archive password area of flashback AND to another location... you have to write a script or manually go delete newspapers in the region to spare? If you give some tips on how to know what to delete? I thought, if... that RMAN would take care of the newspapers in all areas when you their saved and the flag 'remove entry '.

    Thanks in advance,

    Cayenne

    If you want to remove the archivelogs in destinations specified, you must issue "delete all entries. When the archivelogs backup RMAN, it backs up only one copy (of a destination) and "entry delete ' (not all) deletes only this copy, it does not touch the archivelogs in other destinations.
    You can remove the archivelogs explicitly (outside of a backup command) with "delete archivelog all; But you should not do this without a previous backup archivelog.

    Werner

  • Current archive log has been deleted, how to recover using the previous archive log?

    Hello

    My current log sequence #819 and it has been deleted and no other choice to get it back and I have previous newspapers archived with sequences #814 à 818.

    When I start my database is to show that the use ' MUST USE RESETLOGS or NORESETLOGS option of database open, then I used the command

    SQL > ALTER DATABASE OPEN RESETLOGS;
    ALTER DATABASE OPEN RESETLOGS
    *
    ERROR on line 1:
    ORA-01113: file 1 needs media recovery
    ORA-01110: data file 1: ' E:\APP\ADMINISTRATOR\ORADATA\ORCL\SYSTEM01. DBF'

    SQL > alter database recover;
    ALTER database recover
    *
    ERROR on line 1:
    ORA-00283: cool cancelled due to errors
    ORA-01610: recovery using BACKUP CONTROLFILE option must be
    SQL > alter database recovery using backup controlfile;
    change the database recovery using backup controlfile
    *
    ERROR on line 1:
    ORA-00279: change 8433746 September at 15/01/2013 19:51:59 needed to screw 1
    ORA-00289: suggestion:
    E:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2013_01_16\O1_MF_1_819_

    % U_. ARC
    ORA-00280: change 8433746 thread 1 is in sequence #819

    now, I don't have the log archiving with 819 sequence, I recover from 818. Please tell me how to do?

    Hello

    1. select * from v$log and see which log file is current. Query v$logfile to check physical file location belonging to current log group.
    2. Take bacup of your curent control file using copy/paste of your OS
    3. Issue following command in mount state
    recover database until cancel using backup controlfile
    4. When it finishes applying available archived logs, still it will ask for the location of archived logs which have not been applied, here provide path of current redo log file you got in first step. Here your recovery will finish after applying current redo log
    5.alter database open resetlogs.
    

    Salman

  • NET, updates not working do not, the last time that I removed net 1.1 (bad update) and reinstalled, cannot remove the net 4 logged as administrator? Connect said trust generic error

    IBM r52 x 86, xp sp3, clean install except for .net.

    updates will 1.1 2.0 or 4.0 (some) 10 bad.

    The last time I uninstalled all .net 1.1 and reran the updates for this problem on another processor.

    This time, add/remove doesn't let me delete 4.0 scope, connect said generic error of confidence.

    I only have 1 user, administrator and am logged on as administrator.

    Help please...

    I think that if all 1.1 .nets uninstalling and reinstalling will fix this.

    Thank you, David

    Hello

    1. What is the number of KB of the update that are impossible to install?

    2. What is the message exact error do you get when you try to install updates?

    I suggest to uninstall all versions of .net Framework completely from your computer by using the removal tool and then try to install .net updates the work of structure.

    See the link below:

    http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

    Hope this information is useful.

  • It is able to remove the primary views in windows media player? I have connected my Pc to my Ps3 and I don't want the records as 'rating' to appear.

    I want to just delete a certrain views primary.

    I don't know what you mean by "primary views."

    WMP help explains how to set up the columns that you see in your application.

    For example, if you right-click on a column heading in WMP it will offer you the opportunity to choose the columns , i.e. to select the properties that are displayed.  You will find it is better to move to the first details view [the drop-down list on the left of the search box].

  • RMAN not removed the old newspaper archive location disc ASM.

    Dear Oracle gurus

    Our platform
    OS: SUN SOLARIS10 64-bit
    DB: Oracle10g r2 10.2.0.4 64bits
    Architecture: 2 - no Oracle10g RAC with ASM configured for the data file and archivelog

    We have many available on my disk archiving log but when we perform the log backup archive using the following command

    RUN {}
    overlap archivelog all;
    backup as compressed backupset ' / location/%d_DB_%u_%s_%p.rman' all entered archivelog delete;
    }


    It has only removed the 1 month of archives newspapers only.

    that needs to removed the old archive logs using the rman. ?

    Concerning
    Hitesh Gondalia

    Published by: hitgon on November 17, 2011 21:42

    Try this one:

    CROSSCHECK ARCHIVELOG ALL;
    RUN {
      BACKUP AS COMPRESSED BACKUPSET
         FORMAT '/location/%d_db_%u_%s_%p.rman'
         ARCHIVELOG ALL DELETE INPUT;
    }
    DELETE NOPROMPT EXPIRED ARCHIVELOG ALL:
    DELETE NOPROMPT OBSOLETE:
    

    : p

  • RMAN-06820: WARNING: unable to archive the current log on the primary database

    I got the following exception when I try to backup the data files and the archivelogs on the physical by uisng RMAN standby database.

    RMAN-06820: WARNING: unable to archive the current log on the primary database

    Target ORACLE database error:

    ORA-17629: unable to connect to the remote database server

    ORA-17627: ORA-00942: table or view does not exist

    It's the backup script

    "

    connection target sys/oracle

    Configure controlfile autobackup on;

    Run {}

    nocfau together;

    allocate channel ch01 device type disc format ' / test/%U';

    allocate channel ch02 device type disc format ' / test/%U';

    backup database copy archivelog;

    backup copy current controlfile;

    }

    "

    And there is no error ora in the primary alert log.

    I was able to tnsping two server (primary/secondary) properly and could also primary of the remote login on standby db server and switch logfile. I read there is a very similar thread, but it has failed so I post again and hope I could get a few clues. Thank you.

    Hello again;

    Try to change this:

    connection target sys/oracle

    to something like this:

    RMAN target sys/password@PRIMARY auxiliary.

    Complete example:

    http://www.Visi.com/~mseberg/data_guard/duprman2.html

    Best regards

    mseberg

  • How to remove the log file archive

    HII,

    Currently, I am working on oracle 10 g 2 on windows server 2003.
    hard drive is almost full.



    When I run this command
    "REMOVE ALL EXPIRED ARCHIVE LOG THE ';

    It gives the message

    "indicates does not match any newspaper archive in the recovery catalog.



    How can I delete files from archive log?

    Concerning
    Vaibhav Dixit

    Yes you can.

    See you soon
    LIX.

  • Pull on the RMAN backup archive logs?

    Environment:

    Oracle 11.2.0.3 EE on Solaris

    Physical standby

    I have a gap of journal archive at the moment.  The missing archive logs have been saved on the primary and have not yet been transferred to waiting due to some maintenance work performed on the standby server.

    The database will be able to recognize that the missing archivelog files are in the RMAN backup files, restore them and send them to the update server standby for application?

    If not, will it restore manually, copy them to the standby server and save them for their application?

    Thanks a lot for your help!

    -gary

    Were the archivelogs deleted on the primary once they have been saved? If they have been deleted on the primary, then you can:

    1 manually transfer the backup to forward files

    2 replace the archivelog destination configured on the eve

    3 restart the managed recovery on the standby process, and the computer should be able to detect and apply the missing archivelogs.

    If they have not been deleted on the primary and are always available in the archivelog directory configured, then the process of Data Guard should be able to detect and automatically fix the gap.

    If you have a long interval archivelogs missing and you use + ASM, you can also try to use an incremental backup to roll forward the database pending, this article provides a good step by step: the steps for Rolling forward a standby database using RMAN incremental backup. (Doc ID 836986.1)

    Kind regards
    Oscar

  • ORA-27037 standby after you have moved the primary files

    I'm under Oracle 11.2 with a physical Data Guard configuration primary and standby on Solaris 10.  Asked me to move all the files belonging to the primary to a new mount point.  This includes the datafiles, tempfiles, ORLs, litigants and the controlfile.  On the main file system files were located on /u07 and are now on /u03.  Pending files are on /u07.

    Here's what I did:

    Cancel managed recovery and stop in standby mode.

    Judgment of the primary.

    A file system has copied on the primary /u07 to /u03.

    Control_files primary init.ora file parameter to point to the new location on /u03 and change log_archive_dest_state_2 = DEFER

    Renamed the primary spfile with a ".bak" then primary would begin by init.ora file.

    Elementary school:

    startup mount;

    Run A SQL script to rename the data files, tempfiles, ORLs and SRls to the new location on /u03.

    ALTER database open;

    Create spfile from pfile;

    stop immediately;

    start-up;  (so primary is now started with a spfile)

    Standby:

    Change these two lines in the init.ora file:

    *.db_file_name_convert='/U03/oradata/mydb/','/U07/oradata/mydb /'

    *.log_file_name_convert='/u03/oradata/MYDB/log','/u07/oradata/MYDB/log_ '

    Note: When Eve was created first, someone created the ORLs with a different name of the primary.  For example, major newspapers are named log1a, log2a and log3a.  The day before, they are named log_1a, log_2a and log_3a.

    Renamed the spfile Eve with a ".bak" then Eve would begin by init.ora file.

    bootable media;

    At this point, I have seen these errors in the standby alert log:

    Errors in the /oracle/diag/rdbms/mydb_stby/MYDB/trace/MYDB_lgwr_27569.trc file:

    ORA-00313: open failed for the members of Group 3, Journal of thread 1

    ORA-00312: wire 3 1 online journal: ' / u07/oradata/MYDB/log3a.dbf'

    ORA-27037: unable to get file status

    SVR4 error: 2: no such file or directory

    Additional information: 3

    ARC3: Started archiving

    ARC0: FROM PROCESS ARCH COMPLETE

    Here are my questions: why is the database ensures looking for online newspapers as they are named in the primary?  (Without the underline in the name)

    Should I have set STANDBY_FILE_MANAGEMENT = MANUAL on the primary and standby and renamed implementing the ORLs in the standby?

    What I ended up doing was closing the day before and rename the ORLs on the filesystem depending on how they are named on the primary.  Then, the day before, I did:

    startup mount;

    change retrieve in database managed automatic standby database using the current log file disconnect from the session;

    Then, on the primary, I did: alter system set log_archive_dest_state_2 = ENABLE;

    Everything looks OK, which means, newspapers are shipped from the primary to the standby and applied on the day before.

    I wonder, what would I have done differently to avoid first encountered this error?  Also, is my valid Eve at this point?  I see no problem in the primary alert log or journal alerts in mode standby.

    Mimi Miami wrote:

    Thank you, CKPT.  Now, I understand my misunderstanding with the log_file_name_convert parameter.  The parameter is used to convert file locations of the ORLs on standby, not the name of the file of the BDL himself, correct?  Knowing this, would it not imperative that the file is named game?  In other words, I can't have an ENT named log1a on the primary with his match on the eve log_1a appointed, right?

    Yes, setting gives way where to redirect the log files, but what happens if the mentioned directory does not exist on the database pending?

    As on previous day $ls ltr - / u07/oradata/MYDB/log_

    When there is no available pending directory as you have not mentioned in LOG_FIILE_NAME_CONVERT then it cannot translate the strings either.

    File names, you can have anything but basically LOG_FIILE_NAME_CONVERT is here to rename the log files if there are in different places.

  • Archive log deletion policy explanation

    How can the archived logs are deleted automatically by the database? I don't get it...

    http://docs.Oracle.com/CD/E11882_01/backup.112/e10642/rcmconfb.htm#CHDCFHBG

    I quote:

    Archived recovery logs can be deleted automatically by the database or RMAN command initiated by the user. Only newspapers in the field of quick recovery can be deleted automatically by the database.

    When that will happen? Without RMAN?

    Any ideas?

    Hello;

    If you use FRA as destination for you archive logs they will get deleted until the following conditions:

    1. If there is pressure of space in the flash recovery area (Oracle decides)

    2. what policy of removal of rman archive log is configured.

    3. when the recovery window retention policy is configured and when all unwanted archives are saved.

    Here, there is a short note which will help you understand:

    http://www.oraclefaq.NET/2007/10/18/archive-log-automatically-getting-deleted-from-Oracle-10G-database-with-OMF/

    This can also help:

    http://docs.Oracle.com/CD/B19306_01/backup.102/b14192/rpfbdb001.htm

    http://umardba.blogspot.com/2010/03/maintenance-of-archivelogs-on-standby.html

    Best regards

    mseberg

  • HP Slimline s3700y how to remove the Pocket Media DriveBay?

    How the guides do not describe how to REMOVE the Pocket Media Drivebay, what I must do to remove the CD/DVD drive.  The drivebay completely blocks access to the screws that must be removed so that the CD/DVD drive to slide.   Thanks in advance for browsing and/or in response.

    Please see this guide HP titled 'hard drive replacement' for instruction on how to remove the Pocket Media Drive. Step 2 in the section "Removing the primary hard drive" show clearly how to remove Media Player.

    Please send Bravo

  • Oracle database archive logs

    Hi all

    I searched the Oracle and Internet Documents. It is really hard to get information on the management of the archive Log, so I thought to post it here:

    Now, our Database 9i (EBS 11.5.x) was in no archive mode, so I allowed him to archive mode.

    Edit the pfile $ORACLE_HOME/admin/SID/pfile who will be /oracle/proddb/9.2.0/dbs/initPROD.ora

    ############################

    # Archive Log Destinations-benr(10/15/04)

    ############################

    Log_archive_dest_1 = ' location = / Uncordon / archive.

    log_archive_start = TRUE


    then connect to the database





    SQL > shutdown normal;

    SQL > startup mount exclusive;

    SQL > alter system set log_archive_start = TRUE scope = spfile;
    SQL > alter system set log_archive_dest_1='LOCATION= /oracle/archivelog '
    scope=both;
    SQL > alter archivelog database;
    SQL > CHANGE the START of the SYSTEM ARCHIVE LOG;
    SQL > alter database open;
    SQL > alter system archive log all;
    SQL > change the start of the archive log system;
    SQL > archive log start;


    The next day, I checked the location of archive and sparked an archive of 1 GB even if there is no activity on the database.

    root@test4:/oracle/archivelog>ls
    1_844.dbf   1_862.dbf   1_880.dbf   1_898.dbf   1_916.dbf   1_934.dbf
    1_845.dbf   1_863.dbf   1_881.dbf   1_899.dbf   1_917.dbf   1_935.dbf
    1_846.dbf   1_864.dbf   1_882.dbf   1_900.dbf   1_918.dbf   1_936.dbf
    1_847.dbf   1_865.dbf   1_883.dbf   1_901.dbf   1_919.dbf   1_937.dbf
    1_848.dbf   1_866.dbf   1_884.dbf   1_902.dbf   1_920.dbf   1_938.dbf
    1_849.dbf   1_867.dbf   1_885.dbf   1_903.dbf   1_921.dbf   1_939.dbf
    1_850.dbf   1_868.dbf   1_886.dbf   1_904.dbf   1_922.dbf   1_940.dbf
    1_851.dbf   1_869.dbf   1_887.dbf   1_905.dbf   1_923.dbf   1_941.dbf
    1_852.dbf   1_870.dbf   1_888.dbf   1_906.dbf   1_924.dbf   1_942.dbf
    1_853.dbf   1_871.dbf   1_889.dbf   1_907.dbf   1_925.dbf   1_943.dbf
    1_854.dbf   1_872.dbf   1_890.dbf   1_908.dbf   1_926.dbf   1_944.dbf
    1_855.dbf   1_873.dbf   1_891.dbf   1_909.dbf   1_927.dbf   1_945.dbf
    1_856.dbf   1_874.dbf   1_892.dbf   1_910.dbf   1_928.dbf   1_946.dbf
    1_857.dbf   1_875.dbf   1_893.dbf   1_911.dbf   1_929.dbf   1_947.dbf
    1_858.dbf   1_876.dbf   1_894.dbf   1_912.dbf   1_930.dbf   lost+found
    1_859.dbf   1_877.dbf   1_895.dbf   1_913.dbf   1_931.dbf   test.txt
    1_860.dbf   1_878.dbf   1_896.dbf   1_914.dbf   1_932.dbf
    1_861.dbf   1_879.dbf   1_897.dbf   1_915.dbf   1_933.dbf
    

    Question

    1. How can I delete old logs archiving without using RMAN?

    2. How should I know which Archives connects to keep and delete?

    3. is there a way to know why the database generates so many newspapers to check-in?

    Hello

    Yes, you must keep this archive. You can schedule the job to compress files to archive (record use of space) and move it to another place as a backup.

    You can schedule both COLD backup once a week, in this case it is scabies archive for a week.

    HTH

Maybe you are looking for

  • Why firefox prevents a x 1 adobe download

    I am trying to download a form, and I get a message that firefox prevented download of adobe. What should I do?

  • 5s iPhone won't charge or turn on.

    I had my 5s Iphone since August 2014 and am fully aware that my phone comes towards the end of its life cycle, but just need to work a few months until my upgrade later this year. For the last 3-4 months, my phone has acted upward. In the past it is;

  • Two monitors ThinkCentre M32

    Help please! Starting a new job and I was wondering if the Lenovo Thinkcentre M32 is capable of having two monitors. Or how to know. And if yes what cords do I use? Thank you

  • How to transfer a single RT for FPGA data

    I start working with the CRio-9012, I want to know how to transfer data from the FPGA RT, I found something about DMA FIFOS, however I notice that it is only possible to transfer pictures, I don't know if I'm doing something wrong. I have another que

  • impressions of email empty

    H/P printer and brother all two has worked well on the emails... replaced with Lexmark X 6650. prints on the internet very well... but the email print blank pages