ORA-23370: table string and table string are not shape equivalent (string) ORACLE 报错 故障修复 远程处理

文档解释

ORA-23370: table string and table string are not shape equivalent (string)

Cause: The tables specified are not shape equivalent, which means intuitively that the number of columns, the names, their datatypes and lengths are not the same. Specifically, problem is in the parentheses and is one of the following: the number of columns are not equal, datatypes of columns with same name in different tables are different, lengths of varchar2 and char columns are not equal, precision and scale of number datatypes are not equal.

Action: Make sure the two tables being compared have the same number of columns, same column names, and same datatypes.

这是一个Oracle数据库特有的错误,指当在数据库中尝试合并两个不兼容表结构时发生,如果字段无法合并或者表数据不兼容,就会报这个错误。

官方解释

“表a和表b不是形状相等的。”

常见案例

1、字段的数据类型不一致的时候。

2、两张表的字段的列名不一致的时候。

3、两张表的列的个数不一致的时候。

一般处理方法及步骤

1、更改这两个表中任何一个表的字段名或者字段数据类型,使他们兼容,以达到形状相等的标准。

2、生成新的表,将两个表的列合并在一起,尽可能地保持表结构的一致性。

1、分析数据库表结构,比较两张表的字段名,字段类型和列的个数,确定不一致的地方。

2、调整表结构,保持两张表的字段名,字段类型和列的个数一致。

3、完成调整表结构后,重试两个表的合并操作,确认操作成功,无错误。


数据运维技术 » ORA-23370: table string and table string are not shape equivalent (string) ORACLE 报错 故障修复 远程处理