Académique Documents
Professionnel Documents
Culture Documents
The database system includes a CCMS enhancement for determining the size and growth of
tables. Schedule a regular background job for determining this data. You can also determine the
size and growth of single tables directly.
Procedure
1. Create a variant (such as TGT_DEFAULT) for the ABAP report RSADAT6M
(transaction SE38).
2. Set the following attributes for the report RSADAT6M, variant TGT_DEFAULT:
Do not specify a table name.
Choose Calculate Table Size. This is the most efficient measurement.
Select:
Determine Table Sizes
Determine Index Sizes
Save Results in Moni
Screen Output
3. Schedule a background job for the report RSADAT6M with the variant
TGT_DEFAULT and a period of 7 days (transaction SM36). You can also start the table
analysis immediately. However, do this only if you are analyzing single tables.
Result
The system determines the table sizes and growth. The runtime depends on the fill level of the
database instance and the number of tables you are analyzing.
The report RSADAT6M, with the parameters above, logs the measurement data in the following
areas:
Spool/Screen
You can print the measurement data, or download it for external tools.
Table MONI
The data is displayed in the Database Assistant (Table Sizes and Growth).
Table ADATABSIZE
You can use the SQL Studio database tool to access the measurement data in the
table ADATABSIZE directly.
Prerequisites
Prerequisites
Determining Table Size and Growth
Procedure
In the database assistant, choose Statistics Table Sizes and Growth.
1. ...
Result
You can choose from the following displays:
Largest Tables
You can set the date and the number of the tables displayed.
Growth of a Table
You can set the name of the table and the display period.
All of these can cause the distribution of data in the database to become
unbalanced, with negative effects on performance. The purpose of
monitoring is to locate problems if possible anticipating them before they
occur and decide when and how to intervene to bring the database back
into balance.
Process Flow
You use the following features of SAPDBA and CCMS to monitor the growth
of dbspaces and tables in your database:
1 Dbspaces
SAPDBA offers you reports showing space usage by dbspace, chunk, or
device. These are as follows:
Changes to default values for dbspaces are possible, especially when SAP's
EarlyWatch has determined other values to be more effective for your system. For
more information on EarlyWatch, see
SAP Safeguarding.
1 Tables
Analyzing Tables for Critical Next Extent Size with SAPDBA shows the
tables that could not be properly extended (due to space shortage) if
the need arose. Be sure to extend the dbspaces for any tables on this
report as soon as possible, assuming that the next extent size specified
for the table is reasonable. Refer to Extension of a Dbspace.
Analyzing Tables by Fill Level, Size, and Extents with SAPDBA offers you
different ways to view table information by size, fill level, number of
extents or number of extents still available.
Analyzing Table Information with SAPDBA lets you look in detail at a
single table to see if it needs reorganizing.
1 Indexes
Analyzing Indexes by Fill Level, Leaves, and Levels with SAPDBA offers
you different ways to view index information by fill level, number of
extents or number of extents still available.
Analyzing Indexes of a Table with SAPDBA shows all indexes of a single
table.
Analyzing Index Information with SAPDBA lets you look in detail at a
single index to see if it needs reorganizing.
Result
By monitoring database growth closely you can anticipate problems and so
take corrective action to avoid downtime for your SAP System.
Deciding when to intervene is sometimes difficult and is often a matter of
judgment. Refer to Recognition of Space Problems and Errors for hints on
what you need to look for. If you decide to take action, see Reorganization of
Tables, Indexes, and Dbspaces with SAPDBA.
In general, when thinking about how to accommodate database growth in
relation to the available disk drives, you can use the same guidelines as for
setting up your database. Refer to Database Setup for Production.
See also:
Informix documentation at http://www.informix.com