Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Backup toubles: How and when can I delete my archive logs?
Hi,
I'm currently learning how to make hot backups in Oracle 8 (NT platform). My database is running in ARCHIVELOG mode. I have created a script that does the following things:
Things go wrong when I try to do a restore. As you can see, I delete all old archive logs everytime I run the script, after the backup of the database is made. That's the problem: when I restore the database files and the control file to the original locations, and I do a "recover database using backup controlfile", the svrmgr asks for archive log files that were already deleted a long time a go. It even goes back to the time I have started the ARCHIVELOG mode!
I assumed that Oracle would know that the old archive logs are not needed anymore when a new backup is made (when I make a new backup on day 2, the archive logs of day 1 are not needed anymore because all transactions are already in the database backup of day 2). This is obviously a wrong assumption.
What should I do to make it work? Is there a way to synchronize the archive logs with the contents of the database/the last backup? I suppose you don't have to keep all the archive logs forever.
Thanks for your suggestions!
Steven Received on Thu Feb 28 2002 - 03:23:22 CST