Note
This parameter is available starting with V1.4.
Description
schema_history_expire_time specifies the retention period for full metadata history data and the retention period for delayed deletion of tenants.
Privilege requirements
Query the parameter
The
systenant and all user tenants can query this parameter by using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify the parameter
Only the
systenant can modify this parameter. User tenants cannot modify this parameter.
Attributes
| Attribute | Description |
|---|---|
| Type | Time |
| Default value | 7d, where d indicates days
NoteFor V4.0.0, the default value of this parameter is changed from 30d to 7d. |
| Value range | [1m, 30d]
NoteFor 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 full metadata history data to 7 days.
obclient> ALTER SYSTEM SET rpc_timeout = '7d';
When the value of this parameter is set to 7d, the full metadata history data generated within the last 7 days is retained, and the metadata history data generated before that can be recycled by the metadata history data recycling service. For more information about the metadata history data recycling service, see schema_history_recycle_interval.