Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: unused blocks BELOW HWM

Re: unused blocks BELOW HWM

From: Stephane Faroult <sfaroult_at_oriole.com>
Date: Mon, 17 Dec 2001 12:47:27 -0800
Message-ID: <F001.003DE590.20011217122525@fatcity.com>

Gene Gurevich wrote:
>
> Hi all:
>
> Is there a way for me to see how many blocks under
> the HWM are unused?
>
> thanks
>
> Gene
>
> =====

I once wrote something which was querying USER_EXTENTS, building for each block a rowid to match row 1; the idea was to execute a SELECT to get the corresponding row, and, in case of error (NOT no data found, I can't remember the exact number) decide that the block was empty. I first wrote this on Oracle 6 to find the HWM (there was no ANALYZE then) by running a kind of dichotomic search. It was fast and reasonably precise (in fact, much more than the first versions of ANALYZE ... ESTIMATE). I guess that a variation on the same idea could be used in your case.

-- 
Regards,

Stephane Faroult
Oriole Ltd
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Dec 17 2001 - 14:47:27 CST

Original text of this message

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