Oracle Enterprise Manager Administrator's Guide | ![]() Library |
![]() Product |
![]() Contents |
![]() Index |
This chapter describes how to use Storage Manager to administer tablespace, rollback segment, and datafile storage in a database. This chapter assumes that you have read Chapter 7, Overview of the Database Tools and are familiar with the interface elements of the database tools. The topics included in this chapter are:
After the Storage Manager Connects to a database, the Tablespaces, Rollback Segments, and Datafiles folders display in a navigator on the left side of the Storage window. These folders are contained in the database folder which displays the name of the database that the application is connected to.
For more information, see:
Tablespace Menu
The Tablespace menu allows you to perform the following operations:
When you select:
Tablespace
Status
Size (M)
Used (M)
Name
Enter the name of the new tablespace. The tablespace name can only contain characters from your database character set and can be at most 30 characters long.
Status
If the tablespace status is Online, you can click the Offline button to change the status to offline with Offline Normal, Offline Immediate, or Offline Temporary options. Select one of the Offline options.
Datafiles
Add
Displays the Create Datafile property sheet, which allows you to specify each new datafile belonging to the new tablespace. When you create a new datafile, the status column in the datafile list reads NEW. For a description of the Create Datafile property sheet, see Creating a Datafile on page 8-11.
Edit
Displays the Quick Edit Datafile property sheet, which allows you to edit the file specification for the datafile selected in the Datafiles scrolling list. You can also double-click on a datafile in the Datafiles scrolling list to display the Quick Edit Datafile property sheet.
Remove
Removes the datafile selected in the Datafiles scrolling list. You can also press the Delete key to remove a selected datafile. You can only remove a datafile that has been newly created and has not been committed to a tablespace.
Permanent: Specifies that the tablespace will be used to hold permanent database objects. This option is selected by default.
This option is only available for Oracle version 7.3 or greater. For more information on temporary tablespaces and their application, see Oracle7 Server Concepts. Extents
On the Extents page, you can specify the default storage parameters for all objects created in the tablespace. The Extents page contains the following fields:
If this box is checked, you can edit all of the fields on the Extents page. If the box is not checked, the default value for each field displays and the values cannot be modified. This checkbox is only enabled during tablespace creation.
If you do not enter an integral multiple of the operating system data block size when defining the size of extents, your entry is increased to the next multiple. If you do not enter a value, the default value remains. If a default value has not been explicitly specified, the field contains "Default."
Size of the object's first extent.
Size of the next extent to be allocated to the object.
Percent by which each extent after the second grows over the previous extent.
Total number of extents to be allocated when an object is created in the tablespace.
Maximum number of extents that can be allocated to an object created in the tablespace. Editing a Tablespace
To alter an existing tablespace:
Attention:
If you alter an object, such as a datafile named DATA1, at any location in the navigator, all instances of the object in the tree are changed. Dropping a Tablespace
To drop an existing tablespace:
Suggestion:
Attention:
To take a tablespace offline, select the tablespace from the Tablespace object list and choose one of the Take Offline cascading menu options: Normal, Temporary, or Immediate.
Take Offline
A checkpoint is performed for all datafiles in the tablespace (all of these datafiles must be available). You need not perform media recovery on this tablespace before placing it back online. You must use this option if the database is in NOARCHIVELOG mode.
Temporary: Takes the tablespace offline in temporary mode.
A checkpoint is performed for all online datafiles in the tablespace but does not ensure that all files can be written. Any offline files may require media recovery before you place the tablespace back online.
Immediate: Takes the tablespace offline in immediate mode.
Oracle does not ensure that the datafiles are available, and no checkpoint is performed. You must perform media recovery on the tablespace before placing it back online.
For information about datafiles, see the Oracle7 Server Concepts and the Oracle7 Server Administrator's Guide.
Name
Tablespace
Status
Size (M)
Used (M)
The Create Datafile property sheet contains the following pages:
Name
Enter the file and path name of the new datafile. The filename must be specified according to the conventions of your operating system.
When altering an existing datafile, you can rename the datafile by typing in a new name.
Attention:
Attention:
Tablespace
Status
Offline: Specifies that the datafile be place offline.
Note:
Note:
To determine the file size, select either the Use Existing File or New File Size option.
Size
Reuse Existing File: Designates that the datafile already exists and should be reused.
Note:
Enable Auto Extend
Increment
Maximum Extent
Note:
Editing an Existing Datafile
To edit an existing datafile:
For information about managing rollback segments, see the Oracle7 Server Concepts, the Oracle7 Server Administrator's Guide, and the Oracle7 Server SQL Reference.
Segment
Tablespace
Status
Size (M)
Highwater Mark
The Create Rollback Segment property sheet consists of the following pages:
Name
Enter the name of the new rollback segment. The rollback segment name can only contain characters from your database character set and can be at most 30 characters long.
Tablespace
Choose the tablespace from the drop-down list.
Status
Offline: Specifies that the rollback segment be place offline.
Override Default Values
Initial Size
Enter the size of the initial extent. Use the unit button to specify either kilobytes or megabytes. The default is the size of 5 data blocks.
Next Size
Enter the size of the next extent. Use the unit button to specify either kilobytes or megabytes. The default is the size of 5 data blocks.
Optimal Size
Enter the value for Optimal. Use the unit button to specify either kilobytes or megabytes. Oracle tries to maintain the optimal size of the rollback segment by dynamically deallocating extents when their data is no longer needed for active transactions. A blank field assumes the default value.
The default value of Optimal is null. If Optimal is null, Oracle never deallocates the rollback segment's unused extents.
The value of Optimal can never be less than the space initially allocated to the rollback segment, as specified by the values of Initial Extent, Next Extent, and Minimum Extents.
Minimum Number
Enter the minimum number of extents. The default and minimum value is 2.
Maximum
Enter the maximum number of extents. The default and maximum values depend on the data block size.
Note:
Any changes you make on the Storage page apply to any subsequent extent allocations to the rollback segment, not existing extents. Dropping a Rollback Segment
To drop an existing rollback segment:
The Shrink Rollback Segment dialog box contains the following information:
Shrink to
Size: Specify the number of bytes (K or M) in active extents in the rollback segment.
Attention:
The amount of rollback segment shrinkage depends on the following factors:
Attention:
![]() ![]() Prev Next |
![]() Copyright © 1996 Oracle Corporation. All Rights Reserved. |
![]() Library |
![]() Product |
![]() Contents |
![]() Index |