---
title: Oracle 模式 Update 更新 Clob 报错 ret_code=-5083-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于Oracle 模式 Update 更新 Clob 报错 ret_code=-5083相关的常见问题和使用技巧，帮助您快速解决Oracle 模式 Update 更新 Clob 报错 ret_code=-5083的难题。
---
切换语言

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

划线反馈

# Oracle 模式 Update 更新 Clob 报错 ret_code=-5083

更新时间：2026-05-21 01:56

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

## 适用版本

OceanBase 数据库 V3.x 版本。

## 问题描述

OceanBase 数据库 Oracle 模式执行 Update 更新 Clob 列时报错。

```
ora-00932:inconsistent datatypes,ret_code=-5083

```

## 问题原因

复现如下。

![Alt text](https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/knowledge-base/database/replica/image-410-0.png)

对应的 `observer.log` 过滤如下。

```
[root@ob21 log]# grep  YB42C523140B-0005xxxxxxxxxxxx observer.log

observer.log:[2022-01-08 15:44:03.782750] WARN  [SERVER] test_and_save_retry_state (ob_query_retry_ctrl.cpp:527) [2057305][2840][YB42C523140B-0005xxxxxxxxxxx] [lt=16] [dc=0] do not need retry(client_ret=-5083, err=-5083, expected_stmt=true, THIS_WORKER.get_timeout_ts()=1641629643782249, retry_type_=0, result.get_stmt_type()=5, result.get_exec_context().need_change_timeout_ret()=true, session->get_retry_info().get_last_query_retry_err()=0)

```

所以此问题原因是 where 条件中将字段 name 与字符串做比较，name 的类型是 clob，clob 不能和任何类型做比较。

## 解决方法

1. 把 clob 列转成 varchar 后再和字符串做比较。
 2. 也可以使用 `dbms_lob.compare` 来做比较。

   `dbms_lob.compare` 函数见官方文档 [COMPARE](https://www.oceanbase.com/docs/enterprise-oceanbase-database-cn-10000000000945852)。

上一篇

[cannot decrease column length because some value is too big 报错原因](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000270695)

下一篇

[系统表 __all_virtual_table_mgr 中 table_type 的含义](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000000207746) ![有帮助](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) 咨询热线
