My Oracle Support Banner

How to Reclaim Unused Space or Decrease Size of InnoDB Data File? ibdata1; .ibd (Doc ID 1341548.1)

Last updated on FEBRUARY 03, 2019

Applies to:

MySQL Server - Version 4.1 and later
Information in this document applies to any platform.

Goal

Sometimes the size of InnoDB data files - the system tablespace file (ibdata) or table space files (*.ibd) - are bigger than necessary. You may delete many rows from a table and notice the file size does not decrease. The goal is to reclaim that disk space.

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!


In this Document
Goal
Solution
 System Tablespace
 General Tablespaces
 File Per Table Tablespaces
 Temporary Tablespace (ibtmp1)
References


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