Note
- Due to internal optimization, for V4.4.2, this parameter is available starting with V4.4.2 BP1 and is changed from cluster-level to tenant-level.
- This parameter is available starting with V1.4.
Description
schema_history_expire_time specifies the retention period for schema history data and the retention period for delayed deletion of tenants.
Privilege requirements
Query the parameter
You can use the
SHOW PARAMETERSstatement or theGV$OB_PARAMETERSview to query this parameter in thesystenant and all user tenants.Modify the parameter
You can modify this parameter in the
systenant and user tenants.
Attributes
Attribute |
Description |
|---|---|
| Type | Time |
| Default value | 7d, where d indicates days
NoteStarting from V4.0.0, the default value of this parameter is changed from 30d to 7d. |
| Value range | [1m, 30d]
NoteStarting from V4.0.0, the value range of this parameter is changed from [1m, 365d] to [1m, 30d]. |
| 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. |
Examples
Set the retention period for schema history data to 7 days.
obclient> ALTER SYSTEM SET schema_history_expire_time = '7d';
If the value of this parameter is set to 7d, schema history data generated within the last 7 days is retained, and schema history data that is no longer used is recycled.
