기술 정보
home
채널 소개
home

Windows에서 DB 비정상 종료 시 Dump 파일 미생성 및 설정 확인 사항

문서 유형
장애 해결
분야
모니터링/점검
키워드
dump
적용 제품 버전
6FS06
1 more property

현상

Windows 환경에서 데이터베이스가 비정상 종료되었음에도 불구하고, 로그가 생성되지 않는 경우가 발생하였습니다.

원인

Windows 환경에서는 DB가 비정상 종료되었을 때, Dump 파일이 생성되지 않았습니다.

해결

덤프를 남길 수 있도록 아래와 같이 설정이 필요합니다.
레지스트리 등록
reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\tbsvr.exe" /v DumpFolder /t REG_EXPAND_SZ /d "C:\Users\user\Desktop\Tmax\test_dump" /f reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\tbsvr.exe" /v DumpCount /t REG_DWORD /d 20 /f reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\tbsvr.exe" /v DumpType /t REG_DWORD /d 1 /f
SQL
복사
[그림1. 레지스트리 설정 화면]
DumpCount : 20
→ 최대 덤프 파일 수 20개까지 보관합니다.
DumpType : 1
→ 미니 덤프(minidump) 생성합니다.
DumpFolder : C:\Users\user\Desktop\Tmax\test_dump
→ 지정한 폴더에 덤프가 생성되며, 해당 폴더는 미리 생성되어 있어야 합니다.