As my username suggests, I'm more familiar with Informix than Oracle. I administer over 14 Informix instances here, and I have a few Oracle instances that I must maintain, also.
In doing so, I've found that there are alot of archived log files (over 2yrs old) in the $ORACLE_HOME/admin/$SID/arch dir. I'm fairly sure most of these log files are not needed for recovery, and I'd like to delete them.
Is deleting them with the unix "rm" command, the proper way to do so? Or does Oracle recommend a better way? I could not find any documentation on the removal of these files. Thanks for your help.
Originally posted by mike2000 take a cold back for system before your remove the archive
and yeap "rm" will do the trick
Why whats the need of taking a cold backup ??
As for the question. You need to find out when the last few backups were taken. Keep the archive for last two (or three) backup and remove the rest of the archive logs. To be on the safer side copy them on some tape drives (not all but say archived log 1 week older than your 3rd last backup) and then remove the archived logs.
HTH
Amar "There is a difference between knowing the path and walking the path."
Originally posted by KenEwald A cold backup would give a solid point at which to delete archived logs.
For an informix guy that's a good, simple, straightforward suggestion.
It's simple and it'll work.
Please! Don't give the informix_guy the wrong impresson that cold backup would be in any way more solid point to delete arch logs than a hot backup would. That would make him to be one more of the loosers that belive in urban legend that cold backup is anything safer (or simplier) than the hot backup
Any full backup (either hot or cold) is the same in respect of which old arch logs you still need.
I also don't understand the meaning of "[Cold backup (and recovery from it)] is simple and it'll work". In what part is it simplier than hot backup and in which case hot backup would not work?
So informix_guy, here is the consise answer to your question:
When performing media recovery, you'll never need any arch log that was created before your backup (either hot or cold), from which you restored the database, was taken. So you'll have to decide which backup is the earliest possible one that you'll ever need for recovery, and you can safely delete all arch logs that were created befor that backup started.
Jurij Modic ASCII a stupid question, get a stupid ANSI
24 hours in a day .... 24 beer in a case .... coincidence?
Originally posted by jmodic When performing media recovery, you'll never need any arch log that was created before your backup (either hot or cold), from which you restored the database, was taken. So you'll have to decide which backup is the earliest possible one that you'll ever need for recovery, and you can safely delete all arch logs that were created befor that backup started.
Bookmarks