REM REM DBAToolZ NOTE: REM This script was obtained from DBAToolZ.com REM It's configured to work with SQL Directory (SQLDIR). REM SQLDIR is a utility that allows easy organization and REM execution of SQL*Plus scripts using user-friendly menu. REM Visit DBAToolZ.com for more details and free SQL scripts. REM REM REM File: REM s_tabsp_frag2.sql REM REM TABSP MOST REM REM Author: REM Vitaliy Mogilevskiy REM VMOGILEV REM (vit100gain@earthlink.net) REM REM Purpose: REM REM Displays count of empty "holes" in every REM tablespace. When you see this count reaching REM thousands I whould say it's time to reorg TS REM or at least try to COALESCE ... REM REM REM Usage: REM s_tabsp_frag2.sql REM REM Example: REM s_tabsp_frag2.sql REM REM REM History: REM 08-01-1998 VMOGILEV Created REM REM select count(*), tablespace_name from dba_free_space group by tablespace_name order by 1,2;