My Oracle Support Banner

Script to Report Space Distribution and utilization (Doc ID 135677.1)

Last updated on JULY 02, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.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

The output of the script reports,in Megabytes,for each tablespace,the used space,the free space and the total size.
It provides too the largest free extent ,the next largest extent and the total number of fragmentation.
If this fragmentation is too high, the command COALESCE helps to defrag the tablespace. 

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.