Shrinking and/or compressing a tablespace:
1. Select the tablespace that you want to compress or shrink. Next, the Properties page appears.

2. Click the Alter TS button located toward the top of the window. The Alter Tablespace dialog box appears.

3. To compress the tablespace, click the Compress Tablespace radio button.
4. To shrink the tablespace, click the Shrink Tablespace radio button. This option reduces the tailing or remaining free pages in tablespace files.
5. If you selected Shrink Tablespace in step 4, then it is necessary to enter the desired number of tailing free pages into the free pages text field thereby reducing the tailing or remaining free pages in the files of the tablespace..
6. To compress and shrink the tablespace, click the Compress and Shrink Tablespace radio button. Next, enter the number of tailing free pages you want the tablespace to contain in the free pages text field.
7. Click the Check tablespace before action checkbox to execute a consistency check of the database before changes are applied to the tablespace.
8. Click the Confirm button. The Alter Tablespace confirmation dialog box appears to confirm the successful modifications.
9. Click the OK button.
Related topic: