Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: RAC on Linux
"Pete Sharman" <peter.sharman_at_oracle.com> wrote in message
news:at595s02s9p_at_drn.newsguy.com...
> In article <NYeI9.91978$g9.256699_at_newsfeeds.bigpond.com>, "Howard says...
> >
> >Pardon me for butting in, but....
> >
> No! :)
[snip]
> So is editing the init.ora file and entering a completely illegal value
for a
> parameter. I've brought a Production database to its knees after doing
some
> index maintenance one night (thankfully many years ago), and forgetting to
> change the value for SORT_AREA_SIZE back to something reasonable. THe
point is,
> of course, that using EITHER an SPFILE or an init.ora you can screw things
up.
> Should the SPFILE be fixed so it doesn't allow this? Yes, and maybe in a
future
> release it will be. But there's absolutely no way that I can see to stop
you
> from screwing up an init.ora file, now or in the future.
Screwing things up isn't the issue. It's how easy is it to fix the problem. And it isn't easy with an spfile, because you need an instance to issue 'alter system' commands. With an init.ora, you need a text editor.
> >
> >You have, of course, just completely buggered up the SPFILE, so that next
> >time you bounce an instance or instances, nothing restarts. Next stop:
> >'create pfile from spfile', edit pfile, 'create spfile from pfile'.
> >
> >It *is* much quicker to just edit the init.ora.
> >
> >>
> >> 2. The SPFILE is a readable file. It has a binary header which
prevents
> >it
> >> being directly modified, but otherwise the values in there are simple
text
> >> values.
> >>
> >
> >Exactly. Binary, schminary. It makes correcting simple typos which render
an
> >instance un-restartable a right pain in the proverbials.
>
> I'd venture to say your ALTER SYSTEM command ain't a simple typo!
Er, actually that example was taken from real life (Oh, OK. From the training room. Close enough). Slightly dodgy keyboard, I typed in 90M, the 9 didn't register.
I'll give you another example from this week's DBA Fundamentals II course, which is being run for the first time on 9iR2. And they've set up all the student accounts to use an SPFILE. In Chapter 5, we get to put the database into MTS (sorry, "Shared Server") configuration. That requires setting the parameter
DISPATCHERS='(PROTOCOL=TCP)(DISPATCHERS=1)' So I try:
alter system set DISPATCHERS='(PROTOCOL=TCP)(DISPATCHERS=1)' scope=spfile;
I get told that 'scope=spfile' is an invalid option for the alter system command:
SQL> alter system set dispatchers='(PROTOCOL=TCP)(DISPATCHERS=2)'
scope=spfile;
alter system set dispatchers='(PROTOCOL=TCP)(DISPATCHERS=2)' scope=spfile
*ERROR at line 1:
We are reduced to export to a pfile, edit pfile, startup wth pfile, export to spfile. It ain't pretty.
(And if you know the syntax for altering the spfile for this particular parameter, I'd be grateful. But whatever it is, it's not what you might reasonably expect when you know that 'alter system set shared_pool_size=32M scope=spfile' works perfectly well).
>And the
> instance is restartable, it just takes a couple of steps. To me, this is
where
> a best practice needs to be defined anyway. Once you've changed a
parameter in
> an SPFILE, you should do a CREATE PFILE command so you have a backup.
Er... "a couple" of steps? It takes 4. It shouldn't.
And I kind of object to having to create a pfile just to back up the spfile in a useable manner. The pfile has been automatically backed up for us since time immemorial in the alert log.
> >
> >> 3. It's stored in one central location.
> >>
> >
> >Big deal. The init.ora can also be stored in a central location, because
it
> >uses star notation too, provided you have a cluster file system.
>
>
Ah, OK. I don't think that's there yet. No doubt in 10i or 11.5i we will be taking that extra step towards a genuinely self-tuning database, and of course the spfile will be needed for that. That's why, much as I loathe it, I still force myself to use the spfile as often as possible, and have started making students use it to: best get the practice in now, I think. Doesn't mean I wouldn't rather just run for the hills whenever I see one, though!
> >
> >> If you still don't want to use an SPFILE, though, keep a common
init.ora
> >file
> >> for parameters that are the same across all instances, and separate
> >parameter
> >> files for each instance for instance specific parameters. First line
of
> >the
> >> instance specific init.ora would be IFILE=common_parameters.ora.
> >>
> >
> >No need. You can use just one init.ora on the shared disk, and for those
> >parameters that need to be different for different instances, stick an
> >instance identifier on the front, followed by a fullstop.
>
> Again, agreed. I'm so used to people not having a CFS that I keep
forgetting
> when they do. Sorry, my bad!
Hehe! I know the problem. 'RACing with RAW is for masochists'. I always assume there's a CFS, too!
Regards
HJR
> >
> >Regards
> >HJR
> >
> >
> >
> >> HTH. Additions and corrections welcome.
> >>
> >> Pete
> >>
> >> SELECT standard_disclaimer, witty_remark FROM company_requirements;
> >>
> >
> >
>
>
>