How to Resolve ORA-03297 When Resizing a Datafile by Finding the Table Highwatermark
(Doc ID 130866.1)
Last updated on AUGUST 04, 2018
Applies to:Oracle Database - Enterprise Edition - Version 22.214.171.124 and later
Information in this document applies to any platform.
In a number of cases it is desired to shrink an oversized datafile. The challenge is then up to find to which size the datafile can be shrunk? Using the trial and error approach will likely give:
alter database datafile '/oradata/v112/users01.dbf' resize 117248K
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE value
The error is due to fact that there are allocated extents between the size to resize/shrink to and the end-of-file (might be space management blocks, so not necessary belonging to a segment).
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!