Note
- For V4.2.x, this parameter is available starting with V4.2.0.
- For V3.x, this parameter is available starting with V3.1.4.
Description
datafile_next specifies the growth step for automatic disk file expansion.
Privilege requirements
Query the parameter
The
systenant and all user tenants can use theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Capacity |
| Default value | 0, which indicates that automatic growth is disabled. |
| Value range | [0M, +∞) |
| Modifiable | Yes. You can use the ALTER SYSTEM SET statement to modify the parameter. |
| Effective upon OBServer node restart | No. The setting takes effect immediately. |
Considerations
The default value of datafile_next is 0, which indicates that automatic growth is disabled. To enable automatic growth, set a new value:
- If
datafile_nextis set to a value less than 1G, the value is min(1G, datafile_maxsize * 10%). - If
datafile_nextis set to a value greater than 1G, the value is min( datafile_next, the remaining disk space).
Examples
Set the growth step for automatic disk file expansion to 10G.
obclient> ALTER SYSTEM SET datafile_next = '10G';