성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Reordering on an Alpha processor ;...
[정성태] 공유 감사합니다. ^^ 참고로, WPF에서 WindowsF...
[Tom Lee] 답변 감사합니다. 나름의 해결책 연구해보고 여기에도 공유해봅니다...
[정성태] 아래의 글을 보면, MoveWindow 하면 될 듯한데요. ^^...
[Tom Lee] 안녕하세요 올려주신 글 참고하여 WPF 어플리케이션 안에 Uni...
[정성태] A graphical depiction of the steps ...
[정성태] 질문을 주셔서 출판사 측에 문의를 했습니다. 약 한 달 정도 후...
[Thorondor
] @정성태 개인 블로그인데도 거의 커뮤니티 급 인 것 같아요. 요...
[정성태] Roll A Lisp In C - Reading ; https...
[정성태] Java - How to use the Foreign Funct...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <h1 style='font-family: Malgun Gothic, Consolas; font-size: 20pt; color: #006699; text-align: center; font-weight: bold'>윈도우 업데이트(KB4458842) 이후 SQL Server 서비스 시작 오류</h1> <p> "Security Update for SQL Server 2016 Service Pack 1 GDR (KB4458842)" 업데이트 이후, SQL Server 서비스 시작 시 다음과 같은 오류가 발생합니다.<br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Windows could not start the SQL Server (MSSQLSERVER) on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 3417.<br /> </div><br /> <br /> 이벤트 로그에는 다음과 같은 로그가 보입니다.<br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Log Name: System<br /> Source: Service Control Manager<br /> Date: 2018-08-24 오전 9:45:55<br /> Event ID: 7024<br /> Task Category: None<br /> Level: Error<br /> Keywords: Classic<br /> User: N/A<br /> Computer: THE11<br /> Description:<br /> The description for Event ID 7024 from source Service Control Manager cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.<br /> <br /> If the event originated on another computer, the display information had to be saved with the event.<br /> <br /> The following information was included with the event: <br /> <br /> SQL Server (MSSQLSERVER)<br /> %%3417<br /> <br /> The locale specific resource for the desired message is not present<br /> </div><br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Log Name: Application<br /> Source: MSSQLSERVER<br /> Date: 2018-08-24 오전 9:48:31<br /> Event ID: 912<br /> Task Category: Server<br /> Level: Error<br /> Keywords: Classic<br /> User: N/A<br /> Computer: THE11<br /> Description:<br /> Script level upgrade for database 'master' failed because upgrade step '<span style='color: blue; font-weight: bold'>msdb110_upgrade.sql</span>' encountered error 200, state 7, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion. </div><br /> <br /> <div style='BACKGROUND-COLOR: #ccffcc; padding: 10px 10px 5px 10px; MARGIN: 0px 10px 10px 10px; FONT-FAMILY: Malgun Gothic, Consolas, Verdana; COLOR: #005555'> Log Name: Application<br /> Source: MSSQLSERVER<br /> Date: 2018-08-24 오전 9:48:31<br /> Event ID: 3417<br /> Task Category: Server<br /> Level: Error<br /> Keywords: Classic<br /> User: N/A<br /> Computer: THE11<br /> Description:<br /> Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.<br /> </div><br /> <br /> 좀 더 자세한 오류 로그를,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > SQL SERVER ? Where is ERRORLOG? Various Ways to Find ERRORLOG Location ; <a target='tab' href='https://blog.sqlauthority.com/2015/03/24/sql-server-where-is-errorlog-various-ways-to-find-its-location/'>https://blog.sqlauthority.com/2015/03/24/sql-server-where-is-errorlog-various-ways-to-find-its-location/</a> </pre> <br /> 위의 글에 따라 레지스트리에 설치된 SQL 서버 버전을 찾고 그것의 로그 파일 위치를 찾아냈습니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL 이름: MSSQLSERVER 값: MSSQL13.MSSQLSERVER HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQLServer\Parameters 이름: SQLArg1 값: -ef:\MSSQL13.MSSQLSERVER\MSSQL\Log\ERRORLOG </pre> <br /> ERRORLOG 파일 내용을 보니 다음과 같은 로그가 눈에 띕니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > 2018-08-24 09:48:31.08 spid5s Error: 2775, Severity: 17, State: 12. 2018-08-24 09:48:31.08 spid5s <span style='color: blue; font-weight: bold'>The code page 65001 is not supported by the server.</span> 2018-08-24 09:48:31.09 spid5s Error: 912, Severity: 21, State: 2. 2018-08-24 09:48:31.09 spid5s Script level upgrade for database 'master' failed because upgrade step '<span style='color: blue; font-weight: bold'>msdb110_upgrade.sql'</span> encountered error 200, state 7, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that the script upgrade steps run to completion. 2018-08-24 09:48:31.09 spid5s Error: 3417, Severity: 21, State: 3. 2018-08-24 09:48:31.09 spid5s Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online. 2018-08-24 09:48:31.09 spid5s SQL Server shutdown has been initiated 2018-08-24 09:48:31.09 spid5s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required. </pre> <br /> 실제로 다음의 글에 따라,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > SQL SERVER ? Script Level Upgrade for Database ‘master’ Failed Because Upgrade Step ‘sqlagent100_msdb_upgrade.sql’ ? Error: 5041: MODIFY FILE Failed ; <a target='tab' href='https://blog.sqlauthority.com/2018/02/13/sql-server-script-level-upgrade-database-master-failed-upgrade-step-sqlagent100_msdb_upgrade-sql-error-5041-modify-file-failed/'>https://blog.sqlauthority.com/2018/02/13/sql-server-script-level-upgrade-database-master-failed-upgrade-step-sqlagent100_msdb_upgrade-sql-error-5041-modify-file-failed/</a> </pre> <br /> MSSQLSERVER 서비스를 Trace Flag 값을 902로 주고 실행하면 일단 서비스가 실행은 됩니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\Windows\System32> <span style='color: blue; font-weight: bold'>NET START MSSQLSERVER /T902</span> The SQL Server (MSSQLSERVER) service is starting. The SQL Server (MSSQLSERVER) service was started successfully. </pre> <br /> 덕분에 SSMS를 실행하고 다음의 파일을 로드해 직접 실행해 볼 수 있는데요.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Install\msdb110_upgrade.sql </pre> <br /> 역시나 다음과 같은 오류가 발생합니다.<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > ...[생략]... Uploading data collector package from disk: C:\Program Files\Microsoft SQL Server\MSSQL13.MSSQLSERVER\MSSQL\Install\QueryActivityUpload.dtsx Msg 2775, Level 17, State 12, Line 37620 <span style='color: blue; font-weight: bold'>The code page 65001 is not supported by the server.</span> Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Msg 2775, Level 17, State 12, Line 37620 The code page 65001 is not supported by the server. Creating or updating Collection Types... ...[생략]... </pre> <br /> 그러니까, "<a target='tab' href='http://www.sysnet.pe.kr/2/0/11559'>영문 설정의 Windows 10 명령행 창(cmd.exe)의 한글 지원</a>"에 따라 UTF-8 설정을 한 것 때문에 저런 오류가 발생한 것입니다. 혹시나 싶어 SQL Server 2016을 새로 설치도 해봤는데 다음의 글에서처럼,<br /> <br /> <pre style='margin: 10px 0px 10px 10px; padding: 10px 0px 10px 10px; background-color: #fbedbb; overflow: auto; font-family: Consolas, Verdana;' > "Use Unicode UTF-8 for worldwide language support" 옵션 설정 시 SQL Server 2016 설치 오류 ; <a target='tab' href='http://www.sysnet.pe.kr/2/0/11667'>http://www.sysnet.pe.kr/2/0/11667</a> </pre> <br /> 여전히 오류가 발생합니다. 딱히 해결 방법은 발견할 수 없었고, <span style='text-decoration: line-through'>이참에 SQL Server 2017로 업그레이드하는 걸로 해결했습니다. ^^; 즉, SQL Server 2017은 Code page 65001에서도 잘 설치가 됩니다.</span><br /> </p><br /> [업데이트 2018-08-28: "Current language for non-Unicode programs" 설정을 English로 하고 "Use Unicode UTF-8 for worldwide language support" 설정을 한 경우 이런 오류가 발생합니다. 어쩔 수 없습니다. English를 Korean으로 바꿔야 합니다.]<br /><br /> <br /><hr /><span style='color: Maroon'>[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
7083
(왼쪽의 숫자를 입력해야 합니다.)