This topic describes how to recycle space fragments in the databases for which the lock-free schema change feature is enabled in Data Management (DMS).
Prerequisites
- You have permissions to alter tables in the database in which you want to defragment spaces. For more information, see View owned permissions.
- The lock-free schema change feature is enabled for the database instance in DMS. For more information, see Enable the lock-free schema change feature.
Background information
Frequent execution of UPDATE
and DELETE
statements in a database results in space fragments. These space fragments may be
wasted if they are not recycled. You can recycle space fragments to improve database
performance.
Usage notes
- If you do not need to change table schemas in the short run, you can submit a data change ticket to recycle space fragments.
- If you need to change table schemas in the short run, you can submit a data change ticket to change schemas. During schema changes, space fragments are automatically recycled.
Note Data change and space fragment recycling can be implemented at the same time only
for the databases for which the lock-free schema change feature is enabled.
Procedure
Note Database administrators (DBAs) and DMS administrators can also change table schemas
by running SQL tasks. For more information, see Manage tasks.