Procedure for a Reorganization 
Preparation Phase (Creation of all Scripts)
All reorganizations (except the options Resize and Move/Rename) are made by writing the export dump files of the objects into one or more directories (it is also possible to define tape devices). The directories (tapes) must be large enough for the objects to be reorganized. The scripts, however, are always stored in the working directory on the hard disk. The export/import can be performed in parallel by setting the degree of parallelism
exp_imp_degree >1 and the number of dump files > 1. See Parallel Export/Import.When a reorganization is started, the system checks whether a user
sapr3 is logged on to the database (e.g. whether an R/3 System is running). SAPDBA outputs a warning.SAPDBA creates the necessary scripts for the reorganization process.
SAPDBA checks whether there is sufficient storage space in the tablespace (for example, it is possible that the tablespace cannot be created by compressing the extents of an object into one extent because the largest available freespace area is too small).
Before starting the reorganization process, SAPDBA checks whether the reorganized data will fit in the available data file(s).
Features Specific to Tablespace Reorganization with Data Files:
Once all checks have been successfully completed, you can decide if and when you wish to start the actual reorganization (main phase):
Main Phase (Processing of Created Scripts)
SAPDBA performs the reorganization (except the option Resize) according to the scripts created. If a user
sapr3 is logged onto the database, a reorganization of a tablespace (with or without data files) is terminated when the main phase is started.After the export phase of a reorganization, the object is deleted from the database. The physical data files are also deleted during a reorganization with data files. Since tables and indexes are removed from the database, please adhere to the
Backup Concepts in Reorganizations.In the next phase, the data is imported back into the reorganized object. The reorganization is now complete.
After changing the structure of the database (reorganization of tablespaces with data files) we recommend performing a full database backup; it is essential that you at least back up the relevant tablespace. See
Backup Concept in Reorganizations.Features Specific to Background Reorganization
The runtime entries in the main log
reorg<DBSID>.log will assist you in scheduling the reorganization (see Main Log).See also
Procedures in Detail.