Oracle Enterprise Manager Performance Monitoring User's Guide
Release 1.5.0

A57689-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, Analyze Objects, Deallocate Used Space, Reorganize Objects, Coalesce, 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

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:

Analyze Objects

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

Deallocate Unused Space

Starts the Tablespace Deallocation 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.

Reorganize Objects

Starts the Tablespace Reorganization 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.

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 Extents and 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 and Extents Information page that displays.

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

Segments and Extents Information Property Sheet

The Segments and Extents Information property sheet includes the following elements:

Selected Extent

Lists the information associated with the extent of the segment selected in the Segment Multi-column list. Extent information includes the following elements:

# Blocks

Number of blocks in the extent.

Block ID

ID of the first block in the extent.

Extent ID

ID of the extent.

Datafile

Full name and path of the datafile; the physical location of the extent.

Segment Multi-column List

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 multi-column list is blank.

Click on a segment listed in this list to graphically highlight how the extents in the selected tablespace (or datafile) are allocated for this segment. Click on the desired column header to sort the list accordingly. The multi-column list consists of the following columns.

Segment Name

Name of the segment name. Segments are sorted alphabetically by segment name.

Owner

Name of the segment owner. Segments are first sorted alphabetically by segment owner, then alphabetically by segment name.

Type

Segment type.Options include: table, index, cluster, table partition, index partition, rollback, cache, LOB (large object) segment, and LOB index. Segments are sorted alphabetically by segment type, then alphabetically by segment name.

# Extents

Number of extents within the segment. Segments ar sorted first by the number of extents in the segment, then alphabetically by segment name (default).

# Blocks

Number of blocks in the extent. Segments are sorted according to the number of blocks in the extent (lowest to highest).

Allocation Graphic

Graphically displays space allocation 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.

Extent Legend

Clicking on the property sheet button Extent Legend displays a quick reference pop-up defining significance of the different colors used in the Allocation Graphic.

To view the segment related to an extent, click on an entry in the Segment multi-column list. 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.

Segment Information

If you select more than one segment from the Segments multi-column list, the Multiple Object Selection Statistics page appears. 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  

 

 

 

Reorganizing Objects in a Tablespace

To reorganize objects in a tablespace, select the desired segment(s) from the Segments multi-column list on the Segments and Extents Information page.

IMPORTANT:

Because Oracle Tablespace Manager uses the Oracle Enterprise Manager job subsystem to perform table segment defragmentation, the Oracle Enterprise Manager Console must be running in order to complete the defragmentation process.

Select the Reorganize Objects option from the Tools menu. This option 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 Reorganizer wizard 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"

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 move on to the next page of the wizard. You can then customize the following parameters to suit your needs:

Selected Objects with Properties Page

This page allows you to set specific options on the objects you already selected in the previous step.

Tablespace

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

Extent Parameters
Space Usage
Free Lists
Number of Transactions
Load Default

Click on this button to assign the default storage parameters to the selected object(s).

Defining Tablespace Reorganization Options

Use the Other Options page to specify the general options.

Retain temporary export dump files

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.

Default 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.

 

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:

Start Execution

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

End Execution

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.

Time Zone

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

Viewing the Tablespace Reorganization 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 Reorganization wizard 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 Reorganization wizard.

Deallocating Unused Space

To deallocate unused space within the tablespace, select the desired segment(s) in the Segments multi-column list located on the Segments and Extents Information property sheet.

Start the Tablespace Deallocation wizard by selecting the Deallocate Unused Space option in the Tools menu. The wizard guides you through the space deallocation job definition process, job scheduling, and finally provides a job summary so that you can check the job settings before submission to the Oracle Enterprise Manager job system.Defining Job Name and Scheduling Choices.

Default Options

You specify the default value for the amount of unused space to be reserved in each segment. Space can be specified in units of megabytes or kilobytes.

Selecting Objects to Deallocate Space

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 move on to the next page of the wizard. You can then customize the following parameters to suit your needs:

Selected Objects with Properties

After specifying default value for the reserved amount of unused space, you can also set objects to reclaim unused space, you can also specify the reserved amount of unused space per segment. This setting overrides the default setting specified earlier.

Setting Job and Schedule Options

After setting the deallocation job parameters, you can now schedule the job for execution by the Oracle Enterprise Manager job system.

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 Tablespace Deallocation 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 Tablespace Deallocation wizard without defragmenting any of the selected segment(s).

Click the Finish button to accept these options and start the defragmentation job. The Segments and Extents Information 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 Tablespace Deallocation wizard without defragmenting the selected segment(s).

Analyzing a Tablespace

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

Defining Default Options

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

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.

Selected Objects with Properties

After selecting objects to analyze, you can also perform additional analyses on specific objects, beyond the default options set earlier. The same analysis options available for the default options definition are also available at the object level. See "Defining Default Options" on page 19.

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.

  1. When the Segments and Extents Information page displays, select the segment for which you want to join adjacent free blocks.

  2. 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