---
title: "storage_meta_cache_priority - OceanBase 数据库 V4.6.0 | OceanBase 文档中心"
description: storage_meta_cache_priority 说明 该配置项从 V4.2.0 版本开始引入。 功能描述 storage_meta_cache_priority 用于控制 kvcache 中存储 Meta Cache 的优先级。 权限要求 查询配置项 sys 租户和所有用户租户均可以使用 SHOW PARAM…
---
切换语言

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

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

# storage_meta_cache_priority

更新时间：2026-06-22 11:40:53

[编辑](https://github.com/oceanbase/oceanbase-doc/edit/V4.6.0/zh-CN/700.reference/800.configuration-items-and-system-variables/100.system-configuration-items/300.cluster-level-configuration-items/21200.storage_meta_cache_priority.md)

#### 说明

该配置项从 V4.2.0 版本开始引入。

## 功能描述

`storage_meta_cache_priority` 用于控制 kvcache 中存储 Meta Cache 的优先级。

## 权限要求

- 查询配置项

  `sys` 租户和所有用户租户均可以使用 `SHOW PARAMETERS` 语句或视图 `GV$OB_PARAMETERS` 查询该配置项。
 - 修改配置项

  仅 `sys` 租户可以修改该配置项，用户租户不能修改该配置项。

## 属性说明

| **属性** | **描述** |
| --- | --- |
| 参数类型 | Int |
| 默认值 | 10 |
| 取值范围 | [1,+∞) |
| 是否可修改 | 是，支持通过 `ALTER SYSTEM SET` 语句修改。 |
| 是否重启 OBServer 节点生效 | 否，设置后立即生效。 |

## 使用说明

OceanBase 数据库将 Table Store、SSTable 等元数据统一抽象为存储 Meta，并将其放入 kvcache 内存中统一管理。当出现 Meta Cache 使用不高或频繁未命中的时候，用户可以根据负载的特征，改变其优先级，使得有限 kvcache 内存资源的使用效率更高，更灵活。

在 kvcache 中，Cache 的优先级数值越大，优先级越高，占用的内存越不容易被淘汰。已有的几种 Cache 类型的优先级配置项如下：

- [tablet_ls_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685529)，其默认值为 1000，取值范围为 [1,+∞)。
 - [opt_tab_stat_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685476)，其默认值为 1，取值范围为 [1,+∞)。
 - [index_block_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685630)，其默认值为 10，取值范围为 [1,+∞)。
 - [user_block_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685511)，其默认值为 1，取值范围为 [1,+∞)。
 - [user_row_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685665)，其默认值为 1，取值范围为 [1,+∞)。
 - [bf_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685604)，其默认值为 1，取值范围为 [1,+∞)。
 - [fuse_row_cache_priority](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000005685659)，其默认值为 1，取值范围为 [1,+∞)。

需要注意的是，存储 Meta 优先级的缺省值与 `index_block_cache_priority` 一致，仅次于 `tablet_ls_cache_priority`。

## 配置示例

设置 kvcache 中存储 Meta Cache 的优先级为 10。

```shell
obclient> ALTER SYSTEM SET storage_meta_cache_priority='10';

```

 上一篇 下一篇 ![有帮助](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) 咨询热线
