Reducing Database Size for TimesTen
Once a TimesTen database has been defined with a particular size for the
permanent region (indicated by the PermSize DSN attribute), it cannot be
reduced to a smaller size, even if tables or rows are deleted.
To reduce the allocated size of the permanent region of a TimesTen database, run the
ttMigrate utility to save a copy of the database and then
re-create the database with a smaller permanent region size and restore the
data.
Perform these steps to reduce the permanent region size of a TimesTen database:
Note:
-
The permanent region size of a TimesTen database cannot be reduced below the size that is required by the data currently stored in the database. This value can be determined by querying the
perm_in_use_sizecolumn of thev$monitorsystem view. -
You can also use this procedure to compact the TimesTen database in order to reduce fragmentation caused by partially full table pages or fragmentation of the heap buffers that store index nodes and out-of-line values.