Reducing data store size
Once a data store has been defined with a particular size for the
permanent partition (indicated by the
cannot be loaded at a smaller size, even if tables or rows are deleted. A
copy of the data store made with
permanent partition size embedded in it.
To reduce the allocated size of the permanent partition of a data store,
save a copy using the
Then recreate the data store with a smaller permanent partition size and
restore the data.
Note: The permanent partition size of a data store cannot be reduced
below the size that is actually required by the data currently stored in the
data store. This value can be determined by querying the
perm_in_use_size
Perform these steps to reduce the permanent partition size of a data
store:
1.
Back up the old data store with
2.
Create a new DSN definition for the new copy of the data store with a
smaller
3.
Restore the backup with
Note: If you wish to use the original DSN rather than create a new one
in Step 2, then you must first destroy the original data store files using
the
Here are the steps to reduce a data store's allocated size from 400 MB to
100 MB. The data store is in
Name (DSN)
1.
ttMigrate -c DSN=salesdata -noRepUpgrade /tmp/salesbackup
2. ttDestroy /ds/Sales/Data
3.
Update the DSN
data store size"
Operations
4. ttMigrate -r "DSN=salesdata;AutoCreate=1" -noRepUpgrade
100
Oracle TimesTen In-Memory Database Installation Guide
ttMigrate
column of the table
PermSize
value.
ttDestroy
utility.
salesdata
salesdata
in the
Oracle TimesTen In-Memory Database
Guide.
/tmp/salesbackup
PermSize
ttBackup
also has the data store's
utility with the -
sys.monitor
ttMigrate
-c
ttMigrate
-r -noRepUpgrade
/ds/Sales/Data
.
to have a size of 100 MB. See
DSN attribute), it
option.
noRepUpgrade
.
-
.
noRepUpgrade
.
and has the Data Source
"Changing
Need help?
Do you have a question about the B31679-01 and is the answer not in the manual?