ORA-39274: Cannot alter physical organization of table. ORACLE 报错 故障修复 远程处理

文档解释

ORA-39274: Cannot alter physical organization of table.

Cause: DBMS_METADATA_DIFF was comparing two tables with different physical organizations (heap, index organized, external, or cluster). There is no SQL ALTER statement to change the physical organization of a table.

Action: The difference cannot be eliminated with an SQL ALTER statement.

ORA-39274:不能更改表的物理组织。

官方解释

ORA-39274错误是由于尝试更改表的物理组织造成的。例如,试图使用ALTER TABLE命令来修改索引的分区方法。

常见案例

在现有的表上使用任意的ALTER TABLE DDL命令,而无法成功地修改表的物理组织,则可能会导致ORA-39274错误。

一般处理方法及步骤

1.确保ALTER TABLE命令正确地把表结构更改为想要的状态。

2.使用DBMS_REDEFINITION包来重新定义表。

3.利用表空间移动表,然后使用SQL来更改表的物理组织。

4.使用EXCHANGE PARTITION命令来改变表的物理组织,只有当表是分区表时才可使用这个命令。

5.使用EXPDP和IMPDP工具来移动分区表,只有当表是分区表时才可使用此命令。


数据运维技术 » ORA-39274: Cannot alter physical organization of table. ORACLE 报错 故障修复 远程处理