프린트 하기

내맘대로긍정이 알려주는

Oracle 23ai 신기능
무료 세미나 발표자료

다운로드 trending_flat
2024
10.12
14:00

OS환경 : Oracle Linux6.8(64bit)


DB 환경 : Oracle Database 11.2.0.4


에러 : ORA-01336: specified dictionary file cannot be opened

로그마이너 패키지 실행 중 에러 발생

1
2
3
4
5
6
7
8
9
10
11
12
13
SQL> exec dbms_logmnr_d.build ('dict','/home/oracle/logmnr');
BEGIN dbms_logmnr_d.build ('dict','/home/oracle/logmnr'); END;
 
*
ERROR at line 1:
ORA-01336: specified dictionary file cannot be opened
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
ORA-06512: at "SYS.DBMS_LOGMNR_INTERNAL", line 6110
ORA-06512: at "SYS.DBMS_LOGMNR_INTERNAL", line 6200
ORA-06512: at "SYS.DBMS_LOGMNR_D", line 12
ORA-06512: at line 1



해결 방법 : 해당 경로를 생성해준다.

해당 경로 확인

1
2
3
4
5
$ ls -al /home/oracle/logmnr
ls: cannot access /home/oracle/logmnr: No such file or directory
 
$ cd /home/oracle/logmnr
-bash: cd: /home/oracle/logmnr: No such file or directory

해당 경로가 없음


경로 생성

1
$ mkdir -/home/oracle/logmnr


재실행 

1
2
3
SQL> exec dbms_logmnr_d.build ('dict','/home/oracle/logmnr');
 
PL/SQL procedure successfully completed.

정상 수행됨을 확인할 수 있다.



원인 : 해당 경로가 없어서 발생한 오류




참조 :