---
title: "open_cursors | OceanBase 文档中心"
description: "open_cursors open_cursors 用于限制单个 Session 可以同时打开的游标数量。 属性 描述 参数类型 整型 默认值 50 取值范围 [0,65535] 是否重启 OBServer 生效 否 设置单个 Session 可以同时打开的游标数量为 20 。示例如下： obclient&gt; ALTE…"
---
切换语言

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

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

# open_cursors

更新时间：2026-06-11 14:36:05

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

| 属性 | 描述 |
| --- | --- |
| 参数类型 | 整型 |
| 默认值 | 50 |
| 取值范围 | [0,65535] |
| 是否重启 OBServer 生效 | 否 |

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

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

```

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