oracle

[ORACLE] ORA-14064 : index with unusable partition exists on unique/primary constraint key

둥구리둥둥 2023. 5. 25. 16:08
728x90

원인 : 파티션 인덱스가 unusable이 발생하여 constraint 생성이 불가
<대상 확인>
SQL> select * from dba_ind_partitions where status='UNUSABLE';

해결 방법 : 인덱스 리빌드 이후 constraint 생성
SQL> alter index emp rebuild partition emp_202305 online parallel 8;
SQL> alter table emp add constraint emp_const primary key (emp_no);

 

728x90