Overview
ttl_duty_time specifies the time point at which the background job periodically triggers the execution of the TTL task.
Privilege requirements
Query parameters
Both the
systenant and all user tenants can query this parameter using theSHOW PARAMETERSstatement or theGV$OB_PARAMETERSview.Modify parameters
Both the
systenant and user tenants can modify this parameter.
Attributes
Attribute |
Description |
|---|---|
| Parameter type | Moment |
| Default Value | 01:00 |
| Value range | time_zone. |
| Modifiable | Yes, you can use theALTER SYSTEM SETStatement modification. |
| Whether to restart the OBServer node for the change to take effect | No, the setting takes effect immediately. |
Usage instructions
This parameter takes effect only when the tenant-level parameter enable_ttl is set to
True. After the specified start time, the system will begin traversing all tables with a TTL attribute under the tenant and execute the TTL task for these tables.The
ttl_duty_timepoint is in the same time zone as the tenant. It is recommended to set it during the tenant's off-peak business hours, before the daily batch start.
Configuration example
After the system tenant specifies a TTL for a user tenant, the background job that periodically triggers the TTL task is scheduled to run at
02:00a.m.obclient(root@sys)[(none)]> ALTER SYSTEM SET ttl_duty_time = '02:00' TENANT = tenant_name;After the user tenant specifies a TTL for itself, the background automatically triggers the execution of the TTL task at
02:00every morning.obclient> ALTER SYSTEM SET ttl_duty_time = '02:00';
References
Enable the TTL feature: enable_ttl