resize datafile [message #500451] |
Mon, 21 March 2011 07:25 |
famegaurav
Messages: 23 Registered: November 2010 Location: Delhi India
|
Junior Member |
|
|
Hi,
Today i am facing an error when going to rezise the datafile its fixed size is 19000M abut after truncating all tables it is 112M, but when i am going to resize its datafile to 500M its get me an error ora-03297 file contain used data beyond requested size values.
I have done the same before a week without any error.But this time i got the error
Thanks,
Gaurav
|
|
|
Re: resize datafile [message #500456 is a reply to message #500451] |
Mon, 21 March 2011 08:03 |
joy_division
Messages: 4963 Registered: February 2005 Location: East Coast USA
|
Senior Member |
|
|
famegaurav wrote on Mon, 21 March 2011 08:25Hi,
Today i am facing an error when going to rezise the datafile its fixed size is 19000M abut after truncating all tables it is 112M, but when i am going to resize its datafile to 500M its get me an error ora-03297 file contain used data beyond requested size values.
I have done the same before a week without any error.But this time i got the error
Thanks,
Gaurav
Message is pretty self explanatory. There is data in the datafile past the 500Mb marker. You may have a single segment in an entire 8 Gb datafile, and if that segment is at the end of the datafile, you will not be able to shrink it down at all.
Here is a very crude query to show you a map of your datafiles
select owner,SEGMENT_NAME,TABLESPACE_NAME,EXTENT_ID,FILE_ID,
BLOCK_ID,BYTES,BLOCKS
from dba_extents
where tablespace_name in ('DATA')
UNION
select '-','free',TABLESPACE_NAME,0,FILE_ID,BLOCK_ID,BYTES,BLOCKS
from dba_free_space
where tablespace_name in ('DATA')
order by FILE_ID,BLOCK_ID
/
|
|
|
|
|
|
|