Path: news.easynews.com!easynews!news.good.net!kibo.news.demon.net!demon!diablo.theplanet.net!news.theplanet.net!not-for-mail From: Connor McDonald Newsgroups: comp.databases.oracle.server Subject: Re: Generic "Can I extend?" check Date: Thu, 08 Aug 2002 21:34:13 +0100 Lines: 73 Message-ID: <3D52D5C5.479E@yahoo.com> References: <3D518D84.4A77@yahoo.com> <3D521EBF.5C1DDFE6@oracle.com> Reply-To: connor_mcdonald@yahoo.com NNTP-Posting-Host: modem-3774.chameleon.dialup.pol.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news7.svr.pol.co.uk 1028838982 13341 217.134.94.190 (8 Aug 2002 20:36:22 GMT) NNTP-Posting-Date: 8 Aug 2002 20:36:22 GMT X-Complaints-To: abuse@theplanet.net X-Mailer: Mozilla 3.01 (WinNT; I) To: Richard Foote Xref: easynews comp.databases.oracle.server:157300 X-Received-Date: Thu, 08 Aug 2002 13:33:25 MST (news.easynews.com) Richard Foote wrote: > > Hi Connor, > > You are a clever boy !! > > Quick question, where did you get these figures, are they documented > somewhere or was it play and tell ? > > Cheers > > Richard > > Connor McDonald wrote: > > > > I've been asked to write a generic routine to determine if a segment can > > extend. Easy enough except for auto-alloc lmt's where 'next_extent' is > > null (ie indeterminate) in xxx_SEGMENTS. > > > > So here is my current compromise (in pseudo-code) > > > > where nvl(next_extent, > > case > > when initial_extent < 1m then > > case when extents < 16 then next = 64k, > > when extents < 80 then next = 1m, > > when extents < 200 then next = 8m, > > else next = 64m > > when initial_extent >= 1m then > > case when extents < 64 then next = 1m, > > when extents < 184 then next = 8m, > > else next = 64m ) > > > largest_free_space_chunk_in_tablespace > > > > The rough translation being: > > - auto-alloc extents are 16x64k, then 64x1m, then 120x8m, then 64m, when > > the initial_extent is less than 1m > > - auto-alloc extents are 64x1m, then 120x8m, then 64m, when the > > initial_extent is equal/more than 1m > > > > In the spirit of "open source", I'm throwing this out the community > > asking for counter-examples which break the above formula. > > > > Thanks > > Connor > > > > -- > > ============================== > > Connor McDonald > > > > http://www.oracledba.co.uk > > > > "Some days you're the pigeon, some days you're the statue..." > > --------------------------------------------------------------- > > Name: Richard.Foote.vcf > Part 1.2 Type: text/x-vcard > Encoding: 7bit > Description: Card for Richard Foote Strictly play and tell...When you can buy 120G disk for 60 squid, it makes these tests somewhat easier :-) C. -- ============================== Connor McDonald http://www.oracledba.co.uk "Some days you're the pigeon, some days you're the statue..."