Deleting old archivelogs

Hi,
Can anybody provide me a shell script which can delete 1 week old archivelogs?
Note : I am not using RMAN.
Thanks in advance...

version 10g
flashback on
archiving is maintain in flashback area
i see in alert.log that the warning about space.
i delete archive logs in flashback area manually.
but problem exists .
because it is test environment .i off the flashback and disable archiving.
i check V$FLASH_RECOVERY_AREA_USAGE it is still showing near 100% usage in which archiving file use nearly 84% while i delete all archive files manually.
Now i again want to enable archiving.
Extract from alert.log
ORACLE Instance orcl - Archival Error
Mon Jan 29 05:59:50 2007
ORA-16014: log 3 sequence# 160 not archived, no available destinations
ORA-00312: online log 3 thread 1: '/u/app/oracle/oradata/orcl/redo03.log'

Similar Messages

  • RMAN job not deleting old archivelogs

    I've setup an rman backup via dbconsole to backup db and archivelogs, for a retention period of 7 days, then delete obsolete. The database is 10GR2, running on windows 2008. For as yet unknown reasons, the cursed dbconsole quit working, and I haven't rebuilt it yet because I can't put this database in quiesce mode without pissing a lot of people off, so am using rman command line to check on backups etc.
    I checked today, no obsolete backups found after running crosscheck database, and no obsolete logs after running crosscheck archivelog all;
    Double checked recovery window and it is indeed 7 days, but there are archivelogs older than 7 days. When I run delete obsolete they dont get deleted, so I run delete archivelog all completed before 'sysdate - 7' and it deletes 314 old logs.
    Why is rman not seeing these old logs? I believe I have the backups and archivelogs set to the same criteria, yet backups are being deleted over 7 days.
    What am I missing here?
    ps. for all the trouble dbconsole gives me, I'm tempted to go with rman scripts in windows scheduled tasks and just forget about it.. </end rant>

    Hi,
    How many old those archvies are?
    did those archives are in your RMAN repository?
    might it may be old when you have not configured retention policy..
    or
    delete those old archive logs once, crosscheck them all and lets see if you face any issues. still.
    Thanks

  • Delete old and backed up archive log,

    Hi all,
    Am trying to modify our RMAN backup script to delete old and backed up archive logs off the disk.
    We run daily Incremental L0 or L1 backups, with 3 daily archive log backups. Currently we delete archive logs as they are backed up (backup archivelog all delete input). However, we are considering leaving x days worth of archive logs on disk, just in case, quick restore is needed (e.g. tablespace media recovery etc. etc.)
    For example,
    We can delete archive logs old tha n x (where x=no_days depending on database) by,
    delete archivelog until time 'sysdate-15';
    We can also delete archive logs that have been backed up to disk by,
    delete archivelog all backed up 1 times to disk;
    Questions,
    1) Why does 'backed up 1 times to disk' require the 'all' in the statement ?
    2) Is there any way to combine the 2 statements ? (backed up 1 times and older than x days ?). Just being a bit extra cautious to ensure that we have everything backed up. In real-world shouldn't be a problem, as we will be alerted to any backup failures, but trying to cater for the very worst situation.
    Thanks for your help and insight.

    Hi,
    Scratch the questions. Found the answer in another thread. Seems when I tried to combine the statements initally, I had a typo.
    It is now working as expected.
    Thanks and regards,

  • Recovery doesn't see old archivelog backups

    I am doing weekly full backups
    backup
    as compressed backupset
    channel=disk1
    full
    database
    include current controlfile
    plus archivelog
    delete all input;
    Point-in-time recovery worked fine using:
    set until scn $1 ;
    restore database;
    recover database delete archivelog;
    release channel c1;
    alter database open resetlogs;
    Untill today, when I tried recovering using backupset that is two weeks old.
    Restore database worked fine. But media recovery failed with errors like this:
    RMAN-03002: failure of recover command at 09/28/2006 21:06:58
    RMAN-06053: unable to perform media recovery because of missing log
    RMAN-06025: no backup of log thread 1 seq 10992 lowscn 200869768 found to restore
    RMAN-06025: no backup of log thread 1 seq 10991 lowscn 200868902 found to restore
    database recovery was unable to find archivelog backups.
    What was confusing is that 'list backup' would show me the missing backups as available:
    BS Key Size Device Type Elapsed Time Completion Time
    1653 497.50K DISK 00:00:01 17-SEP-06
    BP Key: 1868 Status: AVAILABLE Compressed: YES Tag: TAG2006_09_17
    Piece Name: /disk0/oradata/live/LIVE/backupset/2006_09_17/live_2006_09_17_archivelog_mohtfs3a_1_1.bck
    List of Archived Logs in backup set 1653
    Thrd Seq Low SCN Low Time Next SCN Next Time
    1 10992 200869768 17-SEP-06 200870470 17-SEP-06
    I tried all what I could think of to get rman to see those backups.
    Finally, I changed computer system time to two weeks ago - and recovery worked !
    Why is recovery ignoring old archivelog backups ? How to make recovery see those old files ? Is there a more elegant way to recover to a point in time that doesn't require me to change computer clock ? Using 'set until scn' is the standard way I do it but it seems to work only within a certain time frame.

    I don't think that's the problem. I use backupsets to create a copy of database on another machine. So, I never (knock on the wood) do recovery of the database that is being backed up.
    This is how the script looks like:
    set dbid 123123;
    startup nomount
    run
    allocate channel c1 device type disk;
    restore controlfile from autobackup maxdays = 100;
    alter database mount;
    set until scn 7878787;
    restore database;
    recover database delete archivelog; -- it fails when it gets to this phase, complaining about missing files
    release channel c1;
    alter database open resetlogs;
    }

  • Deleting old incarnation through RMAN

    Hi All,
    Could you please let me know how to delete old incranation and the backups related to that incarnation from RMAN for a particular database in Oracle 9i.
    Regards
    Harpreet Singh

    Hi,
    Thanks all for your help. I have achieved what I was looking for. I have deleted all the backups from the recovery catalog, according to you retention policy and also removed the unwanted incarnations from the recovery catalog. This is what I did:-
    crosscheck backup of database completed before 'sysdate - 35';
    crosscheck backup of archivelog all completed before 'sysdate -35';
    report obsolete recovery window of 35 days device type 'sbt';
    delete force noprompt obsolete recovery window of 35 days device type 'sbt';
    delete backup of database completed before 'sysdate-35';
    delete backup of archivelog all completed before 'sysdate-35';
    And then to remove the incarnations from the RMAN by logging in the RMAN database with the onwer of the recovery catalog:-
    RMAN> Delete from dbinc where dbinc_key=< dbinc_key>;
    MAY BE THIS CAN HELP SOMEONE IN THE FUTURE!!!!!!!!!!!!!!!!!!!!!!!
    Regards
    Harpreet Singh

  • Rman delete old file and recover

    Hi Friends,
    after full backup.
    we use below syntax to delete old file.
    delete noprompt archivelog until time '(SYSDATE - 10)';
    However, we get a message that file is used and delete failure. ramn stop process.
    my question:
    does the old archivelog file is deleted ot not?
    If the old archivelog file is delete, do we have any command like sql rollback to recover it?
    any other commane to recover mis comman in ramn.
    or we must recover it?
    Thanks,
    ji

    user589812 wrote:
    Hi Friends,
    after full backup.
    we use below syntax to delete old file.
    delete noprompt archivelog until time '(SYSDATE - 10)';
    However, we get a message that file is used and delete failure. ramn stop process.
    Please paste the error here.
    my question:
    does the old archivelog file is deleted ot not?
    If the old archivelog file is delete, do we have any command like sql rollback to recover it?
    any other commane to recover mis comman in ramn.
    or we must recover it?
    Thanks,
    jithere is no any command sort of rolback to recover archivelog,if you have backup of archivelog then you can restore
    archivelog from this archivelog backupset.
    RMAN>restore archivelog all
    Khurram

  • I have a 3g iphone and I need to know how to delete old photos from my phone!! I need the space but there is no way to delete the pictures!! Help!!!

    I have a 3g iPhone and I need to know how to delete old photos. Need to free up space and there is no clear way to delete these photos!! Can someone please let me know how to get rid of these pictures!!!! Help!!!

    There are a number of ways to delete pictures from the Camera Roll.  One is to open Camera Roll in the thumbnail view, tap the arrow button (top right), tap all the pictures you want to delete, tap the Delete button ant the bottom.  Photo Library pictures are deleted by unchecking Sync Photos on the Photos tab of your iTunes sync settings, followed by syncing your phone.

  • My Lacie external hard drive will not back up on Time Machine. Says there's not enough space. This has happened with every single external I've purchased. Thought TM was supposed to delete old backups??

    My Lacie External backed up on Time Machine after the first back up but now says there's not enough room. I thought TM deleted old back ups to save new versions. What am I doing wrong. This happens to me constantly. Every single external hard drive I've purchased for the MacBook Pro (5 of them) has not worked either initially or at the second back up. It either isn't formatted properly so I have to go to Genius bar to help me set up for the first back up, or after the first back up, it says there's not enough space and I have to go back to Genius Bar. Is there a way I can fix this on my own?

    I just purchased 2 external hardrives. a LaCie Minimus and a G Drive. Each 1 TB. The guy at Apple told me that would provide 2 good TM backups for me. My internal HD has 750 GB capacity, of which I'm using 700 GB. Perhaps the ratio is not great enough. I do wish they would have told me this before I purchased the two Bummmmer! I even had them format and get the first back-ups going because of issues I've had in the past. I also just bought a 750 GB for photos.
    So, I won't be able to buy another bigger external since I've just purchased 3. Ugh. Well, I'll just exclude some files and divide things up. Eventually, I just want my 20,000 iphotos on one of the 1TB externals, and a TM back-up on another so that iphoto will function once more. It really hates how many photos I have and is brutally punishing me for it.I seriously need to do some housecleaning!
    Thanks for the advice. Just moved from US to Australia last week and was hoping to upload a few photos and the domino effect has lead me to this. Just went to Genius Bar in Perth today and they told me how to reformat drive to transfer iphoto library over, but I got stuck at trying to back-up my TM.

  • Software Update Server - Deleting old updates to make space for new ones

    On Page 77 of the SystemImage_and_SW_Updatev10.4.pdf Apple recommends "deleting old updates to make space for new ones". I've looked and searched and yet to find a way to do this. The Server Admin interface and the command line options I've looked into don't appear to provide this option.
    So I actually tried stopping the server, moving the updates from /usr/share/swupd/html to another location, starting the server, the server wouldn't start, moving the files back again, the server still won't start.
    1. Does anyone know how you're supposed to "Delete old updates to make space for new ones"
    2. Does anyone have any suggestions as to how to get Software Update service running again?
    Power Mac G5   Mac OS X (10.4.7)  

    Does this article contain anything useful?
    (16738)

  • TS4009 How do I clean up mail in my icloud?  I have already deleted old mail on all devices, and emptied the junk & deleted files, but it still shows that I am at max on my icloud. What do I do to free up space? (photos & apps do not take up that much roo

    How do I clean up mail in my icloud?  I have already deleted old mail (from all my e-mail accounts) on all devices, and emptied the junk & deleted files, but it still shows that I am at max on my icloud. What do I do to free up space? (photos & apps do not take up that much room).  When I go to manage storage on any device & it will display how much room each program or app is using, it still shows that my e-mail is taking up the most room.  Is there a way to actually log on to the icloud server to manage what it stored there?  If so, how do I do it?  Also, on a related subject,  why does my mail not sync accross all devices?   ie. when I delete an email on one device, why do I still see it on all my other devices?  How can I change this?
    I have an iphone5, ipad2, ipod 4th gen, ipod 3rd gen, all running on my same apple id - but I have a PC not a Mac home computer - is this part of the problem?  Looking to upgrade to a Mac sometime this year...
    Thank-you for the help!

    beckyfromoz wrote:
    I do have the Time Capsule and spoke to Apple Care here in Sydney about it yesterday.  They told me my mail is not backed up there unless I create a special folder. I just tried ringing them again but Apple Care is closed today...
    Mail is backed up automatically. If you make backups automatically, open Mail application and then, open the Time Machine app (in /Applications/Utilities). You will access to the Time Machine interface, and you will be able to see all your mails of all the backups you have, and you will be able to restore them. It means that your mails are backed up onto the Time Capsule

  • HT4847 I can not delete old icloud back up from my old phone, keep receiving an error message "this back up can not be deleted because it's in use" it is not in use that phone is long gone!

    I can not delete old icloud back up from my old phone, keep receiving an error message "this back up can not be deleted because it's in use" it is not in use that phone is long gone!

    I have the same problem here and it wont let me do another back up or delete the old one.... Please help!!!! Anyone

  • How do i delete old apple id's

    How do I delete old apple id's?  I have a new Iphone 5 and every time I try to download a new app my old apple id is presented and asks for my old password which I can't remember.  So frustrating.  I have a new apple id that works so I need to delete this old aol id.  please help.  thanks.

    Go to settings and sign out of the old id and into the new one (covered in the manual)..

  • How do I create a new user, move my old files etc over, and delete old user

    This is why I think I need to.
    My computer got hit by lightening, and I may have created a new user account through netinfo rather than system preferences /accounts/+user. Mail used to open twice, but no longer. Now, Safari askes me for my keychain password twice, Spotlight can't find a folder on the computer when the search is restricted to folder and computer, though the folder is there and easyfind finds it, and when System Preferences/Spotlight/Privacy has the hard drive icon added, then deleted, Spotlight still does not find anything. (Yes, everything is backed up, on CD, DVD, and online.) Microsoft Tec Support says
    "Here is a summary of the key points of the case for your records.
    When you contacted us on August 8, you had requested assistance with Microsoft Office 2004, as your installation of the updates was unable to find the correct version of the software to update. After creating a New MAC User, we identified the issue to be with a corrupt MAC User account, and not a Microsoft issue. "
    I believe Microsoft. So, creating a new user was easy.
    But copying files uses up too much hard drive (movies, music), and may miss keychains, preferences, mail, address book, and documents. Since Spotlight no longer works, who knows what is happening. (Yes, I've repaired persmissions, and disk repair. No change). I'm using up my hard drive trying to move files to the new user. If I share files, or put them into a public folder, then delete the old user, will I still have the old user's files in the new user's account? It is not clear to me what I should be trying to do in order to create a new user, move my old files etc over, and delete old user. Thanks.
    My responses will be slow, because I have to drive to town to use the internet. I've ordered a new airport which may take care of that problem. SO be patient.

    Hey -
    I need to do the EXACT same thing, but have no idea how. Has anyone out there done this?
    My situation is a tad different..this is a new Mac (and I'm a brand new Mac user). Tons of querks occur under my original account (videos won't run, Safari won't support certain plug-ins). I spent 6 hours on the phone w/ 4 different Apple Reps and nobody could fix it. A rep finally looked at my MacBook Pro in person today. He created a new account just to see if that would work and under that new account, everything works perfectly fine (no querks, can view video). He tried switching a million settings in my original account to no avail.
    He said to create a new account (as he did) and move my files over to the new account and then go back to the original and delete it. How do you do this?! I can't figure it out! I've got a new account created, but of course it just has the default folders in it w/ the little red icons next to them! Thanks in advance!

  • How to delete old account, I can't log in due to - This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.

    How to delete old account, I can't log in due to error - This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.

    All good, I loved with AppStore and now everything seems to be back to normal.

  • How to delete old logs in SAP BI, what is the best way to go?

    Hi,
    below are the issues we are facing,
    when executing infopackage job is not getting triggred into source system.
    for activation DSO data it is taking huge time. At the time of seqential read to RSREQDONE table.
    I think this is due to huge logs in the staandard tables.
    What could be the reson behind this.. and let me know how to delete old logs.
    Thanks,
    Harish

    Hi,
    just carry out RSRV for DSO PSA tables and see if there is inconsistency available there in the PSA table.
    see if the change log and PSA deletion is happening regularly..else schedule same in PC
    check with basis there are certain jobs which needs to run regularly at certain frequency..
    http://www.erphowtos.com/guides-a-tutorials/doc_view/1041-how-to-delete-process-chain-logs-in-sap-bw.html
    http://www.erphowtos.com/guides-a-tutorials/doc_view/1040-periodic-maintenance-activities-on-sap-bw-best-practices.html
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02ba9e7-bb6f-2c10-09b4-e86b9fcbad41?QuickLink=index&overridelayout=true
    Thanks and regards
    Kiran

Maybe you are looking for

  • Text inversed in the smart form table

    Dear all, I'm new in ABAP and working on a smart form which has a cell in table shows an article description in both Arabic & English but the Arabic text appears in reversed sequence  in the print preview and after printing it shows like this ##### #

  • Downloaded word documents not being identified as originating from another computer

    Not sure if anyone else has noticed this or knows how to solve it. If you download a PDF file or Word file from the internet in Firefox 25.0, 26.0 or 27.0 (does not occur in 25.0.1) the file is not identified as originating from the internet and thus

  • How do I get a question answered if it isn't answered here?

    I posted the question "Some flash videos don't show except as admin" well over a week ago and no replies. How else can I get this resolved? I'm not inclined to commit to $40 unless it's my fault. If I'm doing something stupid, fine, I'll take the hit

  • KM/TREX search through links, it it possible?

    Hi, I'm asking for a search (using KM + TREX) in an specific folder (Folder A). This folder contains links below it. The search result is not bringing  files (file FB1 and file FC1) located in folders to which these links point to. Is there something

  • Autoextend on not working with ASM

    Hi, Autoextend on not working with ASM datafiles in version 10.2.0.4 on solaris platform. What are reasons behind the cause. Regards, Sakthi.