Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help with hot backups
Joel Garry wrote:
>>Really appreciate any assistance anyone could offer on this.
Well, we rather hope that you always keep the logs produced after a backup. It's not much of a backup, otherwise! And that's regardless of whether you're using RMAN or doing it with good old shell scripts.
Likewise, no-one sensible deletes all logs from before a freshly-performed backup. It's been discussed here many times, as you know.
> You
> definitely want to do the one after the db backup to be sure
> checkpoint_change# in v$database is updated properly.
Absolutely.
> An additional
> one before couldn't hurt,
Yes it could. It involves a log switch and hence a checkpoint. Don't do things on the grounds they 'can't hurt' unless you know with absolute certainty that they can't. And this isn't one of those things.
> and some people recommend it, since it waits
> for the archiving to occur (as opposed to the alter system switch
> logfile command, which doesn't wait around before returning control).
But as I said before, if he puts an 'archive log current' *after* the data file backup and *before* the archivelog backup, RMAN will wait anyway.
There is nothing that putting in an early archive log current does for you that is not exactly achieved by doing it the way our original poster already had it (ie, after the data file backup). Which happens, incidentally, to be exactly what the Metalink paper you quoted says one should do, prefacing their advice with the words "The backup order is very important".
However, throwing in an extra, early bit of archiving definitely causes ARCn to do more work, causes a log switch, causes a checkpoint, and therefore has a direct hit on the database. It isn't a free gift, and it shouldn't therefore be recommended.
Regards
HJR
Received on Mon May 17 2004 - 20:52:14 CDT