Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-10631: SHRINK clause should not be specified for this object

Rabi786Nov 11 2010 — edited Nov 11 2010
Hi

I was trying to shrink table to reset the high water mark but some unknown reason it failed.

Please help me


SQL> declare
stmt varchar2(100);
cursor cur is
select object_name from user_objects where substr(object_name,1,1)='A'
and object_type='TABLE';
begin
for i in cur loop
stmt :='alter table '||i.object_name ||' shrink space';
execute immediate stmt;
end loop;
END;
/
declare
*
ERROR at line 1:
ORA-10631: SHRINK clause should not be specified for this object
ORA-06512: at line 9


Regards

Jewel
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2010
Added on Nov 11 2010
2 comments
15,501 views