Archivelog Mode Deleting archive files

Hey,
I have been reading about archivelog mode for a while and understand the concept and how it works. The one thing that is still alluding me is the removal/deleting of old archivelog files and how long I need to keep the files.
I hear people saying "backup your archive files", how long do I need to keep the backed up archive files?
What this sounds like to me is "you better keep every archive file ever created by your database in order to restore". This sounds silly to me but thats how I am interpreting this. Can someone please help me understand this a bit better?
Thank

Archive logs are normally backed up when a database backup is done. Some shops might backup archive logs more or less frequently. You need to keep the backuped archive logs for as long a necessary to meet the recovery policies set forth by the business.
For example, for some database that I manage the business decision is to retain backups for an entire year. Other database have a smaller time frame of 2 to 6 months and some are only a week. So you can see that I do not keep every archive log ever created, I just keep the ones necessary to fulfil the recovery policies set by the business.

Similar Messages

  • How to delete Archived files from FTP

    HI,
    I am looking to delete Archived files from FTP Server, Can anybody have idea about this.
    Thanks,
    Ram

    To be frank, deletion of archived files is really a manual activity and is never in reality done by an interface
    so you have two options;
    1. log into the archived folder and manually delete archived files
    2. run a script in your file adapter - this way everytime the interface is triggered the files will be deleted - but then y do this.. instead just dont archive any files at all

  • Processing Mode = 'Delete'; Archive Faulty Source Files; Add Timestamp ?

    XI3.0 SPS 19
    For FTP Sender adapter, if Processing Mode is Delete, and you want to Archive Faulty Source Files with an added timestamp, it does not work (meaning it does not archive the faulty source file at all).
    Any suggestions?
    If I change the processing mode to Archive, it works. But my requirement is to archive only faulty files after adding timestamp and the source files should be deleted if processed.
    Thanks
    JB

    Hi james
    If you are using FCC or Modules then only Faulty files will be archived.
    The error that works with this should be a permanent error of file like field missing or compulsory field etc.
    if i understand correct you are trying to use Archive faulty messages in delete mode and you have FCC right ?
    I have also seen this behavior in delete mode it File adapter never archive. So it wont archive the faulty file as well.
    Thanks
    Gaurav

  • Archivelog Mode / init.ora file

    Hi,
    Maybe someone can help me out. I am presently trying to set up a dev server that has 3 or 4 databases on it. The first database is installed by the Oracle installation kit. The 2nd one that I am now trying to configure is giving me the following error: Ora-01126: database must be mounted EXCLUSIVE and not open for this operation. I am also setting it up for archiving.
    When I do a SELECT * from V$database; the answer comes back that it is in noarchivelog mode. I even edited the init.ora file in both the pfile folder and the ora81/database folder and yet the answer is still the same. I even rebooted it with the same results. I understand that the database is in exclusive mode by default. Does this have anything to do with Parrelizm (spelling). I tried altering the database to archivelog mode but with no results.
    Any ideas? Im at a loss.
    Thanks for your time.
    Al

    Hi Al,
    try to startup the db with startup mount or startup read only and try
    the alter command again.
    Normally it should work then!
    Tobias

  • Deleting archived files

    I am not able to delete any files in my archive. I keep getting an "error please try again message." I moved all my files to the archive because I'm over my limit but I'm not able to actually delete any of them.

    Thanks, Ken. I had been trying to clear my archive for a few days, and then
    about 2 hours after I made that post it finally cleared out. No clear
    indication why. Thanks for looking into it.
    On Sun, Sep 7, 2014 at 2:32 PM, Ken G. Rice <[email protected]>

  • AAUGHH!!! Accidentally deleted archive files on external hard drive!!

    In trying to back up important archive files from one external hard drive to another, I accidentally deleted them!! Here's how it happened: A folder in XHD1 contained archive files from the past four years. I wanted to copy them to XHD2. But instead of dragging the Archive folder from XHD1 to XHD2, I accidentally dragged the Archive folder (which only contained 1 file) from XHD2 to XHD1. So, I now have two Archive folders on each XHD, both containing only 1 file instead of hundreds of important archive files. So far I've tried Time Machine (no luck, it's only set up for my computer), and I've tried "Undo Copy of Archive" under Edit in the Finder menu. Is there any other way to retrieve those files? I haven't emptied Trash, if that means anything. Please, HELP

    situations like this are why you should back up all your data, not just the main drive. the only way you can maybe recover those files now is by using data recovery software like [Data rescue II|http://www.searchbling.net/?c=91&q=datarescueII] or [FileSalvage|http://www.searchbling.net/?c=91&q=filesalvage]. you should do it asap to maximize the chance of successful recovery.

  • Deleting archive files

    Hi gurus,
    we have been archived pi messages and we can see this with t-code al11. We would like to physically delete this files. How can we do that?
    Kind Regards,
    PM

    Hi Peter,
                      Do you possess administrative rights to install software in your system? If yes please download the WINSCP software from this link http://winscp.net/eng/download.php
    After you install the software, consult the SAP logon pad and put server details of your PI server in WINSCP configuration. Put port number as 22.
    Request your SAP BASIS OS level team to provide you with username and password to login to the PI server at Operating system level. with WINSCP you can copy, move,create and delete files in the PI server. WINSCP acts as a FTP bridge between your system and PI server.
    If you do not have administrative privileges. You need to write scripts or batch files. If operating system in PI server is unix/linux use this link http://www.unix.com/shell-programming-scripting/24911-how-delete-files-unix-using-shell-script.html
    to write shell scripts to delete files. Request your basis team to copy the script to server and execute it once.
    If your operating system is windows then use this link http://stackoverflow.com/questions/51054/batch-file-to-delete-files-older-than-n-days. Request your basis team to copy the batch to server and execute it once.
    Finally you can use the feature "Defining Operating System Commands Before/After Processing" in File sender or receiver communication channel configuration settings. Here you can set the command to execute shell scripts or batch files which will delete old files during each  instance of running the scenario. For more information on this technique try these links
    Executing Unix shell script using Operating System Command in XI
    http://help.sap.com/saphelp_nwpi71/helpdata/en/44/556cb799c93677e10000000a114a6b/frameset.htm
    https://wiki.sdn.sap.com/wiki/display/XI/SAP%20XI%20File%20Adapter%20OS%20Command%20Line%20Feature
    Glimpse at OS Command: Yet Another Scenario
    Hope this solves your problem.
    regards
    Anupam

  • Managing assets in Creative Cloud - deleting archived files

    I have used up nearly all of my 20GB of Creative Cloud storage. However, when looking in Finder, I notice that I really only have about 6GB in the folder. Turns out, CC archives files, which is great in the event that I lose a file on a hard drive or a file get corrupted. I'd be able to restore from the archive. However, all those archive files take up a lot of space. I found out how to delete the archive files using the web based Manage Assets. However, it won't let me SHIFT select. I have to actually click each one, one at a time. I have over 3500 archive files. That will take me 20-30 minutes to do this.
    Is there a better way to delete the archive files, other than DELETE ALL ARCHIVES?
    Trevor Ward
    www.trevorwardphotography.com

    May be, I want delete file psd in Creative Cloud storage in Brackets but i don't know. Can you help me?

  • Recovery of table with deleted archived file

    Hi all,
    long back I had created a table. Recently one user has dropped the table by mistake. When I am looking for the archived file, I saw that, I have only file no 5,6 and 7 but file no. 1 and 2 are missing. Because of that reason, I am unable to recover that table. If anyone knows any method by which I can recover the table then please let me know.
    Thanks and Warm Regards,
    Baishali

    Hi,
    What is the database version?
    How did you know that the table is stored in files 1, 2 and 3? If you have no backup of those files and/or a recent database backup (assuming that the table is stored in those files), then it is not possible to recover the data.
    Oracle® Database Backup and Recovery Basics
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/toc.htm
    Oracle® Database Backup and Recovery Advanced User's Guide
    http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/toc.htm
    Do you have flashback enabled? If yes, then please refer to:
    Using Flashback Drop and Managing the Recycle Bin
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/tables.htm#ADMIN01511
    Regards,
    Hussein

  • Deleted archive files during the datafile offline period

    Dear Gurus
    I want to report a mishap that happened in one of our system.
    I made one of the data files x01.dbf offline(the only datafile for that tablespace say X )
    Now unfortunately i deleted the archives during the period the datafile was offline ..
    Now it is not letting me do any operation like any ddl operation ..
    How can I restore the database back to normal .
    Thanks in advance
    abhi

    Hi again,
    Dear GuruOh la, I'm not a guru, just an old oracle newwbie!
    I did not understand what was that 7 error game :)Lesson learned: do not try to translate obscure French stuff :-)
    About your problem, if this does not work, you have only one possibility: drop it. If the drop fails you'll have to bounce the database in order to do that.
    If you have to "recover" from the tablespace loss, you'll have to do some TSPITR (Tablespace Point In Time Recovery).
    HTH,
    Yoann.

  • Delete MDM 2.0 archive files

    Hi MDM gurus,
    how is it possible to delete archived repositories.
    We're using a Linux-Server. So do I have to delete archive files via command line ... or is it possible to delete archives via MDM Console?
    Deleting archive files shouldn't make any problems, right?
    Reason is that we need space on the harddisk.
    Thanks a lot in advance,
    Best regards,
    Henning

    Hello Henning,
    I have to delete archive files via command line
    Yes, you have to delete via command line.
    Just follow the path as given below:
    C:\Program Files\SAP MDM 5.5\Server\Archives
    Under the Archives folder, you can delete the respective archive files (.a2a files).
    Note: Installation directory may difer as per your MDM installation directory.
    is it possible to delete archives via MDM Console?
    No, it is note possible via MDM Console.
    I hope this will clear your doubt.
    TNR,
    Saurabh...

  • Manual delete archived log files

    Because we don't have RMAN in our development server, I need to use manual operation to delete all archived logs. Is my procedure correct and safe?
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    ALTER DATABASE NOARCHIVELOG;
    EXITRun OS command to manually delete archived log files:
    rm /oradata/arch/*
    Login to sqlplus
    SHUTDOWN IMMEDIATE
    STARTUP MOUNT
    ALTER DATABASE ARCHIVELOG;
    STARTUP OPENThanks!

    linuxos wrote:
    Oh I suppose RMAN need to be configured somthing before use. I tried it, and find no pre-requisite is required. Thanks!
    If the archives are deleted manually in open mode, how can Oracle match the archived logs' retention policy? Does Oracle store the archived logs in data dictionary?While you can delete archivelogs manually any time you want, you should let rman manage them with appropriate rman commands, preferably in a script that you schedule for regular execution.
    Some of your questions lead me to question if you understand that archivelogs are not actively open by the database, and they technically are not part of the database. They are simply a series of "offline" copies of the online redo logs. They are written to once, when an online redo is being archived, then they just sit there until needed for a recovery.

  • How do i delete archive log files manually?

    My db is running in oracle 10.2.0.4. somehow, the RMAN command is not deleting archived backup files. I need to delete those files manually at os level. how do i find till which archivelog files are backed up through RMAN?

    RMAN> connect target
    connected to target database: INVENT (DBID=1001824944)
    using target database control file instead of recovery catalog
    RMAN> show all;
    RMAN configuration parameters are:
    CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    CONFIGURE BACKUP OPTIMIZATION OFF; # default
    CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
    CONFIGURE CONTROLFILE AUTOBACKUP OFF; # default
    CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
    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 MAXSETSIZE TO UNLIMITED; # default
    CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
    CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
    CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
    CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/ora/app/oracle/product/10.2.0/db_1/dbs/snapcf_INVENT.f'; # default
    RMAN>
    Here is the commands....
    connect target;
    run
    allocate channel t1 device type disk format /target/ret/%U';
    set command id to 'L0 Backup';
    delete noprompt obsolete;
    backup incremental level 0 as compressed backupset database;
    release channel t1;
    connect target;
    run
    allocate channel t1 device type disk format /target/ret/%U';
    set command id to 'L1 Backup';
    delete noprompt obsolete;
    backup incremental level 1 as compressed backupset database;
    release channel t1;
    }

  • How to setup oracle database to archivelog mode and auto delete ?

    Oracle 11g R2
    - How to setup database to archive log mode and have oracle only save 24 hours of archive logs
    and delete the rest. So at any given time I will have only 24 hours of archive log and not more.
    So only 1 day of archive logs.
    - Let me know the database parameters I need to setup to accomplish this.
    - I don't want to use the RMAN
    - I am not setting up the database to archive log mode for recovery purpose. I am setting up archive log mode
    so we can use the log miner tool to dig up achives to see log activity for any performance & tuning.
    Edited by: johnpau2013 on May 9, 2012 6:09 PM

    johnpau2013 wrote:
    Thanks everyone for there responses.
    I need to rephrase and explain everyone as what I wanted to do exactly. This might help everyone understand and suggest me.
    We have oracle database 11g r2. Its a test database. Nothing is critical. We use EXPDP utility to backup the entire database every night. Which is enough for us to recover incase something happens. Even if we loose some data. That's fine.
    We are testing our web application on this oracle test database for performance & tuning.
    One thing we have noticed is that the redo logs are switching very frequently. 50MB each log file and there are 5 logs. each log switches every 40 seconds. So we wanted to see what is getting written in this redo logs. We wanted to use the LOG MINER tool in OEM to read the logs. It needed our database to be setup in archive log mode. So the log miner can read the archive logs and show us the sql's within the archive logs.
    Now when we setup the archive log mode on our database. By default the archive logs destination was set to flash recovery area ( may be oracle default archive log location is flash recovery area folder).
    We have setup the db_recovery_file_dest_size to 100GB. Now within 2 days we have filled up the flash recovery area folder. Database was frozen. Then we realized that its because oracle couldn't write archive logs. Because it reached the 100GB. Then we physically deleted files in the flash recovery area folder. Thinking it would help us start the frozen oracle database. But it didn't . The we realized that we are doing something wrong. As Oracle does not know that at OS level we deleted the files. Then temporarily we changed the db_recovery_file_dest_size to 130GB and were able to start the oracle database. Later we turned OFF the archive log mode.
    Being a rookie DBA we would have not read something properly.
    Finally:
    We wanted to know how to always keep only 1 day of archive logs (only for our performance tuning ) and not more than that. All we need this 1 day of archive logs is to use the log miner to read them. Backup is NOT our priority here. Only be able to read the archive logs from LOG MINER is PRIORITY.
    Correct me if I am wrong.Okay, so its making much more sense now, thanks for explaining your requirement.
    Database won't honor anything that you would do over the o/s without telling it. Your deletion of the archive log from the o/s location is NOT updated in the control file of the database and that's why, even when you had deleted the entire 100GB , from the db perspective, the space was still marked as used. This is the same which would happen even if you would increase the space from 100gb to whatever size as well. To delete the space, you would need to update the database's control file and that you can do from RMAN using its two commands , crosscheck backup following with deleted expired backup . The first command would find that which database backup files are NOT on the o/s which are shown in the control file and would mark all of them as expired. The second command would simply delete those expired files. This would update the control file and you would have your 100gb or whatever space, given back to you.
    To keep the archive logs of just one day, set up that Retention Policy for RMAN to either number of copies using the Redundancy option(default and set to 1) or Recovery Window. I believe for you Redundancy would be a suitable choice but you can have a read and play around with it. Setting it up would mark the files as Obsoleted and finally, you can write a small RMAN script to delete those obsoleted files.
    Now, what I don't understand is that why you want to keep on generating the archive logs just for the log miner? If you would have generated them once and figure out the reason for extensive redo generation(did you try increasing the redo log file size, 50mb seems to be smallish) , I don't think that there is any reason to keep on generating the archive logs still .
    And last part, for your question asked about that whether we can use RMAN to put the db in the archive log and is it a backup tool, yes and yes.
    HTH
    Aman....

  • Non Archivelog Database- Undo Data files Deleted-How to Open Database ??

    I am doing some test in Lab server.
    Unforunately Undo Tablespace datafiles are deleted from the server.
    Database is running in No archivelog Mode and I don't have any any type of Backup.
    Last one week, i was doing only read only work with database. So Not really concern how much i will loose.
    The biggest worry is How can I open the database with existing datafiles ????
    Regards ,
    Sumit
    Edited by: Sumit2 on Aug 27, 2009 12:57 PM

    If any active transaction or data needed by any of the session for rollback then it will be difficult to recover those transaction and your database data will be in inconsistent state. As you were doing only read only activity you can safely recover the database.
    just comment undo tablespace and undomanagement parameters init.ora file and restart the database.
    Once database is up create new undo tablespace and assigning it as default undo tablesapce tablespace.

Maybe you are looking for

  • Photoshop CS4 - Application Error

    I just installed the CS4 Creative Suite 4. Everytime i try to launch photoshop cs4 i recieve an "Photoshop.exe Application Error." This error refferences 0x6963561b and that memory cannot be read at 0x0000008c. Can anyone please help me with this?? I

  • Can We Create New Categories and Folders?

    I hate having all of my apps piled up in the "ALL" category.  Can we create new categories such as "Business Apps" or "Education" in order to stay organized? If not can we at least create folders within the existing catefories? Solved! Go to Solution

  • How to find how many cursors are opend for application user

    Hi all, how to find out how many cursors are opend for application user and how many are opend for database user Regards, RM

  • Adobe CC Application Maxes out Network Capacity

    Hi, We are deploying the Creative Cloud applications to around 150 Mac OS users, and are having some very bad network issues when we attempt to update more than one person at a time. Basically, we have a 100M pipe, and we're seeing it MAX OUT COMPLET

  • Amazon Indesign Plugin Question

    Apparently this plugin only works in CS6 Does it work well enough for me to back up my files from CC and buy (AGAIN) CS6? Is anybody just delighted with this plugin? Is there a way of creating a Kindle ebook without it when my files are all in indesi