Enabling or Disabling Automatic Storage Expansion
Enable automatic storage expansion on your DB system to avoid loss of service when the allocated storage space gets filled up.
You cannot enable automatic storage expansion on an Always Free DB system.
- StorageAllocated: The maximum amount of space allocated to the DB system during the interval in GiB.
- StorageUsed: The maximum amount of space used during the interval in GiB.
StorageUsed >= StorageAllocated * 0.90If StorageAllocated < 150 GB:
StorageAllocated = StorageAllocated + CEILING(8 + (StorageAllocated / 25))
If StorageAllocated >= 150 GB:
StorageAllocated = CEILING(StorageAllocated * 1.115)The result
is rounded up to the next whole GB and cannot exceed the maximum storage
size configured for the DB system. The expanded storage size becomes the current storage size used to calculate the threshold for the next automatic expansion. After the configured maximum storage size is reached, the DB system does not expand its storage further.
Table 8-19 Examples of storage-used thresholds and resulting allocations
| Storage allocated (GB) | Storage used that triggers expansion (GB) | Storage allocated after expansion (GB) |
|---|---|---|
| 50 | 45 | 60 |
| 100 | 90 | 112 |
| 200 | 180 | 223 |
| 500 | 450 | 558 |
| 800 | 720 | 892 |
| 1,000 | 900 | 1,115 |
| 1,050 | 945 | 1,171 |
| 1,100 | 990 | 1,227 |
You can build a chart to monitor the metrics over a period of time and identify whether the value has changed or when the value has changed. See Using Metrics to Create Queries. If needed, you can also create an alarm based on the metrics. See Using Metrics to Create Alarms.
- Using the Console
- Using the CLI
- Using the REST API, run the UpdateDbSystem
operation with the
dataStorageattribute.
Using the Console
You can enable or disable automatic storage expansion using the Update storage size console action of the DB system.
Do the following to enable or disable automatic storage expansion of a DB system:
Using the CLI
Use the command-line interface to enable or disable automatic storage expansion.
- A DB system Oracle Cloud Identifier (OCID).
- A properly configured CLI installation and the requisite SSH keys. See Command Line Interface.