Oracle Enterprise Manager Performance Monitoring User's Guide
Release 1.4.0

A53699_01

Library

Product

Contents

Index

Prev Next

10
Using Oracle Tablespace Manager

This chapter covers how you use Oracle Tablespace Manager, including the following topics:

Starting Oracle Tablespace Manager

You start Oracle Tablespace Manager as you would start any typical application integrated with Oracle Enterprise Manager. See "Starting Performance Monitoring Applications" for a description of how to do so.

Oracle Tablespace Manager Main Window

After you start Oracle Tablespace Manager, the main window is displayed. Figure 10-1 shows the Oracle Tablespace Manager main window.

Figure 10-1 Oracle Tablespace Manager Main Window

The Oracle Tablespace Manager main window includes the following components:

Title Bar

The title bar of the Oracle Tablespace Manager main window displays the name of the application and the name of the database instance to which a connection has been made.

Toolbar

The Oracle Tablespace Manager toolbar includes icons that enable you to perform the following menu commands: Change Database, Refresh, Filter Folder, and Help.

Status Bar

The Oracle Tablespace Manager status bar displays information about the current operation on the left.

Main Display

As Figure 10-1 shows, the Oracle Tablespace Manager main window includes a tree list in the left pane of the window. The Oracle Tablespace Manager tree list operates like the Oracle Enterprise Manager tree list, except that it only provides information about the tablespaces of the database instance.

When you start Oracle Tablespace Manager and the main window appears, the top container in the tree list shows the database instance being monitored. The Tablespaces container containing the tablespaces of that instance is also displayed. From the Tablespaces container you can drill down as follows:

For more information on how a tree list is populated, see "Navigator" in the Oracle Enterprise Manager Administrator's Guide.

Menu Bar

The Oracle Tablespace Manager menu bar includes the following menus:

File Menu

The File menu items allow you to change the database connection and exit the Oracle Tablespace Manager application.

The File menu includes the following menu items:

Change Database Connection

Allows you to connect to another database instance.

Enable Roles

Displays the Enable Roles dialog box, from which you can select roles to enable. For more information, see "Overview of Database Tools" in the Oracle Enterprise Manager Administrator's Guide.

Exit to Console

Exits the Oracle Tablespace Manager application.

View Menu

The View menu items allow you to change what is displayed in the window. For more information, see "Overview of Database Tools" in the Oracle Enterprise Manager Administrator's Guide.

The View menu includes the following menu items:

Refresh

Refreshes the data displayed by Oracle Tablespace Manager.

Filter Folder

Allows you to specify filters for displaying tree list objects.

Expand One Level

Expands the selected container in the Oracle Tablespace Manager tree list by one level of detail.

Collapse Branch

Hides the level(s) of detail below the selected container in the Oracle Tablespace Manager tree list.

Collapse All

Hides all levels of detail below the database container in the Oracle Tablespace Manager tree list.

Toolbar

Shows/hides the toolbar.

Status Bar

Shows/hides the status bar.

Tools Menu

The Tools menu includes the following menu items:

Defragmentation Wizard

Starts the Defragmentation Wizard tool. This tool submits a job which defragments schema objects using storage parameter defaults and basic analysis options. You can specify when the job will run.

Tablespace Organizer

Starts the Tablespace Organizer tool. This tool submits a job which defragments schema objects and lets you set storage parameters, analysis options, and scheduling options. You can specify when the job will run.

Tablespace Analyzer

Starts the Tablespace Analyzer tool. This tool submits a job which either computes or estimates statistics for selected tables, indexes, and clusters.

Coalesce Free Extents

Joins adjacent free extents in the database.

Help Menu

The Help menu includes the following menu items:

Contents

Displays an overview of the Oracle Performance Monitoring applications.

Search for Help on

Displays an alphabetical list of Help topics.

Using Help

Displays information about using the Help system.

About Oracle Tablespace Manager

Displays version information for this release of Oracle Tablespace Manager.

Obtaining an Overview of Tablespace Storage

To obtain an overview of the tablespaces in the database instance, single-click on the Tablespaces container in the left pane. The right pane of the main window displays a multi-column list displaying storage information for each tablespace of the database instance. This list includes the following information:

Name

Tablespace name.

Datafiles

Number of datafiles in the tablespace.

Total Blocks

Total number of blocks in the tablespace.

Free Blocks

Number of free blocks in the tablespace.

% Free

Percentage of total number of blocks in the tablespace that are free blocks. A horizontal bar in the background of this field graphically represents the percentage of free blocks in the tablespace.

# Adj. Free Extents

Number of adjacent free extents in the tablespace.

