Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: benefits of multiple switch logfile calls?

Re: benefits of multiple switch logfile calls?

From: Frank <fbortel_at_nescape.net>
Date: Wed, 03 Dec 2003 23:04:14 +0100
Message-ID: <bqlm4n$jpb$2@news1.tilbu1.nb.home.nl>


Don Seiler wrote:

> Testing hot backup strategy for Oracle 9.2.0.4. Due to space concerns I'm
> not using RMAN right now, just putting tablespaces in backup mode and
> gzipping datafiles to backup dir, similar to what we do now in Oracle
> 7.3.4.5.
>
> One problem I have is that my test recover failed complaining that it
> needed to apply more archive logs. The logfile it asks for was not
> created. In my new backup script I call "ALTER DATABASE ARCHIVE LOG
> CURRENT" before copying over the log files.
>
> However in the Oracle 7.3.4.5 (written by wiser consultant 5 years before
> my time) script, there are three "switch logfile" statements in succession
> followed by the archive log current, literally like this:
>
> ALTER SYSTEM SWITCH LOGFILE;
> ALTER SYSTEM SWITCH LOGFILE;
> ALTER SYSTEM SWITCH LOGFILE;
> ALTER SYSTEM ARCHIVE LOG CURRENT;
>
> Would that fact that I'm not calling SWITCH LOGFILE at all (let alone
> multiple times) lead to the fact that I'm missing some redo info? I don't
> understand why multiple calls are of any value, but I've seen it done in
> other scripts on the web and in the Oracle news groups.

3 log groups? Make sure all switched?

-- 
Regards, Frank van Bortel
Received on Wed Dec 03 2003 - 16:04:14 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US