현상
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
→ 지정한 폴더에 덤프가 생성되며, 해당 폴더는 미리 생성되어 있어야 합니다.