Obtaining an Overview of Datafiles in a Tablespace

To obtain an overview of the datafiles in a given tablespace, from the Oracle Tablespace Manager tree list, single-click on the Datafiles container of the tablespace of interest to you. The right pane of the main window displays a multi-column list including information for each datafile of this particular tablespace. This table includes a subset of the fields described in the previous section, as follows:

Name

Datafile name, including its directory path.

Total Blocks

Total number of blocks in the datafile.

Free Blocks

Number of free blocks in the datafile.

% Free

Percentage of total number of blocks in the datafile that are free blocks. A horizontal bar in the background of this field graphically represents the percentage of free blocks in the datafile.

Monitoring Segments of a Tablespace

To monitor the segments of a given tablespace, in the tree list, single-click on the tablespace of interest. Figure 10-2 shows an example of the Segments page that displays. You can also view the Space Usage and Extent Information pages.

Figure 10-2 Example of the Oracle Tablespace Manager Segments Page

Segments Page

The Segments page includes the following elements:

Left pane

Lists the segments of the tablespace (or datafile) selected in the tree list. When the Segments page first displays, the first segment in the list is automatically selected. If no segments have been allocated for the selected tablespace, the left pane is blank.

Click on a segment listed in this pane to graphically highlight in the right pane how the extents in the selected tablespace (or datafile) are allocated for this segment.

Right pane

Displays the space allocation graphic for the selected tablespace (or datafile), showing how space for its segments and extents have been allocated.

White areas denote free space. Colored areas denote used space, as follows:

Black vertical lines separate extents in the space allocation graphic. If you see large black sections, it is because there are so many extents in the segment that the colors representing the extents themselves are not visible. To minimize this problem, maximize the size of the Oracle Tablespace Manager main window.

To view the segment related to an extent, click on an extent in the Right pane. All of the extents comprising the segment associated with the extent you just clicked are then highlighted in yellow, and the associated segment is then automatically selected in the Left pane. In this case, a dashed line outlines the extent you selected in the Right pane.

Sort By

Click on a sorting criterion in this combination box to organize the list of segments in the left pane. Options include:

If you select only one segment in the segment list, you see the following information:

Number of blocks in a single line of the space allocation graphic. Because Oracle Tablespace Manager attempts to display all of the extents of a selected tablespace (or datafile), this value can vary if you resize the Oracle Tablespace Manager main window.

Extent Map Legend

Starts the Defragmentation Wizard. This button is disabled if the type of segment is anything other than Table or if the segment owner is SYS. For more information about using the wizard, see "Defragmenting a Segment - Using Default Parameters".

Help

Displays Help for the Segments page.

Space Usage Page

The Space Usage page provides segment information that results from the Oracle SQL ANALYZE command. There can only be one segment highlighted in the tree list. The elements listed on the Space Usage page depend upon the type of segment selected. The elements listed for Table and Cluster segments are described in "Space Usage Elements for Table and Cluster Segments". The elements listed for Index segments are described in "Space Usage Elements for Index Segments".

Space Usage Elements for Table and Cluster Segments

Segment Type

Type of segment.

Segment Name

Name of the segment.

Segment Owner

Schema object that owns the segment.

Last Analyzed

Date that the segment was last analyzed.

Number of Rows

Number of rows in the segment.

Sample Size

The number of rows used to estimate the statistics. For example, for a very large table you might take the first 100 rows and extrapolate the statistics from those rows.

Empty Blocks

The number of allocated data blocks that have never been used.

Average Space

The average amount of available free space in each data block, in bytes.

Chained Row Count

The number of chained rows.

Avg. Row Length

The average length of a row, including the row's overhead, in bytes.

Avg. Space Freelist Blks

The average amount of available freelist block space.

No. Freelist Blks

The number of freelist blocks available.

Space Usage Elements for Index Segments

Segment Type

Type of segment.

Segment Name

Name of the segment.

Segment Owner

Schema object that owns the segment.

Last Analyzed

Date that the segment was last analyzed.

Number of Rows

Number of rows in the segment.

Sample Size

The number of rows used to estimate the statistics. For example, for a very large table you might take the first 100 rows and extrapolate the statistics from those rows.

Distinct Keys

The number of distinct index values.

Leaf Blocks

The number of leaf blocks.

Avg. Leaf Blocks/Key

The average number of leaf blocks per index value.

Avg. Data Blocks/Key

The average number of data blocks per index value (for an index on a table).

Clustering Factor

An indication of how well ordered the rows are about the indexed values.

Defragment Button

Starts the Defragmentation Wizard. For more information about using the wizard, see "Defragmenting a Segment - Using Default Parameters".

