Database/DB2

[DB2] DBI1309E 에러 발생 시

Peter Ahn 2018. 5. 17. 17:52
반응형

안녕하세요 피터입니다.

DB2에서 아래와 같이 DBI1309E 에러가 발생하는 경우에는 주요 설정 파일의 권한 문제일 가능성이 높습니다.


DBI1309E  System error.

Explanation:

The tool encountered an operating system error.

User response:

A system error was encountered during registry access. Ensure that there
is enough space on the file system where the registry is located, the
correct file permissions are set, and that there is a valid LAN
connection if the registry is remote.


1. profile.env 파일 권한 확인


root@localhost ~]# ls -l /db2home/db2계정/sqllib/profile.env
-rw-rw-r-- 1 db2계정 db2iadm1 128 4월 13 09:49 /db2home/db2inst2/sqllib/profile.env

profile.env 파일의 권한이 664 가 아니거나 소유주가 db2계정이 아닌 경우에 에러가 발생될 수 있습니다.

이런 경우 chmod, chown 명령어를 이용해서 권한을 위와 같이 변경해주시면 됩니다.


2. /var/db2/global.reg 파일 권한 확인

[root@localhost ~]# ls -l /var/db2/global.reg
-rw-r--r-- 1 root root 1040 4월 12 20:07 /var/db2/global.reg

othersread 권한이 없거나 소유주가 root가 아닌 경우 에러가 발생할 수 있습니다.

위와 같이 변경해주세요.



-Peter의 우아한 프로그래밍

여러분의 댓글은 저에게 크나큰 힘이 됩니다. 오류 및 의견 주시면 감사하겠습니다.

반응형