Oracle Enterprise Manager Database Tuning with the Oracle Tuning Pack
Release 2.1

A76918-01

Library

Product

Contents

Index

Prev Next

22
Introduction to the Reorg Wizard

The Reorg Wizard can help you maintain a well performing database by correcting space usage problems. Over time, database performance can be affected by problems such as row chaining and/or migration and index stagnation. The Reorg Wizard can eliminate space problems by reorganizing database space usage. The Reorg Wizard also allows you to change an object's storage settings and location.

The Reorg Wizard gives you two reorganization options:

The wizard performs reorganizations within the Oracle database and does not use external data handling operations. Reorganizations can be performed within the target tablespace or by temporarily using space in another tablespace.

The Reorg Wizard evaluates the reorganization operations and generates an Impact Report and reorganization script, which can be reviewed prior to execution. Reorganizations can be performed immediately or can be scheduled at a later time, perhaps during off-peak hours. In either case, the reorganization will be run by an Enterprise Manager job using the Oracle Agent.


Note:

The Enterprise Manager Console, Oracle Management Server and Agent are required to perform reorganizations with the Reorg Wizard. The Agent must be running on the same node as the database being reorganized.  


Certain database reorganization operations can be time-consuming and will impact the availability of objects being reorganized. Use database object reorganization selectively. For example, tablespace reorganizations can often be avoided by reorganizing only selected tables and indexes.

When to use the Reorg Wizard

Over time, your database's space usage can become fragmented and inefficient. The Reorg Wizard can be used for efficient space management.

You can use the Tablespace Map (also available with the Oracle Tuning Pack) to perform a Segment Analysis on the object you are interested in reorganizing prior to launching the Reorg Wizard. A Segment Analysis report is generated showing you exactly where storage problems exist.

Specifically, you may want to use the Reorg Wizard when one or more of the following situations occur:

Any of these factors may impact the overall performance of the database.

Accessing the Reorg Wizard

The Reorg Wizard can be started in standalone mode from the Enterprise Manager Console tools menu -> Tuning Pack menu item, or from the Tuning Pack tool bar. It can also be started in standalone mode from DBA Studio, Storage Manager, Schema Manager and from Tablespace Map's Tools menu.

The Reorg Wizard can be started in context of the object that you want to reorganize from several Enterprise Manager launch points such as DBA Studio, Storage Manager, Schema Manager, and Tablespace Map.


Note:

When the Reorg Wizard is launched in context to a database (from any of the DBA studio applications), the database and node preferred credentials must be set.  


Reorg Wizard Interface

The Reorg Wizard interface varies depending on how the wizard is launched. When launched in context to a selected database object, the wizard displays screens that are appropriate for that object. You can get specific information for any of the pages from the Reorg Wizard's online help. See Figure 22-1 for a sample Reorg Wizard page.

Figure 22-1 Object Selection Page of the Reorg Wizard


Reorganization Process

The Reorg Wizard leads you through the process of reorganizing objects within a database. As part of the process you will be able to select the objects targeted for reorganization, optionally change the storage setting and location of these selected objects, and then perform the reorganization immediately or schedule it to be performed at later time.

If you need assistance while using the wizard, select the Help button from any of the pages to detailed information.

The Reorg Wizard guides you through the following steps:

Should a job fail; for example, if there is insufficient free space in a tablespace to carry out the reorganization, there are two ways of dealing with the failure:

  1. Correct the error at the destination database (for example, by increasing the size of a tablespace) and proceed with the reorganization. From the Enterprise Manager Console create a new job. To do this, right-click on the failed job and select the Create Like... menu item. Then from the Create Job dialog, click Submit. The job will be resubmitted.

  2. Undo the changes from the reorganization job. From the Enterprise Manager Console create a new job. To do this, right-click on the failed job and select the Create Like... menu item. From the Create Job dialog select the Parameters tab. Change the parameters from 'agent false proceed_and_cleanup' to 'agent false revert' and submit the modified job.




Prev

Next
Oracle
Copyright © 2000 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index