Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: alter table pctfree question ?
If x and y are not too large, you could
dump all the blocks to a trace file
then grep for "tosp" which would give you
one line for the 'total space free' from
each block.
Something like:
for r1 in (
select file_id, block_id, blocks from dba_extents where segment_name = '{your table}' order by extent_id
execute immediate
'alter system dump datafile ' || r1.file_id || ' block min ' || r1.block_id || ' block max ' || (r1.block_id + r1.blocks -1 )'
should do it.
-- Jonathan Lewis http://www.jlcomp.demon.co.uk Now running 3-day intensive seminars http://www.jlcomp.demon.co.uk/seminar.html Host to The Co-Operative Oracle Users' FAQ http://www.jlcomp.demon.co.uk/faq/ind_faq.html Author of: Practical Oracle 8i: Building Efficient Databases Ted Chyn wrote in message <44a19320.0201111738.336aa6af_at_posting.google.com>...Received on Sat Jan 12 2002 - 04:31:19 CST
>all,
>
>Table A with pctfree 10% with x number of blocks. pctfree was
>altered to 30%. now table contain y number of blocks.
>
>Is there a way finding out there are x number of blocks with pctfree of 10
and
>y-x number of blocks with pctfree of 30 ?
>
>thnx
>ted chyn
![]() |
![]() |