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!

Manually run recommendations of segment advisor

spur230Jul 18 2013 — edited Jul 18 2013

I am using Oracle 11.2.0.3.

I want to manually execute recommendations of segment advisor.  When I query  TABLE (DBMS_SPACE.asa_recommendations , I see there are column c1, c2, and c3 with actual sql. Do I need to execute SQL in all of these columns (c1,c2,c3) and in which order should they be executed?

Example:

SELECT    RECOMMENDATIONS,  c1,          c2,          c3  FROM  TABLE (DBMS_SPACE.asa_recommendations ());

Returns:

Recommendation: Enable row movement of the table HR.EMP and perform shrink, estimated savings is 43925231 bytes.

C1 :    alter table "HR"."EMP" shrink space

C2:      alter table "HR"."EMP" shrink space COMPACT

C3:      alter table "HR"."EMP" enable row movement

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 15 2013
Added on Jul 18 2013
4 comments
800 views