상세 컨텐츠

본문 제목

SQL Server 시작 오류 - error code 10013

DataBase/SQL Server

by 탑~! 2021. 1. 6. 11:34

본문

SQL Server 서비스를 시작하는 경우 다음과 같은 오류가 발생할 수 있습니다.

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 10013.

최근 들어, 10013 오류(An attempt was made to access a socket in a way forbidden by its access permissions.)는 그냥 excludedportrange와 무조건 연관이 있습니다. ^^;

"Administered port exclusions" 설명 ; https://www.sysnet.pe.kr/2/0/12293
실제로 SQL Server의 기본 서비스 포트가 1433인데 excludedportrange를 확인해 보면 예약된 것을 확인할 수 있습니다.

C:\Windows\System32> netsh int ipv4 show excludedportrange protocol=tcp

Protocol tcp Port Exclusion Ranges

Start Port End Port


    80          80
  1241        1340
  1341        1440
  1565        1664
  1665        1764
  1955        2054
  2055        2154
  5357        5357
  8060        8060
 11735       11834
 11835       11934
 11935       12034
 15000       15000
 26974       27073
 27074       27173
 27174       27273
 44363       44363
 50000       50059     *
    • Administered port exclusions.


저 설정을 지우기 위해 "netsh int ip reset"을 하는 것은 좀 그렇고, 이전 글에서 소개한 excludedportrange.exe 유틸리티를 사용해야 합니다.

"Administered port exclusions"이 아닌 포트 범위 항목을 삭제하는 방법 ; https://www.sysnet.pe.kr/2/0/12305 excludedportrange.zip ; https://github.com/stjeong/Utilities/blob/master/Binaries/excludedportrange.zip
따라서 excludedportrange.zip의 압축을 풀어 다음과 같이 실행하고,

// 관리자 권한으로 실행 C:\temp> excludedportrange.exe tcp 1341 1440 tcp Deleting... 1341:100 0
다시 1433 포트가 시스템에 의해 점유되지 않도록 우리가 미리 "Administered port exclusions"으로 등록하면 끝!

[추가] netsh int ipv4 Add excludedportrange protocol=tcp startport=1433 numberofports=1 store=persistent [삭제] netsh int ipv4 delete excludedportrange protocol=tcp startport=1433 numberofports=1 store=persistent

 

 

 

 

출처 : 오류 유형: 642. SQL Server 시작 오류 - error code 10013 (sysnet.pe.kr)

[

오류 유형: 642. SQL Server 시작 오류 - error code 10013

www.sysnet.pe.kr

](https://www.sysnet.pe.kr/2/0/12306)

excludedportrange.zip
0.01MB

'DataBase > SQL Server' 카테고리의 다른 글

SQL Server 어셈블리 등록  (0) 2021.06.14
Table의 파일그룹 조회  (0) 2021.04.29
SP_LOCK, KILL - 락 확인 및 강제종료  (0) 2021.01.05
탭문자 확인 및 제거  (0) 2021.01.04
mssql 비용이 많이드는 쿼리 검색  (0) 2021.01.04

관련글 더보기