---
title: "open_cursors - OceanBase 数据库 V4.3.1 | OceanBase 文档中心"
description: "open_cursors 说明 该配置项从 V2.2.77 版本开始引入。 功能描述 open_cursors 用于限制单个 Session 可以同时打开的游标数量。 属性说明 属性 描述 参数类型 Int 默认值 50 取值范围 [0，65535] 是否可修改 是，支持通过 ALTER SYSTEM SET 语句修…"
---
切换语言

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

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

# open_cursors

更新时间：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/6200.open_cursors.md)

#### 说明

该配置项从 V2.2.77 版本开始引入。

## 功能描述

`open_cursors` 用于限制单个 Session 可以同时打开的游标数量。

## 属性说明

| 属性 | 描述 |
| --- | --- |
| 参数类型 | Int |
| 默认值 | 50 |
| 取值范围 | [0，65535] |
| 是否可修改 | 是，支持通过 `ALTER SYSTEM SET` 语句修改。 |
| 是否重启 OBServer 节点生效 | 否 |

## 使用说明

- 每个 Session 可以同时打开的游标数上限，当 Session 上同时打开的游标超过此限制时，报错 `ORA-01000: maximum open cursors exceeded.`
 - 配置项 `open_cursors` 除了限制 Cursor 的数量，同时也限制 PS 句柄的数量。

## 配置示例

设置单个 Session 可以同时打开的游标数量为 `20`。示例如下：

```shell
obclient> ALTER SYSTEM SET open_cursors = 20;

```

## 相关文档

- [GV$DBLINK](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000819581)
 - [V$DBLINK](https://www.oceanbase.com/docs/common-oceanbase-database-cn-1000000000819572)

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