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: Empty BLocks (Holes) in the Datafile

Re: Empty BLocks (Holes) in the Datafile

From: BN <bnsarma_at_gmail.com>
Date: Wed, 2 May 2007 09:13:56 -0400
Message-ID: <61292a9d0705020613t26487232v1b885d6e47285743@mail.gmail.com>


On 5/2/07, rjamya <rjamya_at_gmail.com> wrote:
>
> try
>
> column sb heading "Start Block"
> column eb heading "End Block"
> column nsb heading "Next Ext Start Block"
> with x as (select file_id, block_id sb, block_id+blocks-1 eb,
> lead(block_id, 1) over(partition by file_id order by block_id) nsb
> from dba_extents where tablespace_name = 'SYSAUX' order by
> 1,2,3)
> select file_id, sb, eb, nsb, case when (nsb-eb) > 1 then 'HOLE - ' ||
> (nsb-eb) || ' blocks' else 'OK' end stat
> from x
> /
>
> This will show you holes, you can add segment names by modifying the query
> if you like.
>
> HTH & YMMV
> rjamya
>
>

Greetings Rjamya

Yes It Helped. Thank you

Regards
BN

-- 
Regards & Thanks
BN

--
http://www.freelists.org/webpage/oracle-l
Received on Wed May 02 2007 - 08:13:56 CDT

Original text of this message

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