본문 바로가기
Oracle/Oracle Admin

Oracle Index 이슈 ORA-08102 index key not found

by 의미와의미 2022. 3. 8.
반응형

 

Oracle Index ORA-08102 index key not found

 

#환경구성 

OS : Oracle Linux 5.6
DBMS: 11.2.0.4

설명 : SQL 쿼리 수행시 ORA-08102 발생

로그 확인후 오브젝트를 확인한 뒤 문제가 되는 인덱스 확인 후 조치


 

#오라클 SQL 수행후 ORA-08102 발생
#오라클 로그 확인

Wed Apr 24 08:44:00 2019
Dumping diagnostic data in directory=[cdmp_20190424084400], requested by (instance=1, osid=2649 (J000)), summary=[abnormal process termination].
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_j000_2649.trc:
ORA-12012: error on auto execute of job 4002
ORA-08102: index key not found, obj# 290, file 1, block 2033 (2)
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_j000_2649.trc:
ORA-12012: error on auto execute of job 4002
ORA-08102: index key not found, obj# 290, file 1, block 2033 (2)
Dumping diagnostic data in directory=[cdmp_20190424084401], requested by (instance=1, osid=2649 (J000)), summary=[abnormal process termination].
Errors in file /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_j000_2649.trc:
ORA-00604: error occurred at recursive SQL level 1
ORA-08102: index key not found, obj# 290, file 1, block 2033 (2)
ORA-12012: error on auto execute of job 4002
ORA-08102: index key not found, obj# 290, file 1, block 2033 (2)
ORA-08102: index key not found, obj# 290, file 1, block 95873 (2)

#문제가 발생한 Obj 290 오브젝트 확인

SQL> select owner, object_name, object_type from dba_objects where object_id =290;
 

 OWNER	   OBJECT_NAME				    OBJECT_TYPE
---------- ---------------------------------------- -------------------
 SYS	   I_JOB_NEXT				    INDEX

 

index가 생성이 안되었거나, 깨진 경우에 발생하는 에러이다.

index키를 참조하여 update, select를 할 경우 index키가 제대로 설정되어 있지 않을 경우

이와 같은 에러가 발생하는데 다음과 같이 해결한다.

인덱스 생성 칼럼을 먼저 확인 인덱스 drop 후 재생성 해준다 (Index rebuild 수행시 실패)

SQL>
drop index i_job_next; 

Index dropped.

create index i_job_next on job$ (next_date) 

Index created.

 

반응형

댓글