Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to shrink data file
Your problem is that you have a lot of free space within the datafile, but it isn't all at the end. There is a segment towards the back of the file. You might be able to resize to a slightly larger size, or alternatively rebuild the segment so it gets relocated. Have a look via enterprise manager to see where the segment is.
zhang liang wrote:
> After checking dba_free_space, I found that "system" tablespace has 1.67G
> free bytes. Since the data file for "system" tablespace is about 2.1G, I try
> to use the following command to resize file system01.rbf to about 800M:
>
> alter database datafile '/oracle/u01/oradata/wapdb/system01.rbf' resize
> 800M;
>
> But the following error message was returned:
>
> ORA-03297: file contains used data beyond requested RESIZE value
>
> The same kind of error also occurs when I try to shrink file "rbs01.dbf",
> which holds tablespace "rbs".
Received on Sat Feb 10 2001 - 14:03:59 CST