Note
This parameter is available starting with V2.2.77.
Description
recyclebin_object_expire_time specifies the time after which schema objects in the recycle bin are automatically purged.
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 |
|---|---|
| Parameter type | Time |
| Default value | 0s, which indicates that the automatic purge feature is disabled. |
| Value range | [0s, +∞) |
| 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
If the value is not 0s, schema objects that have been in the recycle bin for the specified time are purged.
Examples
Disable the automatic purge feature.
obclient> ALTER SYSTEM SET recyclebin_object_expire_time = "0s";Enable the automatic purge feature and purge schema objects that have been in the recycle bin for 7 days.
obclient> ALTER SYSTEM SET recyclebin_object_expire_time = "7d";