问题现象
在对虚拟表做 DML 操作时发现如下报错。
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 版本。