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: alter tablespace ... end backup.... OR not?

Re: alter tablespace ... end backup.... OR not?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Sat, 28 Dec 2002 17:20:40 +0000
Message-ID: <3E0DDD68.863@yahoo.com>


Richard Foote wrote:
>
> "Peter van Rijn" <pgm.van.rijnRM_at_THIShccnet.nl> wrote in message
> news:auaem7$ar$1_at_news.hccnet.nl...
> >
> > > SQL> shutdown abort;
> > > ORACLE instance shut down.
> > > SQL> startup
> > > ORACLE instance started.
> > >
> > > Total System Global Area 51452388 bytes
> > > Fixed Size 453092 bytes
> > > Variable Size 33554432 bytes
> > > Database Buffers 16777216 bytes
> > > Redo Buffers 667648 bytes
> > > Database mounted.
> > > ORA-01113: file 14 needs media recovery
> > > ORA-01110: data file 14: 'C:\BOWIE\FRED01.DBF'
> > >
> > >
> > > SQL> recover datafile 14;
> > > Media recovery complete.
> > > SQL> alter database open;
> > >
> > > Database altered.
> > >
> > > SQL> select * from v$backup where file# = 14;
> > >
> > > FILE# STATUS CHANGE# TIME
> > > ---------- ------------------ ---------- ---------
> > > 14 NOT ACTIVE 20711628 24/DEC/02
> > >
> > > So yes, it's expected behaviour.
> > >
> >
> > Hm, well, I would think you've just demonstrated that we share the same
> > experience with this behaviour. A discussion about it's expectedness (a
> nice
> > discussion on Christmas Eve when many people celebrate the birth of the
> > expected one) is perhaps a bit too much for this time of the day.
> >
> > I suppose your children will be sleeping in happy expectation (again!) of
> > the new day. What exactly will Santa bring them?
> >
> > Have a nice time, and thanks for your reply.
> >
> > Peter
> >
> Hi Peter,
>
> I don't have much time so I'll be quick.
>
> When you place a data file in backup mode, you lock to the header to that
> particular time (so Oracle knows from when to apply redo).
>
> When you recover a file, you re-sync the header such that it is consistent
> to the time of the redo logs you apply.
>
> Therefore, for this process to occur you must "unlock" the file header.
> Therefore if you unlock the file header, Oracle must take the file out of
> backup mode.
>
> Hence it is expected behaviour although as I said, it would be nicer if
> Oracle were more clear with all this with the messages it produces.
>
> Hope this makes sense.
>
> Have a *great* day !!
>
> Richard

Nice new feature..

SQL> alter database end backup;

takes any files out of backup mode, and is silent if the request was redundant. Should probably be part of standard startup scripts

hth
connor Received on Sat Dec 28 2002 - 11:20:40 CST

Original text of this message

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