Free Up Unused space in INDX tablespace
I have a INDX Tablespace having a single datafile INDX01.dbf of 6GB.
I had indexes of certain Schema which used this INDX Tablespace out of which one of the Schema i dropped using cascade option.
Now the INDX tablespace Used space has come down to 800MB and Free Space has increased to 5200MB. Now, i have to resize the datafile size, i use
alter database datafile '/path/INDX01.dbf' resize 1024M;
But, it fails giving an error
ERROR at line 1:
ORA-03297: file contains used data beyond requested RESIZE value
Can anybody help me in resizing the datafile to 1024M or 2048M. Is it something to do with HWM of the datafile ? Please advise
yes it is the hwm - if you really want the space back you need to rebuild your indexes so that they are at the start of the datafile
Thanks Davey for the prompt reply. I know what do do now.
Originally Posted by davey23uk
Click Here to Expand Forum to Full Width