Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: locally managed tablespace & dictionary managed tablespace
joel-garry_at_home.com (Joel Garry) wrote in message news:<91884734.0301061738.2eaa09ba_at_posting.google.com>...
Sorry to be replying to myself, but this has moved out of the realm of the academic for me...
> "Howard J. Rogers" <howardjr2000_at_yahoo.com.au> wrote in message news:<UHsR9.16323$jM5.44436_at_newsfeeds.bigpond.com>...
> news:<TKpQ9.13623$jM5.38635_at_newsfeeds.bigpond.com>...> > > > > "Howard J. Rogers" <howardjr2000_at_yahoo.com.au> wrote in message
> > > > "Joel Garry" <joel-garry_at_home.com> wrote in message
> > > > news:91884734.0212311144.15b9ed33_at_posting.google.com...
> [snip]> > Hi Joel:> > > > Well, I was only giving an overview, of course, and not getting into the
> > > >
> extents
> would
> that> > > >
> > > > was acquiring that many extents (and bump it into an LMT with a
> > > > commensurately bigger uniform size).
> was> > > Are you saying that doesn't apply to above 8.04?
> > > > referring to SMON auotmatically coalescing DMTs in version 8.0.4 -which
> > > > seems a tad out of date these days.
> > >
> > > Well, note the revision date, and that it applies to 7.3 and above,
> > > and this little tidbit (regarding processes that die before cleaning
> > > up after themselves, including CREATE INDEX and DROP <object>):
> > >
> > > 61997.1> Use tablespaces of type TEMPORARY. Sort segments in these
> > > 61997.1> tablespaces are not cleaned up. This reduces contention
> > > 61997.1> on the ST enqueue and also reduces CPU usage by SMON
> > > 61997.1> **UNLESS** the database is shutdown and restarted. If
> > > 61997.1> TEMPORARY type tablespaces are in use then SMON will
> > > 61997.1> clean up its segments after startup following a shutdown.
> > > 61997.1> In this case large numbers of extents can be a severe problem
> > > 61997.1> as SMON will not service user "sort segment requests" until
> > > 61997.1> the cleanup is complete. If the cleanup is to take a long
> > > 61997.1> time users will not be able to perform sort operations.
> > >
> > > And goes on to describe how to change everyone's temp area so they can
> > > sort.
> > >
> > Ahh, that is why this dead horse keeps zombifying. Do you have a > source on that? From the note, one would infer the potential problem
A source is Note:50380.1
> is due to TEMPORARY with growing sorts, as the sort segment never > shrinks while the instance is up.
What I'm seeing is the result of a possible runaway sort with LMT temp ts. The big question is, what do you do with a full ts (besides shutting down the production database)? Right now, only 1 extent is being used, most sorts are in memory, but the sort segment is many gigabytes. The drop_segment event described in Note:1070504.6 does not seem to be working (the note is unclear - does it not work if _any_ segment is locked?). 8.1.7 on hp-ux 11.
More generally, how do you decide how big to make the sort ts? It has to be a judgement call, but how can you make such a judgement without knowing ahead of time how much sort an application with new reports will reasonably want? How do you keep runaway sorts from determining the size (especially if you have too much data for a complete test database)? I know which report did this, it was the only thing running and got an ora 1652, but running it a second time (with all the extents already allocated) completed (maybe Oracle is slow [at least 3 hours] about deallocating unused extents from a previous sort?). Jonathan referred to some bugs in http://www.jlcomp.demon.co.uk/faq/fulltemp.html does anyone know which bugs those are? Oh, and thanks Jonathan for explaining the bit about why I was wasting an almost-extent at the end of the ts.
>
> > Thanks guys. > > jg
jg
-- @home is bogus. There's only so many hours in a weekend.Received on Thu Jan 09 2003 - 13:46:20 CST