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: Paul Drake <drak0nian_at_yahoo.com>
Date: 8 Dec 2003 16:14:58 -0800
Message-ID: <1ac7c7b3.0312081614.7d4515d9@posting.google.com>


lsattle_at_yahoo.com (lsattle) wrote in message news:<95898986.0312040755.16c6f7ac_at_posting.google.com>...
> Brian Peasland <dba_at_remove_spam.peasland.com> wrote in message news:<3FCE5C98.1EDE2220_at_remove_spam.peasland.com>...
> > > 3 log groups? Make sure all switched?
> >
> > Sure...but why? After all this is said and done, one still has one
> > active log group. No different than if you just issued one switch.
> >
> > Cheers,
> > Brian
> >
> >
> > --
> > ===================================================================
> >
> > Brian Peasland
> > dba_at_remove_spam.peasland.com
> >
> > Remove the "remove_spam." from the email address to email me.
> >
> >
> > "I can give it to you cheap, quick, and good. Now pick two out of
> > the three"
>
>
> I'm not sure of where you are mentally on all this. The switch log
> files / archive log files, to my knowledge is intending to get any
> current redo out of the online redo logs and into the archive redo
> logs.
>
> I'm not completely clear on switching vs archiving. I would think
> that just archiving would be enough.
>
> What I am certain of is that while your tblspaces are in "begin
> backup" and you are gziping or copy data files, transactions and / or
> checkpoints are occuring in your system. After you do the "end
> backup" it is wise to get all redo out to the archive directory.
>
> Then when you restore and do the recovery command (our recovery
> command is "recover database using backup controlfile until cancel")
> the recovery will only need archived redo logs.
>
> In fact what we do is not restore the online redo logs at all, we let
> the database rebuild them during the recovery. I will explain why.
>
> We do backups similar to you, but use netbackup to copy the files to
> tape. This copy can take from 10 minutes to 6 hours depending on the
> size of the db. If we let the system backup the redo logs, who knows
> where in the time frame they will get backed up. If we back them up
> after the "end backup" they will contain advanced data. So we like to
> control the whole situation by doing the "end backup" followed by:
>
> alter system checkpoint;
> alter system switch logfile;
> host sleep 10
> alter database backup controlfile to '$gOUT_DIR/cntrlfile';
> alter database backup controlfile to trace;
>
>
> Note I now believe these last steps are out of order. I think we
> should get the controlfile backup first, and then get the log switch.
> Note we do restore the backup of the control file before the recovery
> because again who knows where in the backup process the controlfile
> was backed up.

just snipping at one point:
you will be better off, if you backup controlfile to <dest> and then archive the current logfile afterwards.

if you use the binary version of the backup controlfile, it will be asking for the logfile to be applied that has not yet been archived, in other words, file#1 needs more recovery.

if you decide not to create a binary backup of the controlfile, please ignore this post.

Pd Received on Mon Dec 08 2003 - 18:14:58 CST

Original text of this message

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