---
title: 对虚拟表执行 DML 操作报错-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于 对虚拟表执行 DML 操作报错相关的常见问题和使用技巧，帮助您快速解决 对虚拟表执行 DML 操作报错的难题。
---
切换语言

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

划线反馈

# 对虚拟表执行 DML 操作报错

更新时间：2024-01-22 01:56

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

## 问题现象

在对虚拟表做 DML 操作时发现如下报错。

```shell
obclient [oceanbase]> update __all_virtual_sys_parameter_stat set value='X' where name='rpc_timeout' and zone='zone3' and svr_ip='172.xx.xxx.xxx';
ERROR 1235 (0A000): DML operation on Virtual Table/Temporary Table not supported

obclient [oceanbase]> update __all_virtual_database set replica_num=1 where tenant_id=1;
ERROR 1235 (0A000): DML operation on Virtual Table/Temporary Table not supported

```

## 问题原因

OceanBase 数据库不支持对虚拟表做 DML 操作。

## 解决方法

禁止对虚拟表做 DML 操作。

## 适用版本

OceanBase 数据库 V2.x 和 V3.x 版本。

上一篇

[MySQL 模式 Update + Order by 报错 5868](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000209975)

下一篇

[update 报错 4377 场景之一](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000254514) ![有帮助](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) 咨询热线
