My Oracle Support Banner

Script to Report Table Fragmentation (Doc ID 1019716.6)

Last updated on AUGUST 28, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 7.3.0.0 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Information in this document applies to any platform.

Goal

 Provide a script to report table fragmentation.  Note: This script is still useful at 10.2 in that it gives a detailed report of block usage etc. This note makes no claims about how to remedy table fragmentation. The methods you can use to do this vary depending on whether ASSM is in use etc. A simpler note is Note 337651.1 How to find Objects Fragmented below High water mark.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.