Thanks for info. If I want to remove any archive log old than 3 days. How to do it?
Main Topics
Browse All TopicsIs there anyway to remove any old archive log files in ASM with sqlplus login as sys?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
fluglash is correct, use RMAN to maintain archive logs on ASM. There really is no other option unless you move your archive destinations to regular disks, then you can use OS commands.
Make sure you have configured a retention policy. The RMAN delete archivelog command will use that to decide what it deletes and what it preserves.
To see or set a retention policy use:
rman target /
RMAN> show all;
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 30 DAYS;
etc.
-- To delete the archive logs that are not required for that recovery window..
RMAN> delete archivelog all;
-- However, I prefer to be very careful and paranoid with archivelogs, so I want to have multiple backups
-- So prior to deleting, make sure to backup
RMAN> backup archivelog all;
RMAN> delete archivelog all;
Or a shortcut that will delete each log as it is backed up:
RMAN> backup archivelog all delete all input;
11g has an new archivelog retention policy that you can set, but you are running 10g so that is not an option.
To ensure multiple backups, I usually do:
RMAN> delete archivelog all backed up 3 times to sbt;
-- or
RMAN> delete archivelog all backed up 3 times to disk;
mrjoltcola,
Thanks a lot. I was able to remove the archive log remotely. Great. One more question, is there any way to remove them silently? Now something like
---------------
Do you really want to delete the above objects (enter YES or NO)? yes
---------------
Really need human intervention. Thanks in advance.
Business Accounts
Answer for Membership
by: fluglashPosted on 2009-08-02 at 22:58:11ID: 25002118
use rman`s DELETE OBSOLETE command