반응형
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.
반응형
'Oracle > Oracle Admin' 카테고리의 다른 글
ORA-01642: begin backup not needed for read-only tablespace (1) | 2022.09.29 |
---|---|
Troubleshooting Wait Event enq: TX - allocate ITL entry (0) | 2022.07.05 |
Oracle Listener ORA-12514: TNS (0) | 2022.03.07 |
Oracle Partition TABLE 기본 구성 (0) | 2022.02.16 |
Oracle Controlfile 재 생성 오라클 구성 변경 (0) | 2021.12.20 |
댓글