zl程序教程

您现在的位置是:首页 >  数据库

当前栏目

ORA-14064: Index with Unusable partition exists on unique/primary constraint key ORACLE 报错 故障修复 远程处理

OracleOn ORA 故障 处理 远程 报错 修复
2023-06-13 09:19:37 时间
ORA-14064: Index with Unusable partition exists on unique/primary constraint key ORACLE 报错 故障修复 远程处理
文档解释

ORA-14064: Index with Unusable partition exists on unique/primary constraint key

Cause: User attempted to add or enable a primary key/unique constraint on column(s) of a table on which there exists an index one or more partitions of which are marked Index Unusable.

Action: Drop the existing index or rebuild unusable partitions it using ALTER INDEX REBUILD PARTITION

ORA-14064,这是一个Oracle数据库报错信息,用于指示索引中存在不可用的分区,该分区位于unique / primary constraint key之上。

正常处理方法及步骤

1.查询出存在不可用分区的索引,使用下面的查询:

SELECT OWNER, INDEX_NAME FROM DBA_INDEXES WHERE STATUS = UNUSABLE

2.可以使用 ALTER INDEX REBUILD 指令来重建索引,这样就可以恢复索引正常使用了:

ALTER INDEX Owner.index_name REBUILD;

3.也可以使用“DROP INDEX”指令来删除该索引,接着重新建立一个新的索引:

DROP INDEX Owner.Index_name

CREATE INDEX Index_name ON Table(column_name);


我想要获取技术服务或软件
服务范围:MySQL、ORACLE、SQLSERVER、MongoDB、PostgreSQL 、程序问题
服务方式:远程服务、电话支持、现场服务,沟通指定方式服务
技术标签:数据恢复、安装配置、数据迁移、集群容灾、异常处理、其它问题

本站部分文章参考或来源于网络,如有侵权请联系站长。
数据库远程运维 ORA-14064: Index with Unusable partition exists on unique/primary constraint key ORACLE 报错 故障修复 远程处理