DB2

    [DB2] DBI1309E 에러 발생 시

    [DB2] DBI1309E 에러 발생 시

    안녕하세요 피터입니다.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 th..

    [DB2] 특정 테이블 export 하기

    [DB2] 특정 테이블 export 하기

    안녕하세요 피터입니다. IBM의 DBMS인 db2에서 특정 테이블을 export 하는 방법을 소개하겠습니다. export 명령어는 주로 대용량 데이터를 처리할 때 사용하며 table의 데이터를 file로 추출하기 때문에 db2 shell 에서 작업하는 것이 일반적입니다. db2 계정으로 로그인 후 아래와 같이 명령어 수행 db2 connect db2 "export to test.del of del select * from tmptable" export가 완료되면 test.del 파일에 csv형태로 데이터가 저장됩니다. ※ csv(comma seperated value): 각 값이 콤마(,) 로 구분된 데이터 문자열 데이터는 "" 로 감싸여진 형태로 되어 있고, 숫자형 데이터는 "" 없이 값이 그대로 저장..