---
title: DML 语句报错 -6244 out of transaction threshold-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于DML 语句报错 -6244 out of transaction threshold相关的常见问题和使用技巧，帮助您快速解决DML 语句报错 -6244 out of transaction threshold的难题。
---
切换语言

- 简体中文
- English

划线反馈

# DML 语句报错 -6244 out of transaction threshold

更新时间：2026-05-28 02:06

适用版本： V2.1.x、V2.2.x 内容类型：Troubleshoot  

## 问题现象

数据库执行 DML 时报错。

```shell
Worker 003: ERROR: (conn=396108) ORA-00600: internal error code, arguments: -6244, out of transaction threshold
Worker 002: ERROR: (conn=273946) ORA-00600: internal error code, arguments: -6244, out of transaction threshold

```

## 问题原因

单笔提交的事务大小超过了 OceanBase 数据库的最大事务大小限制。

## 适用版本

OceanBase 数据库 V2.x 各个版本。

## 解决方法

如果在执行一个操作数据量很大的 SQL 语句时报错。

```shell
ORA-00600: ORA-00600: internal error code, arguments: -6244, out of transaction threshold

```

此时就需要去修改 `_max_trx_size` 隐藏参数。

```shell
obclient > select * from oceanbase.__all_virtual_sys_parameter_stat where name='_max_trx_size';

```

```shell
obclient> ALTER SYSTEM SET _max_trx_size='1G';

```

#### 说明

隐藏参数 `_max_trx_size` 表示每个数据库事务中涉及的每个分区使用的 MemStore 内存的限制， 默认值为 100M。

Previous

[使用 PDML 且涉及多表时导致正确性问题](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000008227)

Next

[DML 语句调用函数报错 table is mutating](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000210009) ![有帮助](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) 咨询热线
