Skip to main content

Posts

Showing posts with the label DBMS_ADVISOR

Segment Advisor for TABLES using DBMS_ADVISOR

Segment Advisor for TABLES using DBMS_ADVISOR The segment advisor performs analysis on the fragmentation of specified tablespaces, segments or objects and makes recommendations on how space can be reclaimed. The advisor is accessible from Enterprise Manager (Home) > Advisor Central > Segment Advisor) or from PL/SQL by using the DBMS_ADVISOR package: Segment Advisor Using DBMS_ADVISOR:  -- Create a segment advisor task for the  COR_TRANS_GL_HIST table. DECLARE   l_object_id  NUMBER; BEGIN -- Create a segment advisor task for the ULTIMUS.COR_TRANS_GL_HIST table. DBMS_ADVISOR.create_task (     advisor_name    => 'Segment Advisor',     task_name         => 'GL_HIST_SEGMENT_ADVISOR',     task_desc          => 'Segment Advisor For COR_TRANS_GL_HIST'); DBMS_ADVISOR.create_object (     task_name   => 'GL_HIST_SEGMENT_ADV...

Segment Advisor for TABLESPACES using DBMS_ADVISOR

Segment Advisor for TABLESPACES using DBMS_ADVISOR The segment advisor performs analysis on the fragmentation of specified tablespaces, segments or objects and makes recommendations on how space can be reclaimed. The advisor is accessible from Enterprise Manager (Home > Advisor Central > Segment Advisor) or from PL/SQL by using the DBMS_ADVISOR package: Segment Advisor Using DBMS_ADVISOR:  -- Create a segment advisor task for the BU_HIS_LOG_TBS tablespace.   DBMS_ADVISOR.create_task (     advisor_name      => 'Segment Advisor',     task_name         => 'USERS_SEGMENT_ADVISOR4',     task_desc         => 'Segment Advisor For USERS');   DBMS_ADVISOR.create_object (     task_name   => 'USERS_SEGMENT_ADVISOR4',     object_type => 'TABLESPACE',     attr1       => 'BU_HIS_LOG_TBS', --     ...