Note
For V2.2.77, 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 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 | 0s, which indicates that the automatic purge of the recycle bin 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 automatically purged.
Examples
Disable the automatic purge of the recycle bin.
obclient> ALTER SYSTEM SET recyclebin_object_expire_time = "0s";Enable the automatic purge of the recycle bin and purge schema objects that have been in the recycle bin for 7 days.
obclient> ALTER SYSTEM SET recyclebin_object_expire_time = "7d";
