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

Home -> Community -> Usenet -> c.d.o.server -> Re: find all objects beyond certain blocks in a datafile?

Re: find all objects beyond certain blocks in a datafile?

From: Connor McDonald <connor_mcdonald_at_yahoo.com>
Date: Mon, 17 Sep 2001 22:30:52 +0100
Message-ID: <3BA66B8C.3C1F@yahoo.com>


Guang Mei wrote:
>
> Hi,
>
> Because there is an Oracle bug in 805 on Sun with datafile larger than 2GB,
> I want to resize some of our index datafiles from 2048M down to 2000M. But I
> got:
>
> SQL> alter database datafile '/oracle/u05/oradata/YPD/indexes13.dbf' resize
> 2000M;
> alter database datafile '/oracle/u05/oradata/YPD/indexes13.dbf' resize
> 2000M
> *
> ERROR at line 1:
> ORA-03297: file contains 13088 blocks of data beyond requested RESIZE value
>
> Is there an easy way to find which indexes occuping blocks between 2000M and
> 2048M in this file? from DBA_segments, maybe?
>
> I am thinking that if I can identify them, then I can
>
> 1. Drop the index
> 2. Resize datafile to 2000M
> 3. Re-create the index.
>
> This would fix the problem I have now.
>
> TIA.
>
> Guang

select max(block_id+blocks) from dba_extents where ...

-- 
==============================
Connor McDonald

http://www.oracledba.co.uk

"Some days you're the pigeon, some days you're the statue..."
Received on Mon Sep 17 2001 - 16:30:52 CDT

Original text of this message

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