---
title: "kv_ttl_history_recycle_interval - OceanBase 数据库 V4.3.1 | OceanBase 文档中心"
description: kv_ttl_history_recycle_interval 说明 该配置项从 V3.1.4 版本开始引入。 kv_ttl_history_recycle_interval 用于设置 TTL 任务历史记录保存的时间段，TTL 任务的历史记录表只保存到现在最近一段时间长度为 kv_ttl_history_recycl…
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

文档反馈![](https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*P8CuR4UJ_FkAAAAAAAAAAAAADiGDAQ/original) OceanBase 数据库分布式版 - V 4.3.1

# kv_ttl_history_recycle_interval

更新时间：2026-04-10 11:58:02

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.3.1/zh-CN/700.reference/800.configuration-items-and-system-variables/100.system-configuration-items/400.tenant-level-configuration-items/4200.kv_ttl_history_recycle_interval.md)

#### 说明

该配置项从 V3.1.4 版本开始引入。

`kv_ttl_history_recycle_interval` 用于设置 TTL 任务历史记录保存的时间段，TTL 任务的历史记录表只保存到现在最近一段时间长度为 `kv_ttl_history_recycle_interval` 的历史纪录。

## 属性说明

| 属性 | 描述 |
| --- | --- |
| 参数类型 | 时间类型 |
| 默认值 | 7d |
| 取值范围 | [1d, 180d] |
| 是否重启 OBServer 生效 | 否 |

## 配置示例

```sql
alter system set kv_ttl_history_recycle_interval= '7d';

```

 上一篇 下一篇 ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
