Overview
recyclebin specifies whether to enable the recycle bin feature.
Privilege requirements
Query variables
Global level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.GLOBAL_VARIABLESview to view the values of global system variables.Session level
Both the
systenant and all user tenants can use theSHOW VARIABLESstatement and theinformation_schema.SESSION_VARIABLESview to view the values of session system variables.
Modify variables
Global effective
The
systenant can directly modify the values of global system variables.The user tenant must have the
SUPERorALTER SYSTEMprivilege to modify the value of a global system variable.
Session expiration
The
systenant and all user tenants can directly modify the values of session system variables for their own tenants.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Bool |
| Default Value | OFF |
| Value range |
|
| Effective Scope |
|
| Modifiable | Yes, you can use theSETStatement modification. |
Usage instructions
When the recycle bin is enabled (recyclebin is set to ON), deleted tables and their dependent objects are moved to the recycle bin. When the recycle bin is disabled (recyclebin is set to OFF), deleted tables and their dependent objects are not moved to the recycle bin but are deleted directly.
Configuration example
Enable the recycle bin feature.
Session expiration
obclient> SET recyclebin = ON;Effective globally
obclient> SET GLOBAL recyclebin = ON;
References
For more information about recycle bin operations, see the following topics: