The reorg command can improve performance for data-only-locked tables by improving the space utilization for tables and indexes. The reorg subcommands and their uses are:
reclaim_space – clears committed deletes and the space that is left when updates shorten the length of data rows.
forwarded_rows – returns forwarded rows to home pages.
compact – performs both of the operations above.
rebuild – rebuilds an entire table or index. You can use reorg rebuild on both all-pages and data-only locked tables.
When you run reorg rebuild on a table, and the table is locked for the entire time it takes to rebuild the table and its indexes. Schedule the reorg rebuild command on a table when users do not need access to the table.
All of the other reorg commands, including reorg rebuild on an index, lock a small number of pages at a time, and use short, independent transactions to perform their work. You can run these commands at any time. The only negative effect might be on systems that are very I/O bound.
For more information on running reorg commands, see Chapter 9, “Using the reorg Command” in System Administration Guide: Volume 2.