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: database could not be started

Re: database could not be started

From: Burton Peltier <burttemp1REMOVE_THIS_at_bellsouth.net>
Date: Wed, 13 Aug 2003 23:27:30 -0500
Message-ID: <82E_a.18089$Ea.7339@fe03.atl2.webusenet.com>


Ok. But, "for the record"...

You say a "Shutdown abort, startup restrict, shutdown immediate." should always handle a clean shutdown...

(1) According to the 8.1.7 docs, the 2nd step of "crash recovery" is - "Opening the database. Instead of waiting for all transactions to be rolled back before making the database available, Oracle allows the database to be opened as soon as cache recovery is complete" . Actually, looks like a type-o there ... "cache" instead of "crash".

The "crash recovery" should happen automatically when you startup after a shutdown abort - correct? So, this process is actually occurring in the background when you would be issueing a shutdown immediate? This sounds like a potential problem?

(2) I have looked in the docs and it isn't very obvious if true, but do you know if the "startup restrict" prevents scheduled jobs (like snapshots/materialized views) from running? If not, then wouldn't you need to do the startup restrict with a modified init.ora that has the jobs=0 ? Otherwise, seems possible that a job could kick off while the database is in restrict mode (although unlikely since it should only be for seconds?).

Its been a while (maybe version7) , but I can remember conditions like these 2 that have occurred to me.

Also, in a thread like this, I usually (and I did this time) put my first comment prefixed with "Just 1 opinion...". So, if some newbie takes it as general advice, then shame on them.

But, here's one for the newbies I feel safe saying and it should be implied/obvious ... Test all advice from here and prove it for yourself before ever putting it into a production database.

Hmmm.... now that I think about it, I think I will start putting that as my first comment for everything.

-- 
"Howard J. Rogers" <howardjr2000_at_yahoo.com.au> wrote in message
news:pan.2003.08.13.20.40.26.857440_at_yahoo.com.au...

> > On Mon, 11 Aug 2003 20:47:37 -0500, Burton Peltier
> > <burttemp1REMOVE_THIS_at_bellsouth.net> wrote:
>
> [snip]
>
>
> But, I still don't see (maybe because I haven't been burned yet) why
> backing up the REDO logs during a cold backup is that big of a deal. We
> never back them up at any other time and these cold backups are stored in
> an entirely different location than any other backup - would be hard to
> imagine recovering these backed up REDO logs for anything other than a
> recover from the cold backup.
>
>
> --------
> Fair enough -but ¨would be hard to imagine¨ is not bullet-proof. Not
> backing them up in the first place means ¨it would be impossible to¨.
> That´s all.
> --------
>
> At least I have the option of recovering them if I know the database did
> not have a clean shutdown. I could then do a clean shutdown and open reset
> logs to reset the sequence number.
>
> And, I like options at recover time - the more the better. Complicated for
> a junior DBA ? Maybe so.
>
> ---------
> Having seen it done for real, this is one particular option I´d like
> *not* to have available. But each to his own. ---------
>
>
> > Does this mean I would do resetlogs with gay abandon whenever the mood
> > toook me? No, of course not, because in archivelog mode, a resetlogs is
> > a very serious business indeed. But in noarchivelog mode, it's trivial.
> >
> >
> Trivial? I agree, as long as you had a "clean shutdown" for the backup.
>
> I have had several times where a "clean shutdown" was not possible and
> this is not trivial.
>
> ---------
> That one I can´t fathom. Shutdown abort, startup restrict, shutdown
> immediate should do it every time.
> ---------
>
> > Alternative scenario: noarchivelog, and your complete backup includes
> > redo logs. Recovery is simply to restore everything. You lose every
> > transaction
>
> Simple to recover and simple to perform the backup - don't have to worry
> about clean shutdowns :)
>
> > entered since the time of the last backup (ie, exactly the same as in
> > the previous scenario). You avoid a resetlogs, but as I say that's
> > really only an issue when you're in archivelog mode anyway. Costs?
> > Depends on the size of your redo logs. But restoring 3 or 4 500Mb files
> > when you didn't actually gain anything by doing so, and wouldn't have
> > lost anything by not doing so, seems to me to be a waste of time.
> >
> >
> At 22 Meg per second transfer rate on our current hardware, I don't see
> where backing up and restoring 2 Gigs is an issue .
>
> ------------
> See, this is where this forum is sometimes not the best place to discuss
> these things. *Your* hardware might be up to the task, but not everyone
> else´s. What works for you, because you know the issues, isn´t
> necessarily what should be publicised as ´best practice´, because there
> are a lot of newbies out there who won´t know the issues. And whereaas
> 2GB to you is trivial, how about the guy I had a while back in class who
> has 60 online logs, each of 2GB? And then multiplexed. (He swore this to
> be true, so I can only take him at his word). -------------
>
>
> > Point is: it's dangerous to back up the logs in archivelog mode.
> > Mistakes happen, and they're never needed anyway. It's pointless backing
> > them up in
>
> Never needed ? Yes, as long as your cold/offline/noarchivelog backups do a
> "clean shutdown".
>
> --------
> I think we´re all agreed that clean shutdowns are or ought to be a
> prerequisite of any robustly safe noarchivelog backup (again, temperature
> has nothing to do with it).
> --------
>
> > noarchivelog mode, because you don't need them in order to be able to
> > recover as completely as its ever possible to recover in noarchivelog
> > mode anyway.
> >
> > But, as has been pointed out, a dirty shutdown prior to backup would
> > mean the current redo log would be needed to achieve a consistent (and
> > openable)
>
> Current? You mean the REDO logs at the time of the backup, right?
>
> --------
> No I mean the current log, singuular. If you do a shutdown abort, it will
be
> transactions in the current log that need to be replayed. A non-active log
> is never required to make a database consistent.
> --------
>
> > database. Therefore, don't do dirty shutdowns.
> >
>
> As I have said several times, clean shutdowns are not trivial.
>
> ---------
> Abort-restrict-immediate should be fairly trivial. And then there´s no
> possibilities of anything nasty happening at recovery time, which is
> usually much more of a stressful situation where mistakes happen.
>
> Anyway: you keep on doing what has worked for you, because you know what
> you´re doing. I´d just like to think we would be a bit careful about what
> advice we leave out there for newbies by way of general advice: it ought
> to be safe as houses, and reliable.
>
> Regards
> HJR
Received on Wed Aug 13 2003 - 23:27:30 CDT

Original text of this message

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