Help

Displays Help for the Space Usage page.

Extent Information Page

The Extent Information page displays the information associated with the extents of the selected segment. The Extent Information page includes the following elements:

Segment Type

Type of segment highlighted in tree list.

Segment Name

Name of the segment highlighted in tree list.

Segment Owner

Name of table to which the segment belongs.

Number of Blocks

Number of blocks in the selected extent.

Block ID

ID of the first block in the selected extent.

Extent ID

ID of the selected extent.

Datafile of Selected Extent

Name of file where the extent is located; the physical location of the extent.

Selection Tally Page

This page is only available when you select more than one segment in the segment list. It shows the owner of the selected segments if they belong to the same owner or <Multiple Owners> if they belong to more than one owner. A table similar to the following is displayed that contains information about the segments.

.

Table 10-1 Multiple Segments Information
Segment Type   Selected   Blocks   Kilobytes  

Tables  

 

 

 

Indexes  

 

 

 

Clusters  

 

 

 

Table Partitions (for Oracle8 databases)  

 

 

 

Index Partitions (for Oracle8 databases)  

 

 

 

Rollbacks  

 

 

 

Cache  

 

 

 

LOB Segments (Large Objects)  

 

 

 

LOB Indexes (Large Objects  

 

 

 

Total  

 

 

 

Defragment

Starts the Defragmentation Wizard. For more information about using the wizard, see "Defragmenting a Segment - Using Default Parameters".

Help

Displays Help for the Selection Tally page.

Defragmenting Segments

There are two methods to defragment a schema object. You can use the Defragmentation Wizard which uses default defragmentation options or you can use the Tablespace Organizer tool and customize the options you want to use. Each method is described in the following sections.

For both methods it is important that Oracle Enterprise Manager be running. This is because Oracle Tablespace Manager uses the Oracle Enterprise Manager job subsystem to perform table segment defragmentation.

Defragmenting a Segment - Using Default Parameters

To defragment a segment using default parameters, select the desired segment(s) on the Segments page. You can select more than one segment to defragment by clicking and dragging the mouse over multiple segments.

To start the Defragmentation Wizard you can either click the Defragment button on the Segments page or you can select the Defragmentation Wizard option in the Tools menu. The Defragment Wizard is disabled if the type of any of the selected segments is anything other than Table or if any of the segment owners is SYS.

Defining Job Name and Scheduling Choices

Jobname

You can accept the default or use any character for the jobname except apostrophe and ampersand. For ease of use, keep the jobname short and simple.

Schedule Immediately

Select this option to start the job now. When you click the Finish button, the Summary page displays, as described in the following section.

Schedule at a Later Time

Select this option to run the job at a later time. When you click the Next button, additional fields display where you define scheduling options. Refer to "Defining Scheduling Options" for details.

Viewing the Defragment Wizard Summary Page

The Defragment Wizard Summary page summarizes all the information you entered.

The summarized properties are:

If, while reviewing the Summary page, you find options you want to change, click the Back button to make the necessary changes.

Click the Cancel button at any time to close the Defragment Wizard without defragmenting any of the selected segment(s).

Click the Finish button to accept these options and start the defragmentation job. The Segments page of the Oracle Tablespace Manager main window displays.

Check the Console job subsystem to make sure the defragmentation job has completed execution.

To see the results of the defragmentation, choose Refresh from the View menu, reselect the tablespace (or datafile) of interest, display the Segments page, and then select the defragmented segment from the segments list.

Click the Cancel button at any time to close the Defragmentation Wizard without defragmenting the selected segment(s).

Defragmenting a Segment - Specifying Parameters

To defragment a segment using custom parameters, select the desired segment(s) on the Segments page. You can select more than one segment to defragment by clicking and dragging the mouse over multiple segments.

Select the Tablespace Organizer tool from the Tools menu. This tool is disabled if the type of any of the selected segments is anything other than Table or if any of the segment owners is SYS.

The Tablespace Organizer tool prompts you as shown in the following sections.

Defining Jobname and Type of Organization

Jobname

Use any character for the jobname except apostrophe and ampersand. For ease of use, keep the jobname short and simple.

Type of Organization

You can choose either to reorganize data by defragmenting tables and clusters or to deallocate unused space at the end of segments. If you choose to deallocate unused space, you can specify a default size to keep, in either kilobytes or megabytes.

For more information about reorganizing data, see "Selecting Objects to Reorganize"

For more information about deallocating space, see "Selecting Objects to Deallocate"

Selecting Objects to Reorganize

From the tree list on the Object Selection page, click on the checkbox for each object that you want to reorganize. The selection status of each object is denoted as follows:

To specify parameters, select an object and click the right mouse button. You can then customize the following parameters to suit your needs:

Tablespace

Name of the tablespace containing the segment you want to defragment.

Extent Parameters

Selecting Objects to Deallocate

From the tree list on the Object Selection page, click on the checkbox for each object for which you want to deallocate unused space. The selection status of each object is denoted as follows:

To display a dialog box in which you can specify the amount of space to keep at the end of each segment, select an object and click the right mouse button.

Defining Tablespace Organizer Options

Use the Organizer Options page to specify the general options, export/import options, and statistics on import.

Keep files after job execution

Enable this option to save export and temporary files after the defragmentation job has executed. You can keep the constraint and object files as an audit trail for auditing purposes or reuse the export file to copy the data or save as a backup.

Directory

You can enter the directory path on the server in which the export file and temporary files (object and constraints files) are to be written. This directory path cannot contain any environment variables.

Attention:

If you do not specify a directory path, these files will be written to the directory in which the reorganization job script is run. Be sure the Oracle intelligent agent has permission to write to the directory for these files or the reorganization job will fail.  

Export/Import Options

This section lets you specify the following options:

Enabling this option executes the Oracle SQL ANALYZE command. It is limited to objects that already had statistics before they were exported.

Defining Scheduling Options

The Scheduling Options page allows you to schedule the execution of the reorganization.

Execute

Select the frequency with which you want the job executed. The choices are:

Choose the first date and time that you want the job executed. This is the starting time for any job scheduled on an interval.

Choose the last date and time that you want the job executed. This option does not apply if you chose the Immediately or Once execution options.

Select the time zone from the pull-down list. The choices are:

Viewing the Tablespace Organizer Summary Page

The Tablespace Organizer Summary page summarizes all the information you entered while using the Tablespace Organizer tool.

The summarized properties are:

If, while reviewing the Summary page, you find options you want to change, click the Back button to make the necessary changes.

Click the Cancel button at any time to close the Tablespace Organizer without reorganizing the selected segment(s).

Once you are satisfied with the information, click the Finish button to start the reorganization process.

Click the Help button to display Help for the Tablespace Organizer tool.

Analyzing Your Tablespace

The Tablespace Analyzer tool submits a job that analyzes various statistics and validates structure for selected tables, clusters, indexes, and partitions.

Defining Jobname and Default Options

On this page you define the jobname and default analysis options.

Jobname

Use any character for the jobname except apostrophe and ampersand. For ease of use, keep the jobname short and simple.

Default Options

The default options you can choose are as follows:

Selecting Objects to Analyze

From the tree list on the Object Selection page, select the objects you want to analyze. The selection status of each object is denoted as follows:

To choose the various analysis options, select an object and click the right mouse button. The choices you make will override the default values.

Defining Scheduling Options

The Scheduling Options page allows you to schedule the execution of the analysis. This page is the same as the one used for the Tablespace Organizer. Refer to "Defining Scheduling Options" for details.

Viewing the Tablespace Analyzer Summary Page

The Tablespace Analyzer Summary page summarizes all the information you entered while using the Tablespace Analyzer tool.

The summarized properties are:

If, while reviewing the Summary page, you find options you want to change, click the Back button to make the necessary changes.

Click the Cancel button at any time to close the Tablespace Analyzer without analyzing the selected segment(s).

Once you are satisfied with the information, click the Finish button to start the analysis process.

Click the Help button to display Help for the Tablespace Analyzer tool.

Joining Adjacent Free Extents in the Database

If you administer an active database, you may want to join adjacent free blocks in the database on a frequent basis. (If you administer an active Release 7.3 database, you will rarely, if ever, need to use this Oracle Tablespace Manager feature, because adjacent free blocks are automatically joined on a regular basis.)

Attention::

The Coalesce Free Extents menu item is enabled only when one of the following conditions exists: 1) the release of the Oracle database is 7.2 or greater; and 2) the tablespace that has been selected in the Oracle Tablespace Manager tree list contains adjacent free blocks, as shown in the Segments page graphic display.  

To use Oracle Tablespace Manager to join adjacent free blocks in the database, take the following steps:

  1. In the Oracle Tablespace Manager tree list, click on the tablespace or datafile of interest.
  2. When the Segments page displays, select the segment for which you want to join adjacent free blocks.
  3. Choose Coalesce Free Extents from the Tools menu.

Each group of adjacent free blocks in the space allocation graphic of the Segments page should now appear as a single free block.




Prev

Next
Oracle
Copyright © 1997 